You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Some unicode characters seem to confuse Atom #1849
Got another support/2fbade76c7be11e3823522fac0cfe591, which I think is related:
Highlighting RTL (Right To Left) text is not working. Try this: Test السلام عليكم
I'm not able to select this text in Atom, and the cursor behaves erratically when I try to move from the beginning of the line to the end of the line by pressing the right arrow key.
Is there any progress on this bug? It's almost 6 months. This issue with RTL text prevents many persian developers from switching to atom.
To break the issue, there are two problems with persian/arabic texts.
There's one problem with not fixed-width font. Unfortunately, most standard fixed-width fonts, like Source Code Pro, don't have fixed-width arabic support.
Testing on the latest v0.135, yields the following:
Using a monospace font with arabic support, like Dejavu Sans Mono, fixes this one:
The other problem is what we see, is not what the editor sees. It seems the editor looks at the RTL text, just like an LTR text. So double clicking the beginning of a text, selects the last word:
Is there any plans to get this fixed by the v1.0 release? The first problem is somehow tolerable, but the second one, makes editing any text with more than one word practically impossible.
Reacted by Seyyed Morteza Moosavi, Ali Vakilzade, Arash Pourhabibi, Mojtaba Ghasemzadeh Tehrany, Hossein Saleminejad, Amir Yeganemehr, mohjak, Ali Ghanavatian, Hujjat Nazari, Mohammad Etemaddar and 3 more
1.For the first test, the behavior changes from case to case. Sometimes the cursor falls behind the text and sometimes far past the text. The first case makes it look like the cursor is stuck, but it's not. In both cases, the cursor has a wrong position. For the gif I have used the following repeated characters, but most of other arabic/persian character would do. You may use a big font size to make the difference bigger.
@miladsafaei You're welcome. Unfortunately, the second problem seems to be the internal way sublime currently works with text. I'm not sure why this is happening, as chromium itself has implemented the bidirectional algorithm to take care of this. I'm waiting to hear updates from the core developers to see if there's any help we could do.
It's not easy to paste files that exhibit the bug here as a certain level of normalization is taking place in the copy-paste (and the bug likely relies on differences between decomposed characters and precomposed characters) but here's a hex dump of a file that shows the bug:
0000000 ce ac ce b4 ce b9 ce ba ce ad cf 89 2c 20 ce ac
0000010 ce b4 ce b9 ce ba ce ae cf 83 cf 89 2c 20 e1 bc
0000020 a0 ce b4 ce af ce ba ce b7 cf 83 ce b1 2c 20 e1
0000030 bc a0 ce b4 ce af ce ba ce b7 ce ba ce b1 2c 20
0000040 e1 bc a0 ce b4 ce af ce ba ce b7 ce bc ce b1 ce
0000050 b9 2c 20 e1 bc a0 ce b4 ce b9 ce ba ce ae ce b8
0000060 ce b7 ce bd 0a
0000065
Agreed to track RTL support in a separate issue, 'cause I applied some changes that made working with lines made up by only RTL characters usable. For example:
السلام عليكم السلام عليكم السلام عليكم السلام عليكم
Should work just fine. Due to some limitations of the Range API, Chrome starts to getting confused as soon as LTR and RTL are used in the same line.
Also optimizeLegibility now is default Chrome 49 behavior so no more weird looking like #1849 (comment) difference on lines with different kind of characters.
@jtauber thanks for your replay,
I knew but it did not labelled as "close" and some other issues referenced to this like#2391, #4007,#7529,#7897 and for example @izuzak referenced others to this and more important this issue is still here.
then please labelled close if it should be closed.
thanks.
@vhp1360 This issue clearly has a red label next to it that says "Closed".
In addition, if you read through the entire issue you would have noticed that this issue was closed on October 8th, 2015.
New conversation should take place in #10132 (for now).
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
izuzak commentedon Apr 19, 2014
Got another support/2fbade76c7be11e3823522fac0cfe591, which I think is related:
I'm not able to select this text in Atom, and the cursor behaves erratically when I try to move from the beginning of the line to the end of the line by pressing the right arrow key.
izuzak commentedon Jul 24, 2014
@nathansobo This still seems to be an issue, even with react (but in a different way):
Steps to reproduce:
Test السلام عليكمinto Atomkamyarinfinity commentedon Oct 5, 2014
Is there any progress on this bug? It's almost 6 months. This issue with RTL text prevents many persian developers from switching to atom.
To break the issue, there are two problems with persian/arabic texts.
Testing on the latest v0.135, yields the following:
Using a monospace font with arabic support, like Dejavu Sans Mono, fixes this one:
Is there any plans to get this fixed by the v1.0 release? The first problem is somehow tolerable, but the second one, makes editing any text with more than one word practically impossible.
kevinsawicki commentedon Oct 6, 2014
@kamyarinfinity Can you include the raw text from those gifs? Just to make it easier to reproduce and test with the problematic characters
kamyarinfinity commentedon Oct 6, 2014
@kevinsawicki Sure:
1.For the first test, the behavior changes from case to case. Sometimes the cursor falls behind the text and sometimes far past the text. The first case makes it look like the cursor is stuck, but it's not. In both cases, the cursor has a wrong position. For the gif I have used the following repeated characters, but most of other arabic/persian character would do. You may use a big font size to make the difference bigger.
2.The following text:
kevinsawicki commentedon Oct 6, 2014
@kamyarinfinity Great, thanks for all the details.
miladsafaei commentedon Nov 2, 2014
@kamyarinfinity Thanks to you, my first problem solved using Dejavu Sans Mono font, but didn't you find any solution for the second problem yet?
kamyarinfinity commentedon Nov 2, 2014
@miladsafaei You're welcome. Unfortunately, the second problem seems to be the internal way sublime currently works with text. I'm not sure why this is happening, as chromium itself has implemented the bidirectional algorithm to take care of this. I'm waiting to hear updates from the core developers to see if there's any help we could do.
samaphp commentedon Dec 7, 2014
Guys you're doing very well in this amazing application <3
Any updates in this issue please?
facundofarias commentedon Mar 16, 2015
Do we have news on this regard? :(
nathansobo commentedon Mar 16, 2015
We're working on a new document model which should set the stage for fixing this.
jtauber commentedon Mar 20, 2015
I'm seeing a likely related issue with polytonic Greek. Here's a GIF:
jtauber commentedon Mar 20, 2015
It's not easy to paste files that exhibit the bug here as a certain level of normalization is taking place in the copy-paste (and the bug likely relies on differences between decomposed characters and precomposed characters) but here's a hex dump of a file that shows the bug:
21 remaining items
as-cii commentedon Oct 8, 2015
Agreed to track RTL support in a separate issue, 'cause I applied some changes that made working with lines made up by only RTL characters usable. For example:
Should work just fine. Due to some limitations of the
RangeAPI, Chrome starts to getting confused as soon as LTR and RTL are used in the same line.Thanks for pointing that out, @izuzak. ❤️
ebraminio commentedon Nov 21, 2015
You can consider integration some parts of https://github.com/Microsoft/vscode Monco editor now which works great on this area (more details, I see it as a dream has came true!)
ebraminio commentedon Nov 25, 2015
Also optimizeLegibility now is default Chrome 49 behavior so no more weird looking like #1849 (comment) difference on lines with different kind of characters.
alilotfi commentedon Dec 14, 2015
Same for me
atom 1.2.0
ahmadyousefdev commentedon Jun 1, 2016
yeah the same problem here 😢 the pointer is never on the right place ..
ebraminio commentedon Jun 1, 2016
Lets continue our RTL text bug dicussion here: #10132
Javanmardi commentedon Aug 13, 2016
A simple flush left/right like Notepad++ would be satisfying.
Recently I installed force-text-direction, but it does not do anything.
(Within Notepad++ a combination of CTRL+ALT+L/R flushes all the lines left or right respectively)
vhp1360 commentedon Nov 22, 2016
Hello members,
I'll appreciate if any one give any update regarding this issue.
jtauber commentedon Nov 22, 2016
@vhp1360 this issue has been closed for over a year. Any follow up should probably take place on open issues referenced.
vhp1360 commentedon Nov 23, 2016
@jtauber thanks for your replay,
I knew but it did not labelled as "close" and some other issues referenced to this like#2391, #4007,#7529,#7897 and for example @izuzak referenced others to this and more important this issue is still here.
then please labelled close if it should be closed.
thanks.
winstliu commentedon Nov 25, 2016
@vhp1360 This issue clearly has a red label next to it that says "Closed".
In addition, if you read through the entire issue you would have noticed that this issue was closed on October 8th, 2015.
New conversation should take place in #10132 (for now).
iegik commentedon Feb 2, 2018
OS: Windows 10

Application: Notepad++ v7.5.4
The wrong caret position in word
НОМЕНКЛАТУ́РА:lock commentedon Aug 1, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!