twitter / twemoji

Emoji for everyone. https://twemoji.twitter.com/
MIT License
16.78k stars 1.85k forks source link

Missing country flags #265

Open Vampire opened 6 years ago

Vampire commented 6 years ago

The following reserved ISO-3166-1 country codes do not have the according flag Emoji. As other reserved country codes have their respective flag included, I'd like to ask for these also being added.

AN (Netherlands Antilles) ๐Ÿ‡ฆ๐Ÿ‡ณ BU (Burma) ๐Ÿ‡ง๐Ÿ‡บ CS (Serbia and Montenegro) ๐Ÿ‡จ๐Ÿ‡ธ EZ (Eurozone) FX (France, Metropolitan) ๐Ÿ‡ซ๐Ÿ‡ฝ NT (Saudi Arabianโ€“Iraqi neutral zone) [maybe half Saudi Arabia, half Iraq] ๐Ÿ‡ณ๐Ÿ‡น SF (Finland) ๐Ÿ‡ธ๐Ÿ‡ซ SU (USSR) ๐Ÿ‡ธ๐Ÿ‡บ TP (East Timor) ๐Ÿ‡น๐Ÿ‡ต UK (United Kingdom) ๐Ÿ‡บ๐Ÿ‡ฐ YU (Yugoslavia) ๐Ÿ‡พ๐Ÿ‡บ ZR (Zaire) ๐Ÿ‡ฟ๐Ÿ‡ท

Crissov commented 6 years ago

If you went by deprecated region codes in CLDR, i.e. the resource UTS#51 actually references (through LDML), you would have to add DD, QU and YD, but remove UK from that list. You could also add the 2-letter macroregion codes EZ and QO as well as unknown status code ZZ.

Most of these do not make much sense to support, though, because they are aliases for current codes. Emojitwo supports SU, for what itโ€™s worth. UTS#51 does not recommend any of these for general interchange.

Googleโ€™s Noto Color Emoji font has a white flag with an question mark at some PUA code point. ZZ makes more sense for that. They also display it for all unsupported RIS pairs which results in bad fallback behavior: two letters would usually be better.

Vampire commented 6 years ago

You are maybe right that most of these are just aliases for other entries, yet in my opinion it would make sense to support them. If you e. g. have a software like Discord, that just searches for the matching file, it cannot show the correct flag without a manual mapping that every user of twemoji would have to implement himself. I think it would make more sense if twemoji just also has these flags present like other reserved cases then the user of the lib does not need to do anything special to use them.