
[BUG] Book renderer shows Unicode control character which shouldn't be rendered
kkylern opened this issue · 0 comments
Mod's version
1.20.1-1.6.2 (I haven't checked, but I think it can occur for any newer version)
Issue
Malum's book renderer shows \u200e Unicode control character (it should be invisible) after guillemets («
and »
), which are considered primary symbols for quotation marks over basic latin quotation mark in many languages.
Thoughts
I think it happens because of one specific property of guillimets. The symbol is used not only in Left-to-Right languages (Russian, French and etc.) but is used in Right-to-Left languages as well (Arabic).
\u200E
symbol ensures, that the text is rendered in right direction, but the symbol itself, of course, shouldn't be rendered.
Solutions I see:
- Clean text from added
\u200e
(LRM) and\u200f
(RLM) as I don't see translations in other languages using guillimets as much (if they do at all) as translations in Russian - Handle characters (
\u200e
in this case) that should be invisible
What doesn't work:
- Workaround: changing guillimets to their unicode (
\u00ab
and\u00bb
). If space or end of the line occurs after guillimet unicode,\u200e
would still show up.