From 0487395217c91ea3eea605e5694f1430d657a9d3 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 1 Nov 2023 13:04:26 +0100 Subject: [PATCH] Regenerate * rename `Netherlands` -> `Netherlands, Kingdom of the` * move subdivisions in belgium directly into it, not in `BE-WAL`, `BE-VLG` * rename a bunch of subdivisions in TD --- 1.js | 2 +- 2.js | 70 +++++++++++++++++++++++++++---------------------------- build.js | 2 ++ readme.md | 2 +- 4 files changed, 39 insertions(+), 37 deletions(-) diff --git a/1.js b/1.js index 2265585..dba8009 100644 --- a/1.js +++ b/1.js @@ -1175,7 +1175,7 @@ export const iso31661 = [ numeric: '558' }, { - name: 'Netherlands', + name: 'Netherlands, Kingdom of the', state: 'assigned', alpha2: 'NL', alpha3: 'NLD', diff --git a/2.js b/2.js index 1de6ff3..0c05a5c 100644 --- a/2.js +++ b/2.js @@ -1533,12 +1533,12 @@ export const iso31662 = [ { code: 'BE-VAN', name: 'Antwerpen', - parent: 'BE-VLG' + parent: 'BE' }, { code: 'BE-VBR', name: 'Vlaams-Brabant', - parent: 'BE-VLG' + parent: 'BE' }, { code: 'BE-VLG', @@ -1548,17 +1548,17 @@ export const iso31662 = [ { code: 'BE-VLI', name: 'Limburg', - parent: 'BE-VLG' + parent: 'BE' }, { code: 'BE-VOV', name: 'Oost-Vlaanderen', - parent: 'BE-VLG' + parent: 'BE' }, { code: 'BE-VWV', name: 'West-Vlaanderen', - parent: 'BE-VLG' + parent: 'BE' }, { code: 'BE-WAL', @@ -1568,27 +1568,27 @@ export const iso31662 = [ { code: 'BE-WBR', name: 'Brabant wallon', - parent: 'BE-WAL' + parent: 'BE' }, { code: 'BE-WHT', name: 'Hainaut', - parent: 'BE-WAL' + parent: 'BE' }, { code: 'BE-WLG', name: 'Liège', - parent: 'BE-WAL' + parent: 'BE' }, { code: 'BE-WLX', name: 'Luxembourg', - parent: 'BE-WAL' + parent: 'BE' }, { code: 'BE-WNA', name: 'Namur', - parent: 'BE-WAL' + parent: 'BE' }, { code: 'BF-01', @@ -17202,7 +17202,7 @@ export const iso31662 = [ }, { code: 'NR-05', - name: 'Baitsi (local variant is Baiti)', + name: 'Baitsi', parent: 'NR' }, { @@ -18167,7 +18167,7 @@ export const iso31662 = [ }, { code: 'PH-WSA', - name: 'Samar (local variant: Western Samar)', + name: 'Samar', parent: 'PH-08' }, { @@ -21622,117 +21622,117 @@ export const iso31662 = [ }, { code: 'TD-BA', - name: 'Al Baţḩā’', + name: 'Batha', parent: 'TD' }, { code: 'TD-BG', - name: 'Baḩr al Ghazāl', + name: 'Bahr el Ghazal', parent: 'TD' }, { code: 'TD-BO', - name: 'Būrkū', + name: 'Borkou', parent: 'TD' }, { code: 'TD-CB', - name: 'Shārī Bāqirmī', + name: 'Chari-Baguirmi', parent: 'TD' }, { code: 'TD-EE', - name: 'Inīdī ash Sharqī', + name: 'Ennedi-Est', parent: 'TD' }, { code: 'TD-EO', - name: 'Inīdī al Gharbī', + name: 'Ennedi-Ouest', parent: 'TD' }, { code: 'TD-GR', - name: 'Qīrā', + name: 'Guéra', parent: 'TD' }, { code: 'TD-HL', - name: 'Ḩajjar Lamīs', + name: 'Hadjer Lamis', parent: 'TD' }, { code: 'TD-KA', - name: 'Kānim', + name: 'Kanem', parent: 'TD' }, { code: 'TD-LC', - name: 'Al Buḩayrah', + name: 'Lac', parent: 'TD' }, { code: 'TD-LO', - name: 'Lūghūn al Gharbī', + name: 'Logone-Occidental', parent: 'TD' }, { code: 'TD-LR', - name: 'Lūghūn ash Sharqī', + name: 'Logone-Oriental', parent: 'TD' }, { code: 'TD-MA', - name: 'Māndūl', + name: 'Mandoul', parent: 'TD' }, { code: 'TD-MC', - name: 'Shārī al Awsaţ', + name: 'Moyen-Chari', parent: 'TD' }, { code: 'TD-ME', - name: 'Māyū Kībbī ash Sharqī', + name: 'Mayo-Kebbi-Est', parent: 'TD' }, { code: 'TD-MO', - name: 'Māyū Kībbī al Gharbī', + name: 'Mayo-Kebbi-Ouest', parent: 'TD' }, { code: 'TD-ND', - name: 'Madīnat Injamīnā', + name: 'Ville de Ndjamena', parent: 'TD' }, { code: 'TD-OD', - name: 'Waddāy', + name: 'Ouaddaï', parent: 'TD' }, { code: 'TD-SA', - name: 'Salāmāt', + name: 'Salamat', parent: 'TD' }, { code: 'TD-SI', - name: 'Sīlā', + name: 'Sila', parent: 'TD' }, { code: 'TD-TA', - name: 'Tānjīlī', + name: 'Tandjilé', parent: 'TD' }, { code: 'TD-TI', - name: 'Tibastī', + name: 'Tibesti', parent: 'TD' }, { code: 'TD-WF', - name: 'Wādī Fīrā’', + name: 'Wadi Fira', parent: 'TD' }, { diff --git a/build.js b/build.js index 9af15a4..29b7a24 100644 --- a/build.js +++ b/build.js @@ -794,6 +794,8 @@ function clean(d) { return d .replace(/\[[^\]]+]/g, '') .replace(/\(i\.e\., [^\]]+\)/g, '') + .replace(/†$/g, '') + .replace(/\(local variant[^)]*\)/g, '') .replace(/\s+/g, ($0) => ($0.includes('\n') ? '\n' : ' ')) .trim() } diff --git a/readme.md b/readme.md index fea8b59..4d3887d 100644 --- a/readme.md +++ b/readme.md @@ -514,7 +514,7 @@ UN M49 also encodes regions bigger than countries, such as (sub)contintents. NI NJ NK - NL + NL NM NN NO