Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection text incorrect for RTL langauges #182

Closed
syakhmi opened this issue Mar 14, 2011 · 6 comments
Closed

Selection text incorrect for RTL langauges #182

syakhmi opened this issue Mar 14, 2011 · 6 comments

Comments

@syakhmi
Copy link

syakhmi commented Mar 14, 2011

Ace does not work correctly with RTL languages. For example, when viewing a file with Arabic/Persian/Urdu text, if you select a chunk of the text containing RTL text, and copy the selection to the clipboard or make a call to the copyText() function, the wrong text will be copied or returned. For example, if you select the first three RTL characters between

tags and copy them, instead the last three will be copied.
@Gissues:{"order":84.47204968944106,"status":"backlog"}

@fjakobs
Copy link
Contributor

fjakobs commented Mar 14, 2011

Hi, I have not tested RTL yet. Can you add a gist with an example document?

@syakhmi
Copy link
Author

syakhmi commented Mar 14, 2011

No problem. I created a sample html file with some Urdu RTL text in it, as well as a plain text file with only RTL text contained. The problem with selection always occurs with the plain text file, and with the html file whenever the entire RTL substring (for example, between

tags) is not selected. https://gist.github.com/869900

@fjakobs
Copy link
Contributor

fjakobs commented Mar 21, 2011

Thanks. I just checked how the browser handles it. This will be tough to support and may take some time.

@nightwing nightwing mentioned this issue May 21, 2013
@camertron
Copy link
Contributor

Any progress on this?

@TarepSH
Copy link

TarepSH commented Mar 18, 2015

we still wating for RTL support.

@nightwing
Copy link
Member

implemented in #3137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants