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.
When trying to select a RTL substring, the highlighted text seems to be current but if you just press delete button, It will delete another part of the text instead of highlighted.
also double clicking on the text will highlight another word/part of text.
It behaves like the position of the mouse is horizontally invert on the RTL text.
Simulate it:
First Test:
این یک متن فارسی است
Select این With mouse down and mouse up and Press Delete button, and it will delete است instead of این:
این یک متن فارسی
Second Test:
این یک متن فارسی است
Double click on رسی
رسی will be Highlighted but if you press delete, این will be deleted.
Reacted by Amir Ahanchi, Mahdi Nasiri, Samim Pezeshki, Iddan Aaronsohn, Arash Pourhabibi, Ali, Ali Ghanavatian, amirozer, SydAmir, Mohammad Hossein Fattahizadeh and 9 more
@mohataher I Installed yesterday and problem still exists.
@Majid-Kaffash I think its not a good idea to change the Editors entire direction for every time you want to edit a none English word or sentence. even with text-align:left
Although @Majid-Kaffash solution isn't perfect, but it works until there's a better solution. Is there anyway I can make a keybind that toggles this edit in the stylesheet?
Not a solution for "actual" RTL support (it probably even makes it very hard to read RTL text), but this way at least bidirectionality doesn't destroy the text (and selection) flow, so it's at least possible to work with files with bidirectional text:
/* Bidirectional text is broken, so let's pretend it doesn't exist. */ atom-text-editor::shadow { .line { unicode-bidi: bidi-override; } }
Edit 2017-01-12:
Small update, because of the shadow DOM changes in 1.13.0, the following code should be added to the atom stylesheet instead:
/* Bidirectional text is broken, so let's pretend it doesn't exist. */
atom-text-editor .line {
unicode-bidi: bidi-override;
}
Reacted by Roy Teusink, Abdullah Hilson, David Avikasis and Shaya-pnc
Reacted by saleh mosleh and Essehemy
Reacted by Abdullah Hilson, Amir Yeganemehr and ESA
Every update is making it even worse. I was solving this problem in a tricking way by inverse selecting words. For example, previously to select این in این یک متن فارسی است, I double-clicked on است and این was being selected.
But now in latest version 1.12.7, even this trick isn't working.
Reacted by MadHundred, Mohammad Hossein Fattahizadeh, Mohammadreza Khalifeh and Ahmad
@lajmikhalil as I stated above, if people want to help speed up the process we would definitely welcome the help. The reality is that our resources are finite and there will be things that we can't get to as quickly as some would want. The awesome part about open source is that everyone can work on the bits of functionality that are important to them and the whole system gets better.
I won't complain and I agree with @lee-dohm . If we RTLers want to get it better then we have to contribute. unfortunatly I don't have the knwledge about developing IDEs and Editors.
Why atom team don't like to fix this issue? I think, you have many professional developers and why this F... RTL problem is not important for you? how a developer can develop a Multilanguage learning app without RTL?
Thanks everyone for your feedback. We understand and agree that this is an important issue, that's why it is still open. On the other hand, we don't have an ETA for when we'll be able to get to it. If people would like to help this happen sooner than we can get to it, we would be very interested in a well-written pull request.
Because the above message keeps getting lost in the chatter and since there is nothing new being said here, I'm going to lock the issue for further comments.
Activity
ebraminio commentedon Jun 1, 2016
To devs, consider reading 1 and 2 for getting some context.
mohataher commentedon Jul 17, 2016
salar90 commentedon Aug 4, 2016
@mohataher I Installed yesterday and problem still exists.
@Majid-Kaffash I think its not a good idea to change the Editors entire direction for every time you want to edit a none English word or sentence. even with text-align:left
majidkn commentedon Aug 4, 2016
@salar90 I'm agree with you . But in this situation the only thing that you can do is this :)
AbdelrahmanHafez commentedon Sep 6, 2016
Although @Majid-Kaffash solution isn't perfect, but it works until there's a better solution. Is there anyway I can make a keybind that toggles this edit in the stylesheet?
salar90 commentedon Sep 7, 2016
Microsoft's Visual Studio Code works perfectly in this case. Maybe Developers can inspire from its opensource codes?
https://github.com/Microsoft/vscode
abumalick commentedon Nov 3, 2016
Brackets works too with RTL language. I think atom and brackets are based on electron ?
Maybe it can help developers :
https://github.com/adobe/brackets/
I really want this feature in atom 👍
cben commentedon Nov 4, 2016
timwienk commentedon Dec 19, 2016
Not a solution for "actual" RTL support (it probably even makes it very hard to read RTL text), but this way at least bidirectionality doesn't destroy the text (and selection) flow, so it's at least possible to work with files with bidirectional text:
/* Bidirectional text is broken, so let's pretend it doesn't exist. */atom-text-editor::shadow {.line {unicode-bidi: bidi-override;}}Edit 2017-01-12:
Small update, because of the shadow DOM changes in 1.13.0, the following code should be added to the atom stylesheet instead:
omidamraei commentedon Dec 27, 2016
Every update is making it even worse. I was solving this problem in a tricking way by inverse selecting words. For example, previously to select
اینinاین یک متن فارسی است, I double-clicked onاستandاینwas being selected.But now in latest version
1.12.7, even this trick isn't working.abumalick commentedon Dec 28, 2016
@timwienk Thanks, at least we can edit lines containing Arabic text when adding your code to atom stylesheet
jalal246 commentedon Feb 4, 2017
I have the same problem when I try to write in Arabic, it's really confusing for highlighted text.
Any solutions?
abumalick commentedon Feb 4, 2017
13 remaining items
WISTFUL12 commentedon Aug 20, 2017
lajmikhalil commentedon Nov 3, 2017
We need this to be fixed, coding shouldn't be just for ltr languages. I'm just surprised that this is overlooked still after 4 years.
lee-dohm commentedon Nov 3, 2017
@lajmikhalil as I stated above, if people want to help speed up the process we would definitely welcome the help. The reality is that our resources are finite and there will be things that we can't get to as quickly as some would want. The awesome part about open source is that everyone can work on the bits of functionality that are important to them and the whole system gets better.
iamsoorena commentedon Nov 17, 2017
does anyone know which source files are related to this issue? If someone wants to help, he/she will need some context.
winstliu commentedon Nov 17, 2017
@iamsoorena since this is happening in text editors, I would start by looking at text-editor-component.js and text-editor.js.
saeedhei commentedon Dec 18, 2017
mostafaasadi commentedon Feb 22, 2018
rsese commentedon Feb 22, 2018
salar90 commentedon Feb 22, 2018
I won't complain and I agree with @lee-dohm . If we RTLers want to get it better then we have to contribute. unfortunatly I don't have the knwledge about developing IDEs and Editors.
shubbarm commentedon Mar 12, 2018
farzinfadamin commentedon May 13, 2018
acrolink commentedon Jun 6, 2018
saeedhei commentedon Jun 6, 2018
Why atom team don't like to fix this issue? I think, you have many professional developers and why this F... RTL problem is not important for you? how a developer can develop a Multilanguage learning app without RTL?
lee-dohm commentedon Jun 6, 2018
Thanks everyone for your feedback. We understand and agree that this is an important issue, that's why it is still open. On the other hand, we don't have an ETA for when we'll be able to get to it. If people would like to help this happen sooner than we can get to it, we would be very interested in a well-written pull request.
Because the above message keeps getting lost in the chatter and since there is nothing new being said here, I'm going to lock the issue for further comments.