And how does the OS know whether to apply bidi algorithms on the string for displaying purposes?
I know that Hebrew might come in an ISO-Logical form, but how does the OS know how to point that a specific string contains Hebrew (or any other RTL language)?
According to How to detect whether a character belongs to a Right To Left language? – it seems they are stored left-to-right, and it’s the character codes that dictate whether it’s a RTL language.