logoalt Hacker News

The footgun of right-to-left decorative characters

29 pointsby dado3212last Tuesday at 3:04 AM16 commentsview on HN

Comments

dhosektoday at 2:51 AM

Mixing R-L and L-R scripts (as has been discussed here on many occasions) is a ripe arena for mysterious behavior. Given that even monolingual texts in R-L scripts will often include L-R characters, it can get hairy quickly. A desire to try to avoid having visible markers in text around the transitions is partly why the Unicode spec around bidi text is so complicated.

show 1 reply
Georgelementaltoday at 3:15 AM

If you are using plain text and don't have access to HTML or CSS markup, you can follow the RTL character with U+200E LEFT-TO-RIGHT MARK to achieve the same effect. And even if you do have access to those things, using U+200E ensures that operations that strip markup (like copy-paste) don't break your text.

rhplustoday at 3:05 AM

Disappointed that xn--sei.com or <insert fleuron here>.com is apparently registered but not redirecting to ornately decorated texts.

show 1 reply
wang_litoday at 3:36 AM

The Unicode committee needs to be dissolved or else Unicode is going to evolve into a full page markup scheme to rival pdf.

show 2 replies
SoftTalkertoday at 2:48 AM

This is why I stick to standard ASCII.

show 2 replies