The View->RTL option does not help. It only moves the text to the right.
But what happens when I write in one sentence both English and a Right-to-Left language?
When I do that, if I'm trying to mark with the mouse some characters in my sentence (either English character or the RTL language's characters), the order of the characters change. All the sentence looks weird as a result of marking some characters. This happens both in LTR or RTL modes.
I think that many people who's English isn't their native language would be familiar with this situation. I found this problem when I tried to write a text file for my system, which in this case you must write English and a RTL language in one line:
Unfortunately, you are hitting a Scintilla limitation, as the following excerpt of Scintilla docs suggests:
Code page SC_CP_UTF8 (65001) sets Scintilla into Unicode mode with the document treated as a sequence of characters expressed in UTF-8. The text is converted to the platform's normal Unicode encoding before being drawn by the OS and thus can display Hebrew, Arabic, Cyrillic, and Han characters. Languages which can use two characters stacked vertically in one horizontal space, such as Thai, will mostly work but there are some issues where the characters are drawn separately leading to visual glitches. Bi-directional text is not supported. Characters outside the Basic Multilingual Plane are unlikely to work.
Actually, a small plugin could, when activated, listen to the SCN_CHARADDED notification and move cursor one position left. While this may ùake caret movements jerky, this would effectively cause consecutive characters to be printed right to left. Using the sticky caret option in Scintilla could even solve that I didn't try that. So, there is hope, but some work is needed.
CChris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry for bumping this topic. I was wondering if this error could be fixed. It is extremely hard to type or change text in Arabic. If you would like to see, I made a small video showing what I mean: http://www.youtube.com/watch?v=jZcNf0cGCss
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm using NPP for many years and I like it a lot.
I feel that only one thing is missing: the support of right to left languages.
Could you please add it in any further release?
Thanks in advance.
Best regards,
Dor.
Hi CChris,
The View->RTL option does not help. It only moves the text to the right.
But what happens when I write in one sentence both English and a Right-to-Left language?
When I do that, if I'm trying to mark with the mouse some characters in my sentence (either English character or the RTL language's characters), the order of the characters change. All the sentence looks weird as a result of marking some characters. This happens both in LTR or RTL modes.
I think that many people who's English isn't their native language would be familiar with this situation. I found this problem when I tried to write a text file for my system, which in this case you must write English and a RTL language in one line:
// PHP code:
$text['Hello_World'] = '-Some_RTL_Language_characters_here-';
Unfortunately, you are hitting a Scintilla limitation, as the following excerpt of Scintilla docs suggests:
Code page SC_CP_UTF8 (65001) sets Scintilla into Unicode mode with the document treated as a sequence of characters expressed in UTF-8. The text is converted to the platform's normal Unicode encoding before being drawn by the OS and thus can display Hebrew, Arabic, Cyrillic, and Han characters. Languages which can use two characters stacked vertically in one horizontal space, such as Thai, will mostly work but there are some issues where the characters are drawn separately leading to visual glitches. Bi-directional text is not supported. Characters outside the Basic Multilingual Plane are unlikely to work.
Actually, a small plugin could, when activated, listen to the SCN_CHARADDED notification and move cursor one position left. While this may ùake caret movements jerky, this would effectively cause consecutive characters to be printed right to left. Using the sticky caret option in Scintilla could even solve that I didn't try that. So, there is hope, but some work is needed.
CChris
Doesn't View -> Text direction RTL help?
CChris
"Doesn't View -> Text direction RTL help? "
No ...
(sorry for the late answer)
Sorry for bumping this topic. I was wondering if this error could be fixed. It is extremely hard to type or change text in Arabic. If you would like to see, I made a small video showing what I mean:
http://www.youtube.com/watch?v=jZcNf0cGCss