I have two specific issues with RTL that I haven't found a great
solution for, and which aren't covered very well by existing articles.
If anyone could point me in the right direction, I'd appreciate it.

First, balancing parentheses. If you have LTR text like "Title
(Subtitle)" in an RTL environment, it will end up looking like "(Title
(Subtitle" because the closing paren is rendered according to RTL rules,
while the opening one is LTR. I know we can fix this with the <bdi>
element*, but that doesn't solve the second issue.

Second, ellipses. How do I ensure that the ellipsis is on the correct
side of the text? Again, if we have LTR text like "Long name here" in an
RTL environment, it usually ends up looking like "...Long name", which
is backwards.

Is there an easy way to handle both of these? Preferably with a working
example so I can poke at it and figure out how to adapt it to the apps I
maintain? Thanks!

- Jim

* Or by Gecko supporting Unicode 7.0, I think.
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to