Home » U++ Library support » LineEdit, EditFields, DocEdit » issue with right to left languages (Arabic & Hebrew) (issue with right to left languages (Arabic & Hebrew))
issue with right to left languages (Arabic & Hebrew) [message #58377] |
Fri, 13 May 2022 16:17  |
Mountacir
Messages: 49 Registered: November 2021
|
Member |
|
|
Hello,
I encountered this problem with RTL languages. Hebrew is reversed if past in LineEdit or EditString, while Arabic is past correctly but when selected a reversed selection is overlapping the non selected text.
To reproduce this behavior, just copy and past some Arabic/Hebrew text in TheIde and try to select the Arabic text.
Samples:
"هذا مثال نصي للغة العربية"
"זוהי דוגמה טקסט לעברית"
[Updated on: Fri, 13 May 2022 16:17] Report message to a moderator
|
|
|
|
Re: issue with right to left languages (Arabic & Hebrew) [message #58444 is a reply to message #58412] |
Sun, 22 May 2022 04:56   |
Mountacir
Messages: 49 Registered: November 2021
|
Member |
|
|
I took a look at CodeEditor's code trying to figure out a fix for at least the weird selection, but i soon give up.. still learning C++ let alone U++. But i can definitely help with testing Arabic though.
By the way, RichText displays Arabic and Hebrew perfectly, it only has one problem when typing Arabic for example, the new typed characters are always on the other side of the cursor. It also lacks the feature to mix RTL & LTR.. perhaps implementing "Unicode Bidirectional Algorithm" could fix all of that.
[Updated on: Sun, 22 May 2022 04:58] Report message to a moderator
|
|
|
|
Re: issue with right to left languages (Arabic & Hebrew) [message #58446 is a reply to message #58377] |
Mon, 23 May 2022 05:37  |
Mountacir
Messages: 49 Registered: November 2021
|
Member |
|
|
Quote:By the way, RichText displays Arabic and Hebrew perfectly,..
I meant to say RichEdit, it even displays it correctly without ALIGN_RIGHT.
Quote:That is actually sort of surprising. On what system are you?
I'm mainly on Windows.. i'll will try it on an Ubuntu machine and macOS VM tonight.
Quote:Unfortunately, left-to-right was fixed into U++ internals at the beggining (which is now 20 years ago) and nobody had guts to fix that ever since. There will be a lot of changes before we are there. But I am willing to give it a try!
That's no easy task, I wish you good luck!
|
|
|
Goto Forum:
Current Time: Sun Apr 27 18:15:44 CEST 2025
Total time taken to generate the page: 0.02730 seconds
|