The footgun of right-to-left decorative characters

44 points
1/21/1970
6 days ago
by dado3212

Comments


Georgelemental

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.

2 days ago

dhosek

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.

2 days ago

helterskelter

> 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.

Yeah but at least we can read ancient boustrophedon-style texts in plaintext, the way they were meant to be read, free of 21st century anachronisms like indication of directionality.

Unfortunately, we're still waiting for Unicode to cover Rongorongo, which has lines of alternating orientation for two readers sitting opposite one another to take turns reading it line by line.

2 days ago

dhosek

This is true, but even in print, properly typeset, mixed LR/RL texts can end up having ambiguities thanks to line breaks.

21 hours ago

YokoZar

A fun hack I remember was that Windows internally used two left-to-right control characters in a window title as an indicator that the entire window should have its content flipped right to left, images and all (imagine a clock animation running counter-clockwise).

This meant that if you could control the window title somehow you could create some surprising behavior, such as putting both those characters at the beginning of a post on a web forum and then having both the web page and browser look backward after someone opened the link.

I believe most things filter for this now, of course.

2 days ago

Dwedit

2 days ago

rhplus

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

2 days ago

mapontosevenths

Most browsers don't render punycode .coms very well the way we'd hope for these days. Homoglyph attacks ruined the fun.

2 days ago

SoftTalker

This is why I stick to standard ASCII.

2 days ago

[deleted]
2 days ago

dhosek

The millions of people who write in RL languages would like a word…

2 days ago

jjmarr

More like the billions of people that use non-Latin languages, or even Latin languages w/ accents.

2 days ago

Chu4eeno

We need to force the entire world to switch to Esperanto written in pure ASCII for reduced carbon emissions from glyph layout algorithm overhead and peace and unity.

2 days ago

graemep

Or Latin. More people know it than Esperanto and it can be written in pure ASCII.

2 days ago

JuniperMesos

This is a bad idea for several reasons, not the least of which is that the Esperanto version of the Latin alphabet itself uses a number of unusual diacritics which are important for disambiguating words.

2 days ago

sheept

I would assume that "Esperanto written in pure ASCII" is referring to x-sistemo, which avoids the diacritics

2 days ago

grayhatter

a word, or a drow?

But I'd also like a word with them. Or anyone else who might have a suggestion for "required reading". I'd like to think I know better than to use ascii art when it might flow into rtl text, but I wonder what other assumptions I've made that I should be aware are assumptions.

2 days ago

qingcharles

*laughs in Traditional Mongolian*

2 days ago

wang_li

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

2 days ago

JuniperMesos

Human written language is genuinely complicated; Unicode (or something that solves the same problems Unicode is trying to solve) actually does need to be a complicated specification.

2 days ago

foxglacier

Yes, but real writing is also unbounded in complexity. Unicode can't do everything or it would just be a general purpose vector graphics language. Traditionally, writing systems had to adapt to the limitations of the technology (eg. runes with only straight lines for carving) or not using cursive for printing, but now computers can do so much, we just let everything go and try to recapture every arbitrary detail of the past we can squeeze in and people pay for that with human labor maintaining such a mountain of low-value capabilities.

2 days ago

Georgelemental

People are going to use Arabic and Hebrew whether you want them to or not

2 days ago