3 ms·
> Currently they are used for these three flags only: England, Scotland and Wales: Not quite true, you can get US state flags with this as well.
by mannerheim 6y ago
> Currently they are used for these three flags only: England, Scotland and Wales:
Not quite true, you can get US state flags with this as well.
- petepete 6y agoI've never seen them use, have they actually been implemented by any of the creators?
- mannerheim 6y agoIf I type the following into ghci, I get the state flag of Texas: putStrLn "\x1f3f4\xe0075\xe0073\xe0074\xe0078\xe007f" The first character is a flag, the last character is a terminator, and in between are the tag characters corresponding to the ASCII for ustx. Just take those characters and subtract 0xe0000 from them, 0x75, 0x73, 0x74, 0x78. https://en.wikipedia.org/wiki/Tags_(Unicode_block) https://en.wikipedia.org/wiki/Tags_(Unicode_block) Edit: Just for fun: import Data.StateCodes import Data.Char putStrLn $ map (map toLower . show . snd) allStates >>= \stateCode -> '\x1f3f4':map (toEnum . (0xe0000+) . fromEnum) ("us" ++ stateCode) ++ "\xe007f"
- azornathogron 6y agoOh my god they've put terminal escape codes into Unicode.
- petepete 6y agoYeah I understand how it works but none of the major vendors have actually implemented the emoji. https://emojipedia.org/flag-for-texas-ustx/ https://emojipedia.org/flag-for-texas-ustx/
- mannerheim 6y agoTouché.
- Sniffnoy 6y agoThis may be supported in some implementations, but currently only England, Scotland, and Wales are officially in the Unicode data files and recommended for general interchange. You can see that they're the only examples of RGI_Emoji_Tag_Sequence listed here: https://www.unicode.org/Public/emoji/13.1/emoji-sequences.txt https://www.unicode.org/Public/emoji/13.1/emoji-sequences.tx...
- TheRealSteel 6y agoDoes this have anything to do with why Google Keyboard/Gboard doesn't have the Scottish flag? It's by far my most used emoji and my keyboard not having it drives me nuts.
- scatters 6y agoWhy not switch to a keyboard that does have it?