Skip to content

Variation selectors are not correctly handled #45

Closed

Description

@Frederick888

Variation selectors (U+FE0E, U+FE0F) can change column widths of some preceding characters. For example, U+270F (✏) is a single-column glyph by itself, but with a succeeding U+FE0F it occupies 2 columns as shown in the snapshot below.

image

Activity

  1. Frederick888 commented on Aug 20, 2020

    @Frederick888
    Author

    Sorry I just went through the README. Is such kind of cases not supposed to be handled by this package?

  2. jquast commented on Aug 20, 2020

    @jquast
    Owner

    This is a new one to me, yes, if iTerm and libvte-based terminals support it, then so should wcwidth! Thank you

  3. Frederick888 commented on Aug 21, 2020

    @Frederick888
    Author

    @jquast Then I'm afraid this is not the only case... There are also for example, Emoji Modifier Sequences, Zero-Width Joiner (and etc?).

    Unicode is crazy lol...

    image

  4. jquast commented on Aug 22, 2020

    @jquast
    Owner

    Multi codepoint emoji's covered in #39, zero-width joiners are sort of in 2 different issues.. Yes, Unicode 6.0 was so much easier when this project started :)

  5. added a commit that references this issue on Oct 30, 2023
  6. jquast commented on Oct 30, 2023

    @jquast
    Owner

    I have verified that this example in particular is fixed by #91 in today's release, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions