rapideditor / country-coder

📍➡️ 🇩🇰 Convert longitude-latitude pairs to ISO 3166-1 codes quickly and locally
https://ideditor.codes
ISC License
220 stars 17 forks source link

Support Sark/CQ in CLDR 43, Unicode 16 #137

Open mapmeld opened 3 days ago

mapmeld commented 3 days ago

Hi, In 2020, Sark was added as reserved code on the ISO 3166-1 alpha-2 list, comparable to Clipperton Island This PR adds support for ISO codes CQ and CRQ, and updates tests which assumed Sark did not have any ISO codes.

On standards: after submitting comments to Unicode, Sark was added to CLDR's regions last year, which was incorporated into Unicode 15.1. This year, CQ = Flag of Sark is on track to be an emoji - the Unicode 16.0 Beta closed a couple of days ago. I've seen font support only in SerenityOS, but at a minimum it's reserved for this purpose. Article: https://lifehacker.com/tech/these-new-emojis-may-be-included-in-ios-18-android-15

On ccTLDs: there has been some delay on .CQ becoming accepted, so I added ccTLD:null and another line of code here to prevent returning .CQ.