Re:RTL: WTF: Read the web like Right-to-Left readers do
by chrismorgan on Wednesday July 07, 2021 @03:54AM
(#27758515)
The site demonstrates the problems in two ways:
① Setting `text-align: right` so that you can feel the weirdness that `text-align: left` will produce for RTL languages.
② And for BiDi: setting `direction: rtl`, and using a mixture of strong LTR characters (e.g. letters) and neutral characters (e.g. punctuation). This combination results in the neutral characters going RTL, which is why you end up with things like “.solve them” and “→ ?What is this” rather than “solve them.” and “What is this? →”.
It’s demonstrating things that are commonly done wrong the other way (when the document says it’s LTR, but contains RTL text).
① Setting `text-align: right` so that you can feel the weirdness that `text-align: left` will produce for RTL languages.
② And for BiDi: setting `direction: rtl`, and using a mixture of strong LTR characters (e.g. letters) and neutral characters (e.g. punctuation). This combination results in the neutral characters going RTL, which is why you end up with things like “.solve them” and “→ ?What is this” rather than “solve them.” and “What is this? →”.
It’s demonstrating things that are commonly done wrong the other way (when the document says it’s LTR, but contains RTL text).