[konsole] [Bug 450219] New: Trailing RLM characters are not displayed.
Dotan Cohen
bugzilla_noreply at kde.org
Mon Feb 14 14:10:16 GMT 2022
https://bugs.kde.org/show_bug.cgi?id=450219
Bug ID: 450219
Summary: Trailing RLM characters are not displayed.
Product: konsole
Version: 21.03.80
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: font
Assignee: konsole-devel at kde.org
Reporter: kde-2011.08 at dotancohen.com
Target Milestone: ---
BACKGROUND:
The RLM character is a non-printing character that has RTL (Right-to-Left)
directionality:
https://www.fileformat.info/info/unicode/char/200f/index.htm
ׁHere is the Hebrew word for peace, with a period AFTER the word. The period
SHOULD be on the left side of the word, but because bugs.kde.org is a LTR
(Left-to-Right) website it will erroneously appear on the right of the word:
שלום.
To resolve that, one places an RLM character AFTER the period:
שלום.
You can't see that RLM character after the period, but because it's there the
period is properly shown to the left of the word.
STEPS TO REPRODUCE
1. Print text to Konsole with a trailing RLM character
2.
3.
OBSERVED RESULT
RLM character is NOT displayed. It is a non-printing character so it cannot be
seen, but it's absence is noted by the period being on the right of the word.
EXPECTED RESULT
RLM character should displayed. It's presence would be noted by the period
being on the left of the word.
SOFTWARE/OS VERSIONS
KDE Frameworks 5.68.0
Qt 5.12.8 (built against 5.12.8)
ADDITIONAL INFORMATION
Here we can see that the RLM character at the end is not affecting the display
of the text. The period should be on the left. Echo is echoing two Hebrew
characters, then a period, then the letter e. Then sed is replacing the e with
the RLM:
$ echo "אב.e" | sed "s;e;$(echo -ne '\u200f');"
אב.
We can verify that the RLM is there with hd:
$ echo "אב.e" | sed "s;e;$(echo -ne '\u200f');" | hd
00000000 d7 90 d7 91 2e e2 80 8f 0a |.........|
00000009
The "e2 80 8f" bytes are the RLM, see the page linked above, which contains
this text:
UTF-8 (hex): 0xE2 0x80 0x8F (e2808f)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list