Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Some unicode characters seem to confuse Atom #1849

Closed

Description

@izuzak

Halp ticket:

  • support/e61e5074bc3011e396a434cf997499c3

Support for Unicode is incomplete. Unicode characters are shown, but the cursor get stuck, and the navigation with the keyboard arrows stop working.

The user was using this string as an example ג׳ג׳ג׳dwdwdww

Here's a GIF of me pressing just the right arrow key to get from the beginning of the string to the end:

test1006

Activity

  1. izuzak commented on Apr 19, 2014

    @izuzak
    ContributorAuthor

    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.

  2. izuzak commented on Jul 24, 2014

    @izuzak
    ContributorAuthor

    @nathansobo This still seems to be an issue, even with react (but in a different way):

    woot

    Steps to reproduce:

    1. Paste Test السلام عليكم into Atom
    2. Position the cursor at the end of the line
    3. Press delete and notice that characters are being deleted from the middle of the line
  3. kamyarinfinity commented on Oct 5, 2014

    @kamyarinfinity

    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.

    1. 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:
      atom-not-fixed
      Using a monospace font with arabic support, like Dejavu Sans Mono, fixes this one:
      atom-fixed
    2. 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:
      atom-backwards

    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.

  4. kevinsawicki commented on Oct 6, 2014

    @kevinsawicki
    Contributor

    @kamyarinfinity Can you include the raw text from those gifs? Just to make it easier to reproduce and test with the problematic characters

  5. kamyarinfinity commented on Oct 6, 2014

    @kamyarinfinity

    @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:

    اثر کارآزمودگی
    
  6. kevinsawicki commented on Oct 6, 2014

    @kevinsawicki
    Contributor

    @kamyarinfinity Great, thanks for all the details.

  7. miladsafaei commented on Nov 2, 2014

    @miladsafaei

    @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?

  8. kamyarinfinity commented on Nov 2, 2014

    @kamyarinfinity

    @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.

  9. samaphp commented on Dec 7, 2014

    @samaphp

    Guys you're doing very well in this amazing application <3
    Any updates in this issue please?

  10. facundofarias commented on Mar 16, 2015

    @facundofarias

    Do we have news on this regard? :(

  11. nathansobo commented on Mar 16, 2015

    @nathansobo
    Contributor

    We're working on a new document model which should set the stage for fixing this.

  12. jtauber commented on Mar 20, 2015

    @jtauber

    I'm seeing a likely related issue with polytonic Greek. Here's a GIF:

    out

  13. jtauber commented on Mar 20, 2015

    @jtauber

    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
    
  14. 21 remaining items

  15. as-cii commented on Oct 8, 2015

    @as-cii
    Contributor

    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.

    Thanks for pointing that out, @izuzak. ❤️

  16. ebraminio commented on Nov 21, 2015

    @ebraminio

    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!)

  17. ebraminio commented on Nov 25, 2015

    @ebraminio

    Also optimizeLegibility now is default Chrome 49 behavior so no more weird looking like #1849 (comment) difference on lines with different kind of characters.

  18. alilotfi commented on Dec 14, 2015

    @alilotfi

    Same for me
    atom 1.2.0

  19. ahmadyousefdev commented on Jun 1, 2016

    @ahmadyousefdev

    yeah the same problem here 😢 the pointer is never on the right place ..

  20. ebraminio commented on Jun 1, 2016

    @ebraminio

    Lets continue our RTL text bug dicussion here: #10132

  21. Javanmardi commented on Aug 13, 2016

    @Javanmardi

    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)

  22. vhp1360 commented on Nov 22, 2016

    @vhp1360

    Hello members,
    I'll appreciate if any one give any update regarding this issue.

  23. jtauber commented on Nov 22, 2016

    @jtauber

    @vhp1360 this issue has been closed for over a year. Any follow up should probably take place on open issues referenced.

  24. vhp1360 commented on Nov 23, 2016

    @vhp1360

    @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.

  25. winstliu commented on Nov 25, 2016

    @winstliu
    Contributor

    @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).

  26. iegik commented on Feb 2, 2018

    @iegik

    OS: Windows 10
    Application: Notepad++ v7.5.4
    The wrong caret position in word НОМЕНКЛАТУ́РА:

  27. lock commented on Aug 1, 2018

    @lock

    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!

  28. locked as resolved and limited conversation to collaborators on Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions