Closed tuxfre closed 5 years ago
This would be great! Any ideas where to pull an official list for these that includes the latest ones? Very open to pull requests :)
I had started compiling a list manually in the system preferences, but let's face it, it's not exactly efficient :(
I found a list at http://emojipedia.org/flags/, but unfortunately it doesn't come directly with the two letter codes directly. It means that to get the two letter code you'd have to go to each individual page (for ex. http://emojipedia.org/flag-for-france/).
Maybe a better starting point would be http://www.unicode.org/emoji/charts/emoji-list.html, the "Name" column having a long description of the code (for example "REGIONAL INDICATOR SYMBOL LETTER A, REGIONAL INDICATOR SYMBOL LETTER C" => "AC" for Ascension Island). It's also the most official one can possibly get 😉
My natural incline would be to throw a dirty shell script at one of these sites, but to be honest, I never handled anything else than ASCII in shell scripts, so I have no idea what would happen 😆
Of course, if I can help, I'd do my best
PR #43 adds flag emoji, based on the ISO-3166-1 alpha-2 two-letter country codes.
The following are not officially assigned and are therefore not in the above list, but instead are from https://emojipedia.org/flags/:
Note: this PR does not include country subdivision flag emoji (e.g. for England, Scotland and Wales).
this PR does not include country subdivision flag emoji (e.g. for England, Scotland and Wales).
Added in commit f330b0406361289ce7c5fc1cd6a0b3e17d8e1fa3.
@warpling Now that #43 is merged, can this be closed?
@nick-f Yes! Thanks again @camlloyd
Could be cool if we also had flag substitutions, like :tld: => flag