[kate] [Bug 425419] Right-To-Left Text Breaks Flag Emojis
https://bugs.kde.org/show_bug.cgi?id=425419 Waqar Ahmed changed: What|Removed |Added CC||waqar@gmail.com Status|CONFIRMED |RESOLVED Resolution|--- |UPSTREAM --- Comment #11 from Waqar Ahmed --- This needs to be reported to Qt, nothing can be done about it in Kate (unless we start doing text rendering from scratch) -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 425419] Right-To-Left Text Breaks Flag Emojis
https://bugs.kde.org/show_bug.cgi?id=425419 --- Comment #10 from i3r...@gmail.com --- (In reply to I3rav3 from comment #9) > pointers regarding reporting [it] somewhere where someone can actually figure > it [out]. -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 425419] Right-To-Left Text Breaks Flag Emojis
https://bugs.kde.org/show_bug.cgi?id=425419 --- Comment #9 from i3r...@gmail.com --- (In reply to Yaron Shahrabani from comment #8) > I've presented this issue to the Hebrew Linux community: > https://www.facebook.com/groups/linux.il/permalink/3459130597506838/ > > We came to the conclusion that gedit, Kate and mousepad in different > versions are all affected by this bug. > > The test case is: > ישראל > ליכטנשטיין > The first one reads Israel and the Israeli flag afterwards > The second one reads Liechtenstein with the corresponding flag > > There has been some suspicions regarding Pango but I couldn't verify that. > > Pretty funny case. What's even funnier is that when I visited your Facebook group, the first post I saw was someone apologizing for writing in English because of Facebook's atrocious RTL support. So yeah, I wouldn't hold this problem against whatever open-source library is causing it, when much larger companies with much deeper pockets still can't figure RTL out. It's been ages since I've used Twitter, but I remember its RTL support to be exceptionally good. It even manages to not mangle RTL text when the interface itself is LTR, something that Google doesn't even seem to be aware it's doing. I would still like this problem to be fixed, and would appreciate any pointers regarding reporting somewhere where someone can actually figure it. It also seems worth repeating that this problem isn't universal to Linux. It doesn't occur for example in Firefox, Thunderbird, PyCharm or Sublime Text from what I've been able to test. -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 425419] Right-To-Left Text Breaks Flag Emojis
https://bugs.kde.org/show_bug.cgi?id=425419 --- Comment #8 from Yaron Shahrabani --- I've presented this issue to the Hebrew Linux community: https://www.facebook.com/groups/linux.il/permalink/3459130597506838/ We came to the conclusion that gedit, Kate and mousepad in different versions are all affected by this bug. The test case is: ישראל ליכטנשטיין The first one reads Israel and the Israeli flag afterwards The second one reads Liechtenstein with the corresponding flag There has been some suspicions regarding Pango but I couldn't verify that. Pretty funny case. -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 425419] Right-To-Left Text Breaks Flag Emojis
https://bugs.kde.org/show_bug.cgi?id=425419 --- Comment #7 from i3r...@gmail.com --- (In reply to Justin Zobel from comment #6) > I have tested this by copying the RTL text in Comment 2 and trying to paste > the Australian flag in the document. An entirely different flag appeared. That must have been Ukraine's flag (AU when read RTL is UA, Ukraine's flag code.) I have since moved to gnome (not because of this problem, performance issues and better support), and have faced the exact same problem. The problem is definitely due to something upstream, and any helpful advice regarding where to report it would be really appreciated. -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 425419] Right-To-Left Text Breaks Flag Emojis
https://bugs.kde.org/show_bug.cgi?id=425419 Justin Zobel changed: What|Removed |Added CC||justin.zo...@gmail.com Ever confirmed|0 |1 Status|REPORTED|CONFIRMED --- Comment #6 from Justin Zobel --- I have tested this by copying the RTL text in Comment 2 and trying to paste the Australian flag in the document. An entirely different flag appeared. -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 425419] Right-To-Left Text Breaks Flag Emojis
https://bugs.kde.org/show_bug.cgi?id=425419 Yaron Shahrabani changed: What|Removed |Added Keywords||rtl CC||sh.ya...@gmail.com -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 425419] Right-To-Left Text Breaks Flag Emojis
https://bugs.kde.org/show_bug.cgi?id=425419 --- Comment #5 from i3r...@gmail.com --- (In reply to I3rav3 from comment #2) > (In reply to Christoph Feck from comment #1) > (JP: , PJ:). > This is also WHY single character emojis aren't affected by this problem. Sorry. Correcting typos. -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 425419] Right-To-Left Text Breaks Flag Emojis
https://bugs.kde.org/show_bug.cgi?id=425419 --- Comment #4 from i3r...@gmail.com --- Created attachment 131396 --> https://bugs.kde.org/attachment.cgi?id=131396=edit Flag emoji not working in QLineEdit widget -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 425419] Right-To-Left Text Breaks Flag Emojis
https://bugs.kde.org/show_bug.cgi?id=425419 --- Comment #3 from i3r...@gmail.com --- Created attachment 131395 --> https://bugs.kde.org/attachment.cgi?id=131395=edit Flag emoji working in QLineEdit Widget -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 425419] Right-To-Left Text Breaks Flag Emojis
https://bugs.kde.org/show_bug.cgi?id=425419 --- Comment #2 from i3r...@gmail.com --- (In reply to Christoph Feck from comment #1) > > This problem is universal to KDE > > Even in simple QLineEdit widgets? Then it's a Qt bug. > > Reassigning to Kate developer because the Kate text view may have it's own > layouting algorithms. Yes. For example, the same behavior is observed in the search box of the application launcher (see the new screenshots attached). I figured out the problem at the conceptual level, but I honestly lack the requisite knowledge to point at the piece of code that causes it. Flag emojis are not a single unicode character like other emojis. For example, Egypt's flag emoji is made up of two unicode characters: and . When these two characters are typed in sequence without a space, the font that handles emojis interprets them as one unit and shows the corresponding flag. So is in fact followed by a without a space. The problem is with the way KDE (or Qt as you pointed out) interprets LTR text when used with RTL text. When LTR text is used with RTL text, LTR text should still be read from left to right. This is the way it's interpreted in every piece of software I've ever used (firefox for example), and the way it's actually read in real life (for Arabic at least). For example, if I encounter the sentence "cat مرحباً", I will read it as "hello cat", not as "hello tac". Qt, however, will interpret it as "hello tac". So, for example, if Qt tries to read " مرحباً", it will interpret the emoji flag characters RTL, and will read then , prompting the font to show Georgia's flag () instead of Egypt's. Egypt is lucky to have another flag substituted for its flag. Japan, on the other hand, will have its flag substituted by a question mark flag (depending on the font), because there's no country with code PJ (JP: h, PJ: ). This is also way single character emojis aren't affected by this problem. A single character is read the same way LTR or RTL. -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 425419] Right-To-Left Text Breaks Flag Emojis
https://bugs.kde.org/show_bug.cgi?id=425419 Christoph Feck changed: What|Removed |Added Component|general |general Product|kde |kate Assignee|unassigned-b...@kde.org |kwrite-bugs-n...@kde.org --- Comment #1 from Christoph Feck --- > This problem is universal to KDE Even in simple QLineEdit widgets? Then it's a Qt bug. Reassigning to Kate developer because the Kate text view may have it's own layouting algorithms. -- You are receiving this mail because: You are watching all bug changes.