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.

incorrect cursor placement on lines with accented characters #5975

Closed

Description

@jtauber

There seems to have been a recent regression in the placement of the cursor and end-of-line marker on lines with accented characters. For example

ὤὤὤὤὤὤὤὤὤὤ

Has ten characters but if you ctrl-E to the end of the line the cursor is in the wrong place:

screen shot 2015-03-15 at 5 18 12 pm

This may seem obscure but is making it very difficult to use Atom for natural language processing applications with non-ASCII character sets. It worked fairly recently so is likely a recent regression.

Activity

  1. jtauber commented on Mar 16, 2015

    @jtauber
    Author

    Actually, it doesn't even need to involve accented characters.

    Entering

    θν

    will place the cursor between θ and ν in 0.187.0

  2. izuzak commented on Mar 20, 2015

    @izuzak
    Contributor

    @jtauber I'm having trouble reproducing this in 0.187.0. Can you reproduce this in safe mode? Also, which OS are you using and which font?

    Here's what I'm seeing:

    cur

  3. jtauber commented on Mar 20, 2015

    @jtauber
    Author

    OS X 10.10.2 and default font is PT Mono (which doesn't support polytonic Greek so it would be a fall-through font)

  4. jtauber commented on Mar 20, 2015

    @jtauber
    Author

    I'm going to continue to explore what the reproducible scenario is as if I start a new doc and paste ὤὤὤὤὤὤὤὤὤὤ it works fine for me too :/

  5. jtauber commented on Mar 20, 2015

    @jtauber
    Author

    Until I narrow down the exact scenario, here's a gif of the problem on a real file...

    out

  6. izuzak commented on Mar 20, 2015

    @izuzak
    Contributor

    This also reminds me of #1849. Any chance this issue is a duplicate of that?

  7. jtauber commented on Mar 20, 2015

    @jtauber
    Author

    I suspect the problem can't be reproduced by copy-pasting content here as some Unicode normalization is likely taking place. I have a one-line file that reproduces the problem for me but copy-pasting the content here will likely not work.

  8. jtauber commented on Mar 20, 2015

    @jtauber
    Author

    It seems entirely plausible this is a duplicate of #1849. If a fix lands for that, I'm happy to validate that it fixes my problem.

  9. jtauber commented on Mar 20, 2015

    @jtauber
    Author

    In the mean time, let me do a hex dump of the one-line file that exhibits the bug so it's clear exactly what the data on disk is...

    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
    
  10. izuzak commented on Mar 20, 2015

    @izuzak
    Contributor

    @jtauber Since they are indeed similar, what do you think about adding a comment to that issue with a description of what you're seeing (and a link to the file which reproduces this for you), closing this issue and waiting for a fix for that issue to land? Once it does, we can reopen this if it's not fixed as well.

  11. jtauber commented on Mar 20, 2015

    @jtauber
    Author

    @izuzak sure, I'm happy to do that.

  12. jtauber commented on Jun 6, 2015

    @jtauber
    Author

    This is probably the best example I can come up with of the bug and its effect:

    1. the existence of certain diacritics (possibly related to whether they are combining characters) on the alpha makes every glyph on the line narrower (including all those earlier in the line)
    2. the cursor placement ignores this narrowing and the cursor's x offset on the third and later lines is where it would be on the first or second line

    This is on 0.207.0.

    screen shot 2015-06-06 at 12 24 16 pm

  13. reopened this on Jun 8, 2015
  14. jtauber commented on Jun 8, 2015

    @jtauber
    Author

    I've reopened this as it really is a separate issue from #1849 and can be fixed independently.

    I will verify this is fixed once #6055 and #6083 land.

  15. benogle commented on Oct 8, 2015

    @benogle
    Contributor

    Closing as the new text measurement bits in #6083 are in master

  16. jtauber commented on Nov 2, 2015

    @jtauber
    Author

    I can verify the problems described here are all resolved in 1.1

  17. lock commented on Jan 19, 2019

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

  18. locked as resolved and limited conversation to collaborators on Jan 19, 2019
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