Blame internal/data.country.pl

Packit f3e6b9
#!/usr/bin/perl -w
Packit f3e6b9
# Copyright (c) 2010-2018 Sullivan Beck.  All rights reserved.
Packit f3e6b9
# This program is free software; you can redistribute it and/or modify it
Packit f3e6b9
# under the same terms as Perl itself.
Packit f3e6b9
Packit f3e6b9
# This is used to match country names from one source with those from
Packit f3e6b9
# an existing source.  It can also be used to create additional aliases
Packit f3e6b9
# that do not occur in any of the standards.
Packit f3e6b9
#
Packit f3e6b9
$Data{'country'}{'link'} =
Packit f3e6b9
  [
Packit f3e6b9
   [ "Bolivia (Plurinational State of)",
Packit f3e6b9
        "Bolivia, Plurinational State of",
Packit f3e6b9
        "Plurinational State of Bolivia",
Packit f3e6b9
        "Bolivia" ],
Packit f3e6b9
   [ "Brunei Darussalam",
Packit f3e6b9
        "Brunei" ],
Packit f3e6b9
   [ "Cocos (Keeling) Islands (The)",
Packit f3e6b9
        "Cocos Islands",
Packit f3e6b9
        "The Cocos Islands",
Packit f3e6b9
        "Keeling Islands",
Packit f3e6b9
        "The Keeling Islands" ],
Packit f3e6b9
   [ "Congo",
Packit f3e6b9
        "The Republic of the Congo",
Packit f3e6b9
        "Republic of the Congo",
Packit f3e6b9
        "Congo, The Republic of the",
Packit f3e6b9
        "Congo, Republic of the",
Packit f3e6b9
        "Congo-Brazzaville",
Packit f3e6b9
        "Congo (Brazzaville)" ],
Packit f3e6b9
   [ "Congo (The Democratic Republic of the)",
Packit f3e6b9
        "Congo, The Democratic Republic of the",
Packit f3e6b9
        "Congo, Democratic Republic of the",
Packit f3e6b9
        "The Democratic Republic of the Congo",
Packit f3e6b9
        "Democratic Republic of the Congo",
Packit f3e6b9
        "Congo-Kinshasa",
Packit f3e6b9
        "Congo (Kinshasa)" ],
Packit f3e6b9
   [ "Czech Republic",
Packit f3e6b9
     "The Czech Republic",
Packit f3e6b9
     "Czech Republic, The",
Packit f3e6b9
     "Czech Republic (The)",
Packit f3e6b9
     "Czechia" ],
Packit f3e6b9
   [ "Falkland Islands (The) [Malvinas]",
Packit f3e6b9
        "Falkland Islands (Malvinas)",
Packit f3e6b9
        "Falkland Islands (Islas Malvinas)" ],
Packit f3e6b9
   [ "Faroe Islands (The)",
Packit f3e6b9
        "Faeroe Islands",
Packit f3e6b9
        "The Faeroe Islands" ],
Packit f3e6b9
   [ "French Southern Territories",
Packit f3e6b9
        "French Southern and Antarctic Lands" ],
Packit f3e6b9
   [ "Great Britain",
Packit f3e6b9
        "United Kingdom (The)",
Packit f3e6b9
        "The United Kingdom",
Packit f3e6b9
        "United Kingdom",
Packit f3e6b9
        "United Kingdom, The",
Packit f3e6b9
        "United Kingdom of Great Britain and Northern Ireland",
Packit f3e6b9
        "UK" ],
Packit f3e6b9
   [ "Holy See (The) [Vatican City State]",
Packit f3e6b9
        "Holy See (Vatican City State)",
Packit f3e6b9
        "Holy See (Vatican City)",
Packit f3e6b9
        "The Holy See",
Packit f3e6b9
        "Holy See",
Packit f3e6b9
        "Holy See (The)",
Packit f3e6b9
        "Holy See, The",
Packit f3e6b9
        "Vatican City" ],
Packit f3e6b9
   [ "Hong Kong",
Packit f3e6b9
        "China, Hong Kong Special Administrative Region",
Packit f3e6b9
        "Hong Kong S.A.R.",
Packit f3e6b9
        "Hong Kong Special Administrative Region of China" ],
Packit f3e6b9
   [ "Iran (Islamic Republic of)",
Packit f3e6b9
        "Iran (The Islamic Republic of)",
Packit f3e6b9
        "Iran, Islamic Republic of",
Packit f3e6b9
        "Iran, The Islamic Republic of",
Packit f3e6b9
        "Islamic Republic of Iran",
Packit f3e6b9
        "The Islamic Republic of Iran",
Packit f3e6b9
        "Iran" ],
Packit f3e6b9
   [ "Kazakhstan",
Packit f3e6b9
        "Kazakstan" ],
Packit f3e6b9
   [ "Korea (The Democratic People's Republic of)",
Packit f3e6b9
        "North Korea" ],
Packit f3e6b9
   [ "Korea (The Republic of)",
Packit f3e6b9
        "South Korea" ],
Packit f3e6b9
   [ "Macao",
Packit f3e6b9
        "China, Macao Special Administrative Region",
Packit f3e6b9
        "Macao Special Administrative Region of China",
Packit f3e6b9
        "Macau S.A.R",
Packit f3e6b9
        "Macau S.A.R.",
Packit f3e6b9
        "Macau" ],
Packit f3e6b9
   [ "Macedonia, The former Yugoslav Republic of",
Packit f3e6b9
        "Macedonia" ],
Packit f3e6b9
   [ "Micronesia (Federated States of)",
Packit f3e6b9
        "Federated States of Micronesia",
Packit f3e6b9
        "Micronesia (The Federated States of)",
Packit f3e6b9
        "Micronesia, Federated States of",
Packit f3e6b9
        "Micronesia, The Federated States of",
Packit f3e6b9
        "The Federated States of Micronesia" ],
Packit f3e6b9
   [ "Myanmar",
Packit f3e6b9
        "The Republic of the Union of Myanmar",
Packit f3e6b9
        "Republic of the Union of Myanmar",
Packit f3e6b9
        "Burma" ],
Packit f3e6b9
   [ "Pitcairn",
Packit f3e6b9
        "Pitcairn Island",
Packit f3e6b9
        "Pitcairn Islands" ],
Packit f3e6b9
   [ "Saint Barthelemy",
Packit f3e6b9
        "Saint-Barthelemy" ],
Packit f3e6b9
   [ "Saint Helena, Ascension and Tristan da Cunha",
Packit f3e6b9
        "Saint Helena" ],
Packit f3e6b9
   [ "Saint Martin (French part)",
Packit f3e6b9
        "Saint Martin",
Packit f3e6b9
        "Saint-Martin (French part)",
Packit f3e6b9
        "Saint-Martin" ],
Packit f3e6b9
   [ "Solomon Islands",
Packit f3e6b9
        "Solomon Islands (The)",
Packit f3e6b9
        "Solomon Islands, The",
Packit f3e6b9
        "The Solomon Islands" ],
Packit f3e6b9
   [ "South Georgia and the South Sandwich Islands",
Packit f3e6b9
        "South Georgia and the Islands" ],
Packit f3e6b9
   [ "Svalbard and Jan Mayen",
Packit f3e6b9
        "Svalbard and Jan Mayen Islands" ],
Packit f3e6b9
   [ "Syrian Arab Republic",
Packit f3e6b9
        "Syrian Arab Republic (The)",
Packit f3e6b9
        "Syrian Arab Republic, The",
Packit f3e6b9
        "The Syrian Arab Republic",
Packit f3e6b9
        "Syria" ],
Packit f3e6b9
   [ "Taiwan (Province of China)",
Packit f3e6b9
        "Taiwan",
Packit f3e6b9
        "Taiwan, Province of China" ],
Packit f3e6b9
   [ "Timor-Leste",
Packit f3e6b9
        "East Timor",
Packit f3e6b9
        "The Democratic Republic of Timor-Leste",
Packit f3e6b9
        "Democratic Republic of Timor-Leste",
Packit f3e6b9
        "Timor-Leste, The Democratic Republic of",
Packit f3e6b9
        "Timor-Leste, Democratic Republic of",
Packit f3e6b9
        "Timor-Leste (The Democratic Republic of)",
Packit f3e6b9
        "Timor-Leste (Democratic Republic of)" ],
Packit f3e6b9
   [ "The United States of America",
Packit f3e6b9
        "The United States",
Packit f3e6b9
        "United States",
Packit f3e6b9
        "United States, The",
Packit f3e6b9
        "United States (The)",
Packit f3e6b9
        "US",
Packit f3e6b9
        "USA",
Packit f3e6b9
        "United States of America" ],
Packit f3e6b9
   [ "Venezuela (Bolivarian Republic of)",
Packit f3e6b9
        "Venezuela, Bolivarian Republic of",
Packit f3e6b9
        "Venezuela, Bolivarian Republic",
Packit f3e6b9
        "Venezuela" ],
Packit f3e6b9
   [ "Viet Nam",
Packit f3e6b9
        "Vietnam" ],
Packit f3e6b9
   [ "Virgin Islands (British)",
Packit f3e6b9
        "British Virgin Islands",
Packit f3e6b9
        "Virgin Islands, British",
Packit f3e6b9
        "Virgin Islands (UK)" ],
Packit f3e6b9
   [ "Virgin Islands (U.S.)",
Packit f3e6b9
        "United States Virgin Islands",
Packit f3e6b9
        "Virgin Islands (US)",
Packit f3e6b9
        "Virgin Islands, U.S.",
Packit f3e6b9
        "Virgin Islands" ],
Packit f3e6b9
   [ "Wallis and Futuna",
Packit f3e6b9
        "Wallis and Futuna Islands",
Packit f3e6b9
        "The Territory of the Wallis and Futuna Islands",
Packit f3e6b9
        "Territory of the Wallis and Futuna Islands" ],
Packit f3e6b9
   [ "Yemen",
Packit f3e6b9
        "The Yemeni Republic",
Packit f3e6b9
        "Yemeni Republic",
Packit f3e6b9
        "Yemeni Republic, The",
Packit f3e6b9
        "Yemeni Republic (The)" ],
Packit f3e6b9
   [ "Zambia",
Packit f3e6b9
        "The Republic of Zambia",
Packit f3e6b9
        "Republic of Zambia",
Packit f3e6b9
        "Republic of Zambia, The",
Packit f3e6b9
        "Republic of Zambia (The)" ],
Packit f3e6b9
   [ "Zimbabwe",
Packit f3e6b9
        "The Republic of Zimbabwe",
Packit f3e6b9
        "Republic of Zimbabwe",
Packit f3e6b9
        "Republic of Zimbabwe, The",
Packit f3e6b9
        "Republic of Zimbabwe (The)" ],
Packit f3e6b9
];
Packit f3e6b9
Packit f3e6b9
################################################################################
Packit f3e6b9
# ISO 3166-1 countries
Packit f3e6b9
Packit f3e6b9
$Data{'country'}{'iso'}{'orig'}{'name'} = {
Packit f3e6b9
   "Åland Islands"                           => "Aland Islands",
Packit f3e6b9
   "Côte d'Ivoire"                           => "Cote d'Ivoire",
Packit f3e6b9
   "Curaçao"                                 => "Curacao",
Packit f3e6b9
   "Réunion"                                 => "Reunion",
Packit f3e6b9
   "Saint Barthélemy"                        => "Saint Barthelemy",
Packit f3e6b9
   "Western Sahara*"                         => "Western Sahara",
Packit f3e6b9
};
Packit f3e6b9
Packit f3e6b9
$Data{'country'}{'iso'}{'ignore'} = {
Packit f3e6b9
   'name'    => {},
Packit f3e6b9
   'alpha-2' => {},
Packit f3e6b9
   'alpha-3' => {},
Packit f3e6b9
   'numeric' => {},
Packit f3e6b9
};
Packit f3e6b9
Packit f3e6b9
# Unusued
Packit f3e6b9
$Data{'country'}{'iso'}{'new'} = {};
Packit f3e6b9
Packit f3e6b9
################################################################################
Packit f3e6b9
# IANA (source of top level domains)
Packit f3e6b9
Packit f3e6b9
$Data{'country'}{'iana'}{'orig'}{'name'} = {
Packit f3e6b9
   "Åland Islands"                           => "Aland Islands",
Packit f3e6b9
   "Cocos (keeling) Islands"                 => "Cocos (Keeling) Islands",
Packit f3e6b9
   "Congo, The Democratic Republic of The"   => "Congo, The Democratic Republic of the",
Packit f3e6b9
   "CÔte D'ivoire"                           => "Cote D'Ivoire",
Packit f3e6b9
   "CuraÇao"                                 => "Curacao",
Packit f3e6b9
   "Falkland Islands (malvinas)"             => "Falkland Islands (Malvinas)",
Packit f3e6b9
   "Holy See (vatican City State)"           => "Holy See (Vatican City State)",
Packit f3e6b9
   "RÉunion"                                 => "Reunion",
Packit f3e6b9
   "Saint BarthÉlemy"                        => "Saint Barthelemy",
Packit f3e6b9
   "Ussr"                                    => "USSR",
Packit f3e6b9
   "Virgin Islands, U.s."                    => "Virgin Islands, U.S.",
Packit f3e6b9
};
Packit f3e6b9
Packit f3e6b9
$Data{'country'}{'iana'}{'ignore'} = {
Packit f3e6b9
   'name'   => {},
Packit f3e6b9
   'dom'    => {},
Packit f3e6b9
};
Packit f3e6b9
Packit f3e6b9
$Data{'country'}{'iana'}{'new'} = {
Packit f3e6b9
   'Ascension Island'                        => 1,
Packit f3e6b9
   'Netherlands Antilles'                    => 1,
Packit f3e6b9
   'Western Sahara'                          => 1,
Packit f3e6b9
   'European Union'                          => 1,
Packit f3e6b9
   'USSR'                                    => 1,
Packit f3e6b9
   'Wallis and Futuna'                       => 1,
Packit f3e6b9
   'Yemen'                                   => 1,
Packit f3e6b9
   'Zambia'                                  => 1,
Packit f3e6b9
   'Zimbabwe'                                => 1,
Packit f3e6b9
};
Packit f3e6b9
Packit f3e6b9
################################################################################
Packit f3e6b9
# UN countries
Packit f3e6b9
Packit f3e6b9
$Data{'country'}{'un'}{'orig'}{'name'} = {
Packit f3e6b9
   "Åland Islands"                      => "Aland Islands",
Packit f3e6b9
   "Côte d'Ivoire"                  => "Cote d'Ivoire",
Packit f3e6b9
   "Curaçao"                            => "Curacao",
Packit f3e6b9
   "Democratic People's Republic of Korea" =>
Packit f3e6b9
     "Democratic People's Republic of Korea",
Packit f3e6b9
   "Lao People's Democratic Republic"    => "Lao People's Democratic Republic",
Packit f3e6b9
   "Réunion"                            => "Reunion",
Packit f3e6b9
   "Saint Barthélemy"                   => "Saint Barthelemy",
Packit f3e6b9
};
Packit f3e6b9
Packit f3e6b9
$Data{'country'}{'un'}{'new'} = {
Packit f3e6b9
   "Channel Islands"                         => 1,
Packit f3e6b9
   "Sark"                                    => 1,
Packit f3e6b9
};
Packit f3e6b9
Packit f3e6b9
################################################################################
Packit f3e6b9
# GENC countries
Packit f3e6b9
Packit f3e6b9
$Data{'country'}{'genc'}{'orig'}{'name'} = {
Packit f3e6b9
   "CÔTE D’IVOIRE"                           => "Cote d'Ivoire",
Packit f3e6b9
   "CURAÇAO",                                => "Curacao",
Packit f3e6b9
   "AKROTIRI"                                => "Akrotiri",
Packit f3e6b9
   "ASHMORE AND CARTIER ISLANDS"             => "Ashmore and Cartier Islands",
Packit f3e6b9
   "BAKER ISLAND"                            => "Baker Island",
Packit f3e6b9
   "BASSAS DA INDIA"                         => "Bassas Da India",
Packit f3e6b9
   "BONAIRE, SINT EUSTATIUS, AND SABA"       => "Bonaire, Sint Eustatius, and Saba",
Packit f3e6b9
   "CLIPPERTON ISLAND"                       => "Clipperton Island",
Packit f3e6b9
   "CORAL SEA ISLANDS"                       => "Coral Sea Islands",
Packit f3e6b9
   "DHEKELIA"                                => "Dhekelia",
Packit f3e6b9
   "DIEGO GARCIA"                            => "Diego Garcia",
Packit f3e6b9
   "ENTITY 1"                                => "Entity 1",
Packit f3e6b9
   "ENTITY 2"                                => "Entity 2",
Packit f3e6b9
   "ENTITY 3"                                => "Entity 3",
Packit f3e6b9
   "ENTITY 4"                                => "Entity 4",
Packit f3e6b9
   "ENTITY 5"                                => "Entity 5",
Packit f3e6b9
   "ENTITY 6"                                => "Entity 6",
Packit f3e6b9
   "EUROPA ISLAND"                           => "Europa Island",
Packit f3e6b9
   "GAZA STRIP"                              => "Gaza Strip",
Packit f3e6b9
   "GLORIOSO ISLANDS"                        => "Glorioso Islands",
Packit f3e6b9
   "GUANTANAMO BAY NAVAL BASE"               => "Guantanamo Bay Naval Base",
Packit f3e6b9
   "HOWLAND ISLAND"                          => "Howland Island",
Packit f3e6b9
   "JAN MAYEN"                               => "Jan Mayen",
Packit f3e6b9
   "JARVIS ISLAND"                           => "Jarvis Island",
Packit f3e6b9
   "JOHNSTON ATOLL"                          => "Johnston Atoll",
Packit f3e6b9
   "JUAN DE NOVA ISLAND"                     => "Juan de Nova Island",
Packit f3e6b9
   "KINGMAN REEF"                            => "Kingman Reef",
Packit f3e6b9
   "KOREA, NORTH"                            => "Korea, North",
Packit f3e6b9
   "KOREA, SOUTH"                            => "Korea, South",
Packit f3e6b9
   "KOSOVO"                                  => "Kosovo",
Packit f3e6b9
   "LAOS"                                    => "Laos",
Packit f3e6b9
   "MIDWAY ISLANDS"                          => "Midway Islands",
Packit f3e6b9
   "MOLDOVA"                                 => "Moldova",
Packit f3e6b9
   "NAVASSA ISLAND"                          => "Navassa Island",
Packit f3e6b9
   "PALMYRA ATOLL"                           => "Palmyra Atoll",
Packit f3e6b9
   "PARACEL ISLANDS"                         => "Paracel Islands",
Packit f3e6b9
   "RUSSIA"                                  => "Russia",
Packit f3e6b9
   "SAINT HELENA, ASCENSION, AND TRISTAN DA CUNHA" => "Saint Helena, Ascension, and Tristan Da Cunha",
Packit f3e6b9
   "SINT MAARTEN"                            => "Sint Maarten",
Packit f3e6b9
   "SOUTH GEORGIA AND SOUTH SANDWICH ISLANDS" => "South Georgia and South Sandwich Islands",
Packit f3e6b9
   "SPRATLY ISLANDS"                         => "Spratly Islands",
Packit f3e6b9
   "SVALBARD"                                => "Svalbard",
Packit f3e6b9
   "TANZANIA"                                => "Tanzania",
Packit f3e6b9
   "TROMELIN ISLAND"                         => "Tromelin Island",
Packit f3e6b9
   "UNKNOWN"                                 => "Unknown",
Packit f3e6b9
   "WAKE ISLAND"                             => "Wake Island",
Packit f3e6b9
   "WEST BANK"                               => "West Bank",
Packit f3e6b9
};
Packit f3e6b9
Packit f3e6b9
$Data{'country'}{'genc'}{'ignore'} = {
Packit f3e6b9
   'name'           => { "ENTITY 1" => 1,
Packit f3e6b9
                         "ENTITY 2" => 1,
Packit f3e6b9
                         "ENTITY 3" => 1,
Packit f3e6b9
                         "ENTITY 4" => 1,
Packit f3e6b9
                         "ENTITY 5" => 1,
Packit f3e6b9
                         "ENTITY 6" => 1,
Packit f3e6b9
                       },
Packit f3e6b9
   'genc-alpha-2'   => {},
Packit f3e6b9
   'genc-alpha-3'   => {},
Packit f3e6b9
   'genc-numeric'   => {},
Packit f3e6b9
};
Packit f3e6b9
Packit f3e6b9
$Data{'country'}{'genc'}{'new'} = {
Packit f3e6b9
};
Packit f3e6b9
Packit f3e6b9
1;
Packit f3e6b9
Packit f3e6b9
# Local Variables:
Packit f3e6b9
# mode: cperl
Packit f3e6b9
# indent-tabs-mode: nil
Packit f3e6b9
# cperl-indent-level: 3
Packit f3e6b9
# cperl-continued-statement-offset: 2
Packit f3e6b9
# cperl-continued-brace-offset: 0
Packit f3e6b9
# cperl-brace-offset: 0
Packit f3e6b9
# cperl-brace-imaginary-offset: 0
Packit f3e6b9
# cperl-label-offset: 0
Packit f3e6b9
# End: