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

Unicode emoji with VARIATION SELECTOR-16 sometimes mis-renders #724

Closed
cgull opened this issue Feb 22, 2016 · 3 comments
Closed

Unicode emoji with VARIATION SELECTOR-16 sometimes mis-renders #724

cgull opened this issue Feb 22, 2016 · 3 comments

Comments

@cgull
Copy link
Member

cgull commented Feb 22, 2016

I don't know yet if this is distinct from the more basic Unicode issues Mosh has, but:
This: '☺️' sometimes renders correctly as a double-wide emoji graphic, but sometimes renders incorrectly as a single wide emoji glyph. This of course is not good; the display is corrupted.

Mozilla and/or the Github editor may have mangled that, but the contents are U+263A, U+FE0F.
The first is the standard smiley emoji, the second is VARIATION SELECT-15, which in the context of an emoji means emoji style (as opposed to VARIATION SELECT-15, which is text style).

The person who generated that on IRC says it came from Colloquy on a Mac, with OS X's input text replacement converting ':)' to that.

@cgull
Copy link
Member Author

cgull commented Dec 4, 2017

Oops, typo in my original post. From Wikipedia:

"Emoji variation sequences contain VS16 (U+FE0F) for emoji-style or VS15 (U+FE0E) for text style"

And this looks like a special variety of ugly. If the text/emoji variants are indeed supposed to change the display width too, then Mosh will need code to observe the VARIATION SELECT codepoint going by and change the width of the cell they're associated with-- but only for emoji, or something.

@cgull
Copy link
Member Author

cgull commented Dec 6, 2017

It's even slightly worse than that: emoji-style overrides the base character's width to be East Asian Wide. http://www.unicode.org/reports/tr11/tr11-31.html#Recommendations, last line of that section. @andersk has also found that Unicode 9.0 changed all emojis to be treated as East Asian Wide.

@achernya
Copy link
Collaborator

This is a duplicate of #234

@achernya achernya closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2023
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

2 participants