twitter / twemoji

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

[Enhancement] Catalan flag 🏴󠁥󠁳󠁣󠁴󠁿 #574

Open Alzavio opened 1 year ago

Alzavio commented 1 year ago

Is your feature request related to a problem? Please describe.

While not encouraged, it's become common to have flags represent languages. Catalan being one of the most widespreadly spoken minority language in Europe (9M L1+L2, similar to Czech), meaning it's supported in a lot of applications. Though, it doesn't have an emoji flag to represent it, which presents some annoying workarounds each time it needs to be added.

Describe the solution you'd like

I'm requesting the Catalan flag to be added, similar to how Wales, and Scotland were. There was an old thread about this before Wales was added with someones attempt, but I don't know how to reopen it.

https://github.com/twitter/twemoji/issues/282

Describe alternatives you've considered Creating and using a modified svg of the Catalan flag, however doing that often just for Catalan is annoying. OpenMoji does support it, but Twemoji is more widely used and recognizable.

catgirldoll commented 1 year ago

Per the Twemoji readme: "We do not support custom emoji." This emoji should instead be proposed here. For a full list of all emoji (including flags) found in the current version of Unicode, see the Unicode website.

Alzavio commented 1 year ago

@catgirl-doll I may just be misunderstanding but the flag of England (🏴󠁧󠁢󠁥󠁮󠁧󠁿) is U+1F3F4 U+E0067 U+E0062 U+E0065 U+E006E U+E0067 U+E007F

Isn't the Catalan emoji (🏴󠁥󠁳󠁣󠁴󠁿) just the same sort of thing, sub-divisions in the unicode standard, with the following? U+1F3F4 U+E0065 U+E0073 U+E0063 U+E0074 U+E007F

The only difference being less emoji libraries support it

kkiris commented 1 year ago

The flags for England, Scotland, & Wales are the only subnational flags that are currently recommended for general interchange (RGI) by Unicode. However, flags for other subdivisions are considered valid by Unicode. These use tag sequences (just like the flags for England, Scotland, & Wales do). See Unicode Technical Standard #51: Annex C for more information. This annex uses the flags for California, Ontario, Canton Zürich, & Normandy as examples, but the same would apply to the flag for Catalonia, as tag sequences are valid for any subdivision, provided it has an ISO 3166-2 code.

@Alzavio is correct that U+1F3F4 U+E0065 U+E0073 U+E0063 U+E0074 U+E007F is the codepoint sequence for the flag for Catalonia (🏴󠁥󠁳󠁣󠁴󠁿), as that tag sequence corresponds to Catalonia's 3166-2 code.

tl;dr: This wouldn't be a custom emoji. This is a valid use of the supported tag sequence mechanism for subnational flag emojis; though, this emoji isn't currently supported by most emoji libraries.