3 ms·
I'm curious why it successfully rotates some emoji but not others. E.g. stars and hearts get rotated but sunglasses do not (EDIT: rewrote my example to use wo
by Gormisdomai 5y ago
I'm curious why it successfully rotates some emoji but not others.
E.g. stars and hearts get rotated but sunglasses do not
(EDIT: rewrote my example to use words because HN doesn't render emoji, duh)
- OskarS 5y agoFrom the article: > While rot13 is the self-inverse for a 26-character system, and rot47 for ANSI, the Basic Multilingual Plane of Unicode requires rot32768 (or 8000 in hex) for a reciprical cypher Not all emoji is in the BMP, at least some are in the Supplementary Multilingual Plane. It's weird to me that if you're gonna do this dumb "rot13 but for Unicode", you'd only do it for the BMP, and not ALL of Unicode.
- jsjohnst 5y agoTechnical answer: Star = U+2B50 which is less than U+FFFF Sunglasses = U+1F576 which is greater than U+FFFF The details you might be missing is that some emoji existed in Unicode before color graphic "emoji" was actually a thing. The stars (and hearts) are examples of ones which used to be just a basic shape in the font but now are commonly full color graphical "images".