livemarks icon indicating copy to clipboard operation
livemarks copied to clipboard

Read-post character (✓) appears on the wrong side in RTL languages

Open ysrn opened this issue 6 years ago • 1 comments

This happens because unicode-bidi:plaintext is applied to bookmarks, which is generally a good thing, and fixes up most issues with RTL languages in bookmarks. In this case however it causes the ✓ character to appear at the far end of the text, away from the icon.

LTR: (icon)✓ (text) RTL: (icon) (text) ✓

It can be fixed quite easily by inserting an LRI character (\u2066) before the ✓ (makes sure it's treated as LTR) and a PDI character (\u2069) after the ✓ (terminates the explicit direction, so the text can flow by the normal rules applied to it). See http://unicode.org/reports/tr9/#Explicit_Directional_Isolates

ysrn avatar Jan 21 '19 23:01 ysrn

Thank you for bringing this to our attention. I would implement this, but adding invisible characters to the input field might be a bit annoying? Maybe we should automatically add those characters. I assume having the tick mark on the left, right next to the icon would feel natural to RTL users?

evilpie avatar Feb 04 '19 15:02 evilpie