jdecked / twemoji

Emoji for everyone.
https://jdecked.github.io/twemoji/v/latest/preview-svg.html
MIT License
1.02k stars 60 forks source link

Adding subdivision flags, USA #99

Closed KeijttaWolf closed 4 months ago

KeijttaWolf commented 4 months ago

Copying this pull request over from the previous project, twitter/twemoji#411. I lost access to my old account "Keijtta" so I'm publishing this with a new account. This pull request does have some changes: - It does not include the outlying area, but can be added if that is requested. - Includes the new flags for Minnesota and Utah that were adopted in 2024. - Added few changes to Idaho, Nebraska, New Hampshire, Pennsylvania, South Dakota to make them closer to their real life flags.

What are subdivision flags?

With Emoji version 5.0 (Unicode 10.0), subdivision flags was added to the standard. Any subdivision specified in ISO 3166-2 are valid for an emoji representation, and can be represented by a flag if there is one. For example, US-TX stands for Texas, and US-CA stands for California.

As of now, the only subdivision flags supported by Twemoji are England (⚑gbeng✦), Scotland (⚑gbsct✦), Wales (⚑gbwls✦) – WhatsApp has also added supported support for Texas (⚑ustx✦)

Read more: Emoji Flags Explained, US State Flag Emojis Now Possible,

Content of pull request

This pull request contains 50 states and the district of Columbia.

Flag Code Name Category
⚑usak✦ Alaska state
⚑usal✦ Alabama state
⚑usar✦ Arkansas state
⚑usaz✦ Arizona state
⚑usca✦ California state
⚑usco✦ Colorado state
⚑usct✦ Connecticut state
⚑usdc✦ District of Columbia district
⚑usde✦ Delaware state
⚑usfl✦ Florida state
⚑usga✦ Georgia state
⚑ushi✦ Hawaii state
⚑usia✦ Iowa state
⚑usid✦ Idaho state
⚑usil✦ Illinois state
⚑usin✦ Indiana state
⚑usks✦ Kansas state
⚑usky✦ Kentucky state
⚑usla✦ Louisiana state
⚑usma✦ Massachusetts state
⚑usmd✦ Maryland state
⚑usme✦ Maine state
⚑usmi✦ Michigan state
⚑usmn✦ Minnesota state
⚑usmo✦ Missouri state
⚑usms✦ Mississippi state
⚑usmt✦ Montana state
⚑usnc✦ North Carolina state
⚑usnd✦ North Dakota state
⚑usne✦ Nebraska state
⚑usnh✦ New Hampshire state
⚑usnj✦ New Jersey state
⚑usnm✦ New Mexico state
⚑usnv✦ Nevada state
⚑usny✦ New York state
⚑usoh✦ Ohio state
⚑usok✦ Oklahoma state
⚑usor✦ Oregon state
⚑uspa✦ Pennsylvania state
⚑usri✦ Rhode Island state
⚑ussc✦ South Carolina state
⚑ussd✦ South Dakota state
⚑ustn✦ Tennessee state
⚑ustx✦ Texas state
⚑usut✦ Utah state
⚑usva✦ Virginia state
⚑usvt✦ Vermont state
⚑uswa✦ Washington state
⚑uswi✦ Wisconsin state
⚑uswv✦ West Virginia state
⚑uswy✦ Wyoming state

Click on an image to view it larger

jdecked commented 4 months ago

Please see this comment on a similar issue for Twemoji's general stance on subdivision flags right now. We'll keep this PR in our back pocket in case, in the future, we're able to expand support for non-RGI emoji (or even just all the subdivision flags).

KeijttaWolf commented 4 months ago

@jdecked I appreciate the reply and the comment does go over many valid reasons.

I do appreciate that you'll keep the PR around in case there's interested in adding these.

I started with USA first to test the waters. I could see these subdivisions being the most sought after by uses on X and Discord, since those platforms use these emojis and those platforms have many users from USA. But then I would move over to other regions such as Canada, Germany, Japan.

I've done rough estimates on how many flags there would be, and it's somewhere above 1500, which is still a lot, but there's a lot of regions without subdivision flags such as China.