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

U+FE0F emojis #21

Closed
truchi opened this issue Jul 15, 2021 · 5 comments
Closed

U+FE0F emojis #21

truchi opened this issue Jul 15, 2021 · 5 comments

Comments

@truchi
Copy link

truchi commented Jul 15, 2021

Hello !

dbg!(unicode_width::UnicodeWidthStr::width("☁️")); // 1
dbg!(unicode_width::UnicodeWidthStr::width("❤️")); // 1
dbg!(unicode_width::UnicodeWidthStr::width("☂️")); // 1
dbg!(unicode_width::UnicodeWidthStr::width("✏️")); // 1
dbg!(unicode_width::UnicodeWidthStr::width("✂️")); // 1
dbg!(unicode_width::UnicodeWidthStr::width("☎️")); // 1
dbg!(unicode_width::UnicodeWidthStr::width("✈️")); // 1

Is this correct?

See neovim/neovim#7151 (comment).

@Manishearth
Copy link
Member

Please see the note in the README

@truchi
Copy link
Author

truchi commented Jul 25, 2021

😳

@truchi
Copy link
Author

truchi commented Jul 27, 2021

That being said, humans being like me hate reading unicode specs.
I suggest you also mention the variation selector alongside ZWJ in the readme.

Anyway, thanks for the good work.

@Manishearth
Copy link
Member

There are many many such characters, we list a couple examples when we talk about the column width already.

@Jules-Bertholet
Copy link
Contributor

#41 added support for U+FE0F. (Emoji ZWJ sequences and skintone modifiers remain unsupported, however.)

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

3 participants