countries: ignore capitalised "The" in geonames data
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 26 Oct 2023 22:15:55 +0000 (00:15 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 26 Oct 2023 23:30:04 +0000 (01:30 +0200)
Name for nl recently changed to "The Netherlands".
Why they changed it I can't say...

tools/mkcountries-geonames

index 56f85c41f0d921bfe1a5b88ae46cff534b35cf6c..09158634dd12f7381653c62d0e6779a82ea4e2d7 100755 (executable)
@@ -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;