diff --git a/maps b/maps deleted file mode 160000 index 30037e2e..00000000 --- a/maps +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 30037e2eac57b6a545ef7c6dcbf1426706c83444 diff --git a/maps/icao-mul-Cyrl-Latn-2015.yaml b/maps/icao-mul-Cyrl-Latn-2015.yaml new file mode 100644 index 00000000..f3a9a42e --- /dev/null +++ b/maps/icao-mul-Cyrl-Latn-2015.yaml @@ -0,0 +1,483 @@ +--- +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: + - source: Бабрыковіч Аляксандр + expected: Babrykovich Aliaksandr + language: iso-639-2:bel + - source: Міховіч Марыя + expected: Mikhovich Maryia + language: iso-639-2:bel + - source: Максім + expected: Maksim + language: iso-639-2:bel + - source: Іван + expected: Ivan + language: iso-639-2:bel + - source: СВЯТЛАНА + expected: SVIATLANA + language: iso-639-2:bel + - source: Ігар + expected: Ihar + language: iso-639-2:bel + - source: Палто Алена + expected: Palto Alena + language: iso-639-2:bel + - source: Мікалай + expected: Mikalai + language: iso-639-2:bel + # https://en.wikipedia.org/wiki/Machine-readable_passport#Names + - source: Горбачёв + expected: Gorbachev + language: iso-639-2:rus + - source: Горбачёв + expected: Horbachiov + language: iso-639-2:bel + - source: Алексей + expected: Aleksei + language: iso-639-2:rus + - source: Академика Королёва + expected: Akademika Koroleva + language: iso-639-2:rus + - source: улица Бирюлёвская + expected: ulitsa Biriulevskaia + language: iso-639-2:rus + - source: Врубеля Улица + expected: Vrubelia Ulitsa + language: iso-639-2:rus + - source: Люблинская + expected: Liublinskaia + language: iso-639-2:rus + # https://news.tut.by/society/650761.html + - source: Мария Рудь + expected: Mariia Rud + language: iso-639-2:rus + - source: Мария Рудь + expected: Mariia Rud + language: iso-639-2:bel + # https://pasport.org.ua/ru/vazhno/transliteratsiya + - source: Олександр + expected: Oleksandr + language: iso-639-2:urk + +map: + rules: + - pattern: \u0401 + result: IO + language: [ 'iso-639-2:bel' ] + - pattern: (? test["language"] }) + expected = test["expected"]&.unicode_normalize + expect(result).to eq(expected) + end + end + end + end + end +end