countries: fix antarctica continent class
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 1 Feb 2015 07:17:27 +0000 (08:17 +0100)
committerMischa 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

index 592ce752113eed8a84777857d56230303e2b6932..99201b840c76347f865292610272b446a7ff011c 100755 (executable)
@@ -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 ];
 }