warpling / Macmoji

Slack/GitHub/Trello emoji for your mac! 😁 💥 💻
MIT License
1.72k stars 71 forks source link

[suggestion] Flags #22

Closed tuxfre closed 5 years ago

tuxfre commented 8 years ago

Could be cool if we also had flag substitutions, like :tld: => flag

replace with
fr 🇫🇷
de 🇩🇪
pl 🇵🇱  
cn 🇨🇳
in 🇮🇳
etc ...
warpling commented 8 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 :)

tuxfre commented 8 years ago

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

Crissov commented 7 years ago
camlloyd commented 5 years ago

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).

camlloyd commented 5 years ago

this PR does not include country subdivision flag emoji (e.g. for England, Scotland and Wales).

Added in commit f330b0406361289ce7c5fc1cd6a0b3e17d8e1fa3.

nick-f commented 5 years ago

@warpling Now that #43 is merged, can this be closed?

warpling commented 5 years ago

@nick-f Yes! Thanks again @camlloyd