Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[suggestion] Flags #22

Closed
tuxfre opened this issue Aug 19, 2016 · 7 comments
Closed

[suggestion] Flags #22

tuxfre opened this issue Aug 19, 2016 · 7 comments

Comments

@tuxfre
Copy link

tuxfre commented Aug 19, 2016

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

replace with
fr 🇫🇷
de 🇩🇪
pl 🇵🇱  
cn 🇨🇳
in 🇮🇳
etc ...
@warpling
Copy link
Owner

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
Copy link
Author

tuxfre commented Aug 21, 2016

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

@camlloyd
Copy link
Collaborator

camlloyd commented Apr 5, 2019

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/:

  • AC - Ascension island (shares flag with St. Helena and Tristan Da Cunha)
  • CP - Clipperton Island (shares flag with France)
  • EA - Ceuta & Melilla (shares flag with Spain)
  • EU - European Union
  • TA - Tristan Da Cunha (shares flag with Ascension Island and St. Helena)
  • UN - United Nations

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

@camlloyd
Copy link
Collaborator

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

Added in commit f330b04.

@nick-f
Copy link
Contributor

nick-f commented May 15, 2019

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

@warpling
Copy link
Owner

@nick-f Yes! Thanks again @camlloyd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants