git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4ca24e
)
countries: ignore capitalised "The" in geonames data
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 26 Oct 2023 22:15:55 +0000
(
00:15
+0200)
committer
Mischa 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
patch
|
blob
|
history
diff --git
a/tools/mkcountries-geonames
b/tools/mkcountries-geonames
index 56f85c41f0d921bfe1a5b88ae46cff534b35cf6c..09158634dd12f7381653c62d0e6779a82ea4e2d7 100755
(executable)
--- 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 //g
i
;
s/ and / & /g and s/(?<=.)[a-z ]+//g;
s/ of / /g;
s/\bsa?int /st /gi;