Mark Dain Sublevel doesn't have right-to-left support :( I don't know if the Unicode character is required, I believe iOS outputs one when you change keyboard
🦿 Lucian Marin I believe CSS support is necessary. Basically I need to autodetect right-to-left text and apply a CSS class.
6y, 51w 9 replies
Mark Dain Hmm, that could be tricky, especially with mixed sentences. I wonder if we could detect if the sentence starts with the Unicode right-to-left mark (UTF8: E2 80 8F / ‏). any ideas how best to tackle this?
6y, 51w 8 replies
Login or register your account to reply
Martijn Auto-detection and CSS on mixed direction text! Hahahahaha... haha... ha..? Oh, you weren't joking? The I invite you (and of course) to read w3.org/Internation... The whole page is pretty on point, but for Sublevel the heading "Handling content whose direction is not known in advance" is the important one. Adding dir="auto" on the textarea and pasting in does put it as RTL in my browser. I haven't done any further testing. I only know the theory, haven't actually had to implement any of this, ever.
6y, 51w 7 replies
Mark Dain Hmm, it works for the text box but not displaying that post I made, even if I apply it on the <p> tag. Maybe this is more hassle than it's worth?
6y, 51w 1 reply
🦿 Lucian Marin It can be reported to the server using `dirname` attribute. On the server I can set RTL as a boolean value for each reply/update. So the problem can be solved, . There's no need for hacks.
6y, 51w 4 replies