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:
b4ce208
)
countries: fix antarctica continent class
author
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 1 Feb 2015 07:17:27 +0000
(08:17 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 1 Feb 2015 17:34:57 +0000
(18:34 +0100)
Convert GeoNames' AN to our AA to fix styling.
tools/mkcountries-geonames
patch
|
blob
|
history
diff --git
a/tools/mkcountries-geonames
b/tools/mkcountries-geonames
index 592ce752113eed8a84777857d56230303e2b6932..99201b840c76347f865292610272b446a7ff011c 100755
(executable)
--- a/
tools/mkcountries-geonames
+++ b/
tools/mkcountries-geonames
@@
-41,6
+41,7
@@
my %cc; # map of country code to info array
while (<>) {
/^#/ and next; # skip comments
my ($iso, $name, $cont) = (split /\t/)[0, 4, 8];
+ $cont =~ s/\AAN\z/aa/; # different antarctica abbreviation
my $class = "c-\L$cont";
$cc{ lc $iso } = [ $name, $class ];
}