diff --git a/maps/icao-mul-Cyrl-Latn-2015.imp b/maps/icao-mul-Cyrl-Latn-2015.imp new file mode 100644 index 0000000..9a235be --- /dev/null +++ b/maps/icao-mul-Cyrl-Latn-2015.imp @@ -0,0 +1,389 @@ +metadata { + authority_id: icao + id: 9303 + language: iso-639-2:mul + supported_languages: [ "iso-639-2:rus", "iso-639-2:bel", "iso-639-2:ukr", "iso-639-2:mkd", "iso-639-2:srb" ] + source_script: Cyrl + destination_script: Latn + name: "Doc 9303: Machine Readable Travel Documents, Part 3: Specifications Common to all MRTDs, Seventh Edition, 2015" + url: https://www.icao.int/publications/Documents/9303_p3_cons_en.pdf + creation_date: 2015 + description: | + Part 3 defines specifications that are common to TD1, TD2 and TD3 + size machine readable travel documents (MRTDs) including those + necessary for global interoperability using visual inspection and + machine readable (optical character recognition) means. + + Since only Latin-alphabet characters are allowed in the VIZ, if + mandatory data elements are in a national language that does not use + the Latin alphabet, a transcription or transliteration shall also be + provided. + + This document defines the transliteration mappings used to produce + this transcription or transliteration. +} + +tests { + test "Бабрыковіч Аляксандр", "Babrykovich Aliaksandr", language("iso-639-2:bel") + test "Міховіч Марыя", "Mikhovich Maryia", language("iso-639-2:bel") + test "Максім", "Maksim", language("iso-639-2:bel") + test "Іван", "Ivan", language("iso-639-2:bel") + test "СВЯТЛАНА", "SVIATLANA", language("iso-639-2:bel") + test "Ігар", "Ihar", language("iso-639-2:bel") + test "Палто Алена", "Palto Alena", language("iso-639-2:bel") + test "Мікалай", "Mikalai", language("iso-639-2:bel") + + # https://en.wikipedia.org/wiki/Machine-readable_passport#Names + test "Горбачёв", "Gorbachev", language("iso-639-2:rus") + test "Горбачёв", "Horbachiov", language("iso-639-2:bel") + test "Алексей", "Aleksei", language("iso-639-2:rus") + test "Академика Королёва", "Akademika Koroleva", language("iso-639-2:rus") + test "улица Бирюлёвская", "ulitsa Biriulevskaia", language("iso-639-2:rus") + test "Врубеля Улица", "Vrubelia Ulitsa", language("iso-639-2:rus") + test "Люблинская", "Liublinskaia", language("iso-639-2:rus") + + # https://news.tut.by/society/650761.html + test "Мария Рудь", "Mariia Rud", language("iso-639-2:rus") + test "Мария Рудь", "Mariia Rud", language("iso-639-2:bel") + + # https://pasport.org.ua/ru/vazhno/transliteratsiya + test "Олександр", "Oleksandr", language("iso-639-2:urk") +} + +stage { + + # Patterns + sub "\u0401", "IO", language(["iso-639-2:bel"]) + sub "(?