X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/8dcd0ed1c130b759c10b9412b0d494871c223e63..e7c68cd940f8ab1a8de85f6685367cfb7eb6378f:/tools/mkcountries-geonames diff --git a/tools/mkcountries-geonames b/tools/mkcountries-geonames index 4e80697..91daae7 100755 --- a/tools/mkcountries-geonames +++ b/tools/mkcountries-geonames @@ -36,14 +36,26 @@ my %cc; # map of country code to info array wl => ["(Saint Lucia)", "c-na Xr", "(Saint Luc.)", 'lc'], wv => ["(Saint Vincent)", "c-na Xr", "(Saint Vin.)", 'vc'], yv => ["(Venezuela)", "c-sa Xr", undef, 've'], + + # WIPO, agreed not to use + ap => ["African Regional Industrial Property Organization", "Xi", "ARIPO"], # c-af + bx => ["Benelux Office for Intellectual Property", "Xi", "BOIP"], # c-eu + ef => ["European Community Patent Convention", "Xi", "CPC"], # c-eu + em => ["European Trademark Office", "Xi", "OHIM"], # c-eu + ep => ["European Patent Organization", "Xi", "EPOrg"], # c-eu + ev => ["Eurasian Patent Organization", "Xi", "EAPO"], # c-as + gc => ["Gulf Patent Office", "Xi", "GCCPO"], # c-as + ib => ["International Bureau of WIPO", "Xi", "IB WIPO"], + oa => ["African Intellectual Property Organization", "Xi", "OAPI"], # c-af + wo => ["World Intellectual Property Organization", "Xi", "WIPO"], ); 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 ]; + my ($iso, $name, $cont, $tld) = (split /\t/)[0, 4, 8, 9]; + my @info = ($name, "c-\L$cont"); + $info[3] = $tld if $tld =~ s/\A\.// and $tld ne lc $iso; + $cc{ lc $iso } = \@info; } $cc{io}->[2] = "Chagos Islands";