Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

U+FE0E is really interesting, it forces monochrome emoji usage on the immediately preceded emoji (like a skin tone modifier or any other modifier). I have previously run into the issue of the play-pause characters (U+25B6, U+23F8) being inconsistently replaced with their color versions when I was trying to use them in a UI. It looks like this is a great guarantee that that won't happen.

Also is it seems hacker news automatically removes emoji, maybe this modifier would allow them to keep them (in b/w form) and still maintain the polished appearance.



It won't, because U+FE0E is just a suggestion, not a mandate. If your system doesn't have an appropriate monochrome replacement it will just fallback on the colored emoji.


That's not the behavior in the sample screenshot here: https://twitter.com/ridiculous_fish/status/10894210337932369... <- Chrome rendered a replacement character rather than fall back to the emoji.


Interesting. My Chrome on Ubuntu seems to have differing behaviour.


Safari renders an emoji for me in the tweet right above that one.


I was shocked just now reading about this "variation selector", what is next, conditionals and variables??? I thought (still think) Unicode is for text, these are more like control characters in some markup language or a transmission protocol. It seems gross. I obviously don't know, but something tells me this has little real world support and degrades poorly?


Variant selection was required for some languages, and was a convenient way to implement "combining" characters. Once the feature existed its use got extended to all sorts of cases, just like the flags are "ligatures".


On my site, I wanted the non-emoji version of on a button, so I had to use U+FE0E to force it to not be red on some browsers.


U+FE0E may also make the previous character less wide. It's very surprising that appending a code point can make wcswidth decrease.

https://twitter.com/ridiculous_fish/status/10894161143611023...


> Also is it seems hacker news automatically removes emoji

And some other characters like UPPER HALF BLOCK, LOWER HALF BLOCK, FULL BLOCK, LEFT HALF BLOCK, & RIGHT HALF BLOCK, and LIGHT SHADE, MEDIUM SHADE, & DARK SHADE




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: