From: Mischa POSLAWSKY Date: Thu, 26 Oct 2023 22:15:55 +0000 (+0200) Subject: countries: ignore capitalised "The" in geonames data X-Git-Tag: v1.14~2 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/58fadc557513b926e77b3b0226dd5c43dc9efce8 countries: ignore capitalised "The" in geonames data Name for nl recently changed to "The Netherlands". Why they changed it I can't say... --- diff --git a/tools/mkcountries-geonames b/tools/mkcountries-geonames index 56f85c4..0915863 100755 --- a/tools/mkcountries-geonames +++ b/tools/mkcountries-geonames @@ -86,7 +86,7 @@ for (values %cc) { s/(?<=.)\(.*\)\s*//; s/ republic\b//gi; s/ islands?\b//gi; - s/\bthe //g; + s/\bthe //gi; s/ and / & /g and s/(?<=.)[a-z ]+//g; s/ of / /g; s/\bsa?int /st /gi;