From ca062dc7c9e13c01d96ef58a5a834c038aff4689 Mon Sep 17 00:00:00 2001 From: Mike FABIAN Date: Thu, 19 Sep 2024 15:11:48 +0200 Subject: [PATCH] Add a test case for the updated hu-rovas-post.mim m17n input method --- tests/test_m17n_translit.py | 305 ++++++++++++++++++++++++++++++++++++ 1 file changed, 305 insertions(+) diff --git a/tests/test_m17n_translit.py b/tests/test_m17n_translit.py index 5a439f06..6de8b0ba 100755 --- a/tests/test_m17n_translit.py +++ b/tests/test_m17n_translit.py @@ -84,6 +84,311 @@ def test_non_existing_ime(self) -> None: # Something unexpected happened: self.assertTrue(False) # pylint: disable=redundant-unittest-assert + @unittest.skipUnless( + M17N_DB_VERSION >= (1, 8, 8), + 'Skipping because m17n-db is too old') + def test_hu_rovas_post(self) -> None: + trans = m17n_translit.Transliterator('hu-rovas-post') + self.assertEqual(trans.transliterate([',']), 'โน') + self.assertEqual(trans.transliterate(['?']), 'โธฎ') + self.assertEqual(trans.transliterate([';']), 'โ') + self.assertEqual(trans.transliterate(['0']), '\u200D') + self.assertEqual(trans.transliterate(['G-0']), '0') + self.assertEqual(trans.transliterate(['section']), '\u200F') + self.assertEqual(trans.transliterate(['G-section']), '\u200E') + self.assertEqual(trans.transliterate(['1']), '๐ณบ') + self.assertEqual(trans.transliterate(['G-1']), '1') + self.assertEqual(trans.transliterate(['1', '0']), '๐ณผ') + self.assertEqual(trans.transliterate(['1', '0', '0']), '๐ณพ') + self.assertEqual(trans.transliterate(['1', '0', '0', '0']), '๐ณฟ') + self.assertEqual(trans.transliterate(['2']), '๐ณบ๐ณบ') + self.assertEqual(trans.transliterate(['G-2']), '2') + self.assertEqual(trans.transliterate(['3']), '๐ณบ๐ณบ๐ณบ') + self.assertEqual(trans.transliterate(['G-3']), '3') + self.assertEqual(trans.transliterate(['4']), '๐ณบ๐ณบ๐ณบ๐ณบ') + self.assertEqual(trans.transliterate(['G-4']), '4') + self.assertEqual(trans.transliterate(['5']), '๐ณป') + self.assertEqual(trans.transliterate(['G-5']), '5') + self.assertEqual(trans.transliterate(['5', '0']), '๐ณฝ') + self.assertEqual(trans.transliterate(['6']), '๐ณป๐ณบ') + self.assertEqual(trans.transliterate(['G-6']), '6') + self.assertEqual(trans.transliterate(['7']), '๐ณป๐ณบ๐ณบ') + self.assertEqual(trans.transliterate(['G-7']), '7') + self.assertEqual(trans.transliterate(['8']), '๐ณป๐ณบ๐ณบ๐ณบ') + self.assertEqual(trans.transliterate(['G-8']), '8') + self.assertEqual(trans.transliterate(['9']), '๐ณป๐ณบ๐ณบ๐ณบ๐ณบ') + self.assertEqual(trans.transliterate(['G-9']), '9') + self.assertEqual(trans.transliterate(['a']), '๐ณ€') + self.assertEqual(trans.transliterate(['A']), '๐ฒ€') + self.assertEqual(trans.transliterate(['G-a']), '๐ณƒ') + self.assertEqual(trans.transliterate(['G-A']), '๐ฒƒ') + self.assertEqual(trans.transliterate(['aacute']), '๐ณ') + self.assertEqual(trans.transliterate(['Aacute']), '๐ฒ') + self.assertEqual(trans.transliterate(['a', "'"]), '๐ณ') + self.assertEqual(trans.transliterate(['A', "'"]), '๐ฒ') + self.assertEqual(trans.transliterate(['a', "'", "'"]), "๐ณ€'") + self.assertEqual(trans.transliterate(['A', "'", "'"]), "๐ฒ€'") + self.assertEqual(trans.transliterate(['a', "'", "'", "'"]), "๐ณ'") + self.assertEqual(trans.transliterate(['A', "'", "'", "'"]), "๐ฒ'") + self.assertEqual(trans.transliterate(['G-aacute']), "๐ณˆ") + self.assertEqual(trans.transliterate(['G-Aacute']), "๐ฒˆ") + self.assertEqual(trans.transliterate(['G-a', "'"]), "๐ณˆ") + self.assertEqual(trans.transliterate(['G-A', "'"]), "๐ฒˆ") + self.assertEqual(trans.transliterate(['G-a', "'", "'"]), "๐ณƒ'") + self.assertEqual(trans.transliterate(['G-A', "'", "'"]), "๐ฒƒ'") + self.assertEqual(trans.transliterate(['G-a', "'", "'", "'"]), "๐ณˆ'") + self.assertEqual(trans.transliterate(['G-A', "'", "'", "'"]), "๐ฒˆ'") + self.assertEqual(trans.transliterate(['adiaeresis']), '๐ณ‰') + self.assertEqual(trans.transliterate(['Adiaeresis']), '๐ฒ‰') + self.assertEqual(trans.transliterate(['a', '"']), '๐ณ‰') + self.assertEqual(trans.transliterate(['A', '"']), '๐ฒ‰') + self.assertEqual(trans.transliterate(['a', '"', '"']), '๐ณ€"') + self.assertEqual(trans.transliterate(['A', '"', '"']), '๐ฒ€"') + self.assertEqual(trans.transliterate(['a', '"', '"', '"']), '๐ณ‰"') + self.assertEqual(trans.transliterate(['A', '"', '"', '"']), '๐ฒ‰"') + self.assertEqual(trans.transliterate(['b']), '๐ณ‚') + self.assertEqual(trans.transliterate(['B']), '๐ฒ‚') + self.assertEqual(trans.transliterate(['c']), '๐ณ„') + self.assertEqual(trans.transliterate(['C']), '๐ฒ„') + self.assertEqual(trans.transliterate(['G-c']), '๐ณ…') + self.assertEqual(trans.transliterate(['G-C']), '๐ฒ…') + self.assertEqual(trans.transliterate(['c', 's']), '๐ณ†') + self.assertEqual(trans.transliterate(['C', 's']), '๐ฒ†') + self.assertEqual(trans.transliterate(['C', 'S']), '๐ฒ†') + self.assertEqual(trans.transliterate(['d']), '๐ณ‡') + self.assertEqual(trans.transliterate(['D']), '๐ฒ‡') + self.assertEqual(trans.transliterate(['G-d']), '๐ณง') + self.assertEqual(trans.transliterate(['G-D']), '๐ฒง') + self.assertEqual(trans.transliterate(['G-d', "z"]), '๐ณ‡โ€๐ณฏ') + self.assertEqual(trans.transliterate(['G-D', "z"]), '๐ฒ‡โ€๐ฒฏ') + self.assertEqual(trans.transliterate(['G-D', "Z"]), '๐ฒ‡โ€๐ฒฏ') + self.assertEqual(trans.transliterate(['G-d', "z", "s"]), '๐ณ‡โ€๐ณฐ') + self.assertEqual(trans.transliterate(['G-D', "z", "s"]), '๐ฒ‡โ€๐ฒฐ') + self.assertEqual(trans.transliterate(['G-D', "Z", "s"]), '๐ฒ‡โ€๐ฒฐ') + self.assertEqual(trans.transliterate(['G-D', "Z", "S"]), '๐ฒ‡โ€๐ฒฐ') + self.assertEqual(trans.transliterate(['e']), '๐ณ‰') + self.assertEqual(trans.transliterate(['E']), '๐ฒ‰') + self.assertEqual(trans.transliterate(['ediaeresis']), '๐ณŠ') + self.assertEqual(trans.transliterate(['Ediaeresis']), '๐ฒŠ') + self.assertEqual(trans.transliterate(['e', '"']), '๐ณŠ') + self.assertEqual(trans.transliterate(['E', '"']), '๐ฒŠ') + self.assertEqual(trans.transliterate(['e', '"', '"']), '๐ณ‰"') + self.assertEqual(trans.transliterate(['E', '"', '"']), '๐ฒ‰"') + self.assertEqual(trans.transliterate(['e', '"', '"', '"']), '๐ณŠ"') + self.assertEqual(trans.transliterate(['E', '"', '"', '"']), '๐ฒŠ"') + self.assertEqual(trans.transliterate(['eacute']), '๐ณ‹') + self.assertEqual(trans.transliterate(['Eacute']), '๐ฒ‹') + self.assertEqual(trans.transliterate(['e', "'"]), '๐ณ‹') + self.assertEqual(trans.transliterate(['E', "'"]), '๐ฒ‹') + self.assertEqual(trans.transliterate(['e', "'", "'"]), "๐ณ‰'") + self.assertEqual(trans.transliterate(['E', "'", "'"]), "๐ฒ‰'") + self.assertEqual(trans.transliterate(['e', "'", "'", "'"]), "๐ณ‹'") + self.assertEqual(trans.transliterate(['E', "'", "'", "'"]), "๐ฒ‹'") + self.assertEqual(trans.transliterate(['f']), '๐ณŒ') + self.assertEqual(trans.transliterate(['F']), '๐ฒŒ') + self.assertEqual(trans.transliterate(['g']), '๐ณ') + self.assertEqual(trans.transliterate(['G']), '๐ฒ') + self.assertEqual(trans.transliterate(['g', 'y']), '๐ณŽ') + self.assertEqual(trans.transliterate(['G', 'y']), '๐ฒŽ') + self.assertEqual(trans.transliterate(['G', 'Y']), '๐ฒŽ') + self.assertEqual(trans.transliterate(['h']), '๐ณ') + self.assertEqual(trans.transliterate(['H']), '๐ฒ') + self.assertEqual(trans.transliterate(['G-h']), '๐ณฉ') + self.assertEqual(trans.transliterate(['G-H']), '๐ฒฉ') + self.assertEqual(trans.transliterate(['i']), '๐ณ') + self.assertEqual(trans.transliterate(['I']), '๐ฒ') + self.assertEqual(trans.transliterate(['G-i']), '๐ณ‘') + self.assertEqual(trans.transliterate(['G-I']), '๐ฒ‘') + self.assertEqual(trans.transliterate(['iacute']), '๐ณ‘') + self.assertEqual(trans.transliterate(['Iacute']), '๐ฒ‘') + self.assertEqual(trans.transliterate(['i', "'"]), '๐ณ‘') + self.assertEqual(trans.transliterate(['I', "'"]), '๐ฒ‘') + self.assertEqual(trans.transliterate(['i', "'", "'"]), "๐ณ'") + self.assertEqual(trans.transliterate(['I', "'", "'"]), "๐ฒ'") + self.assertEqual(trans.transliterate(['i', "'", "'", "'"]), "๐ณ‘'") + self.assertEqual(trans.transliterate(['I', "'", "'", "'"]), "๐ฒ‘'") + self.assertEqual(trans.transliterate(['j']), '๐ณ’') + self.assertEqual(trans.transliterate(['J']), '๐ฒ’') + self.assertEqual(trans.transliterate(['k']), '๐ณ“') + self.assertEqual(trans.transliterate(['K']), '๐ฒ“') + self.assertEqual(trans.transliterate(['G-k']), '๐ณ”') + self.assertEqual(trans.transliterate(['G-K']), '๐ฒ”') + self.assertEqual(trans.transliterate(['l']), '๐ณ–') + self.assertEqual(trans.transliterate(['L']), '๐ฒ–') + self.assertEqual(trans.transliterate(['l', "y"]), '๐ณ—') + self.assertEqual(trans.transliterate(['L', "y"]), '๐ฒ—') + self.assertEqual(trans.transliterate(['L', "Y"]), '๐ฒ—') + self.assertEqual(trans.transliterate(['m']), '๐ณ˜') + self.assertEqual(trans.transliterate(['M']), '๐ฒ˜') + self.assertEqual(trans.transliterate(['n']), '๐ณ™') + self.assertEqual(trans.transliterate(['N']), '๐ฒ™') + self.assertEqual(trans.transliterate(['n', 'y']), '๐ณš') + self.assertEqual(trans.transliterate(['N', 'y']), '๐ฒš') + self.assertEqual(trans.transliterate(['N', 'Y']), '๐ฒš') + self.assertEqual(trans.transliterate(['o']), '๐ณ›') + self.assertEqual(trans.transliterate(['O']), '๐ฒ›') + self.assertEqual(trans.transliterate(['oacute']), '๐ณœ') + self.assertEqual(trans.transliterate(['Oacute']), '๐ฒœ') + self.assertEqual(trans.transliterate(['o', "'"]), '๐ณœ') + self.assertEqual(trans.transliterate(['O', "'"]), '๐ฒœ') + self.assertEqual(trans.transliterate(['o', "'", "'"]), "๐ณ›'") + self.assertEqual(trans.transliterate(['O', "'", "'"]), "๐ฒ›'") + self.assertEqual(trans.transliterate(['o', "'", "'", "'"]), "๐ณœ'") + self.assertEqual(trans.transliterate(['O', "'", "'", "'"]), "๐ฒœ'") + self.assertEqual(trans.transliterate(['odiaeresis']), '๐ณž') + self.assertEqual(trans.transliterate(['Odiaeresis']), '๐ฒž') + self.assertEqual(trans.transliterate(['o', '"']), '๐ณž') + self.assertEqual(trans.transliterate(['O', '"']), '๐ฒž') + self.assertEqual(trans.transliterate(['o', '"', '"']), '๐ณ›"') + self.assertEqual(trans.transliterate(['O', '"', '"']), '๐ฒ›"') + self.assertEqual(trans.transliterate(['o', '"', '"', '"']), '๐ณž"') + self.assertEqual(trans.transliterate(['O', '"', '"', '"']), '๐ฒž"') + self.assertEqual(trans.transliterate(['G-odiaeresis']), '๐ณ') + self.assertEqual(trans.transliterate(['G-Odiaeresis']), '๐ฒ') + self.assertEqual(trans.transliterate(['G-o', '"']), '๐ณ') + self.assertEqual(trans.transliterate(['G-O', '"']), '๐ฒ') + self.assertEqual(trans.transliterate(['G-o', '"', '"']), '๐ณ›"') + self.assertEqual(trans.transliterate(['G-O', '"', '"']), '๐ฒ›"') + self.assertEqual(trans.transliterate(['G-o', '"', '"', '"']), '๐ณ"') + self.assertEqual(trans.transliterate(['G-O', '"', '"', '"']), '๐ฒ"') + self.assertEqual(trans.transliterate(['odoubleacute']), '๐ณŸ') + self.assertEqual(trans.transliterate(['Odoubleacute']), '๐ฒŸ') + self.assertEqual(trans.transliterate(['o', ':']), '๐ณŸ') + self.assertEqual(trans.transliterate(['O', ':']), '๐ฒŸ') + self.assertEqual(trans.transliterate(['o', ':', ':']), '๐ณ›:') + self.assertEqual(trans.transliterate(['O', ':', ':']), '๐ฒ›:') + self.assertEqual(trans.transliterate(['o', ':', ':', ':']), '๐ณŸ:') + self.assertEqual(trans.transliterate(['O', ':', ':', ':']), '๐ฒŸ:') + self.assertEqual(trans.transliterate(['p']), '๐ณ ') + self.assertEqual(trans.transliterate(['P']), '๐ฒ ') + self.assertEqual(trans.transliterate(['q']), '๐ณŽ') + self.assertEqual(trans.transliterate(['Q']), '๐ฒŽ') + self.assertEqual(trans.transliterate(['G-q']), '๐ณ“โ€๐ณฎ') + self.assertEqual(trans.transliterate(['G-Q']), '๐ฒ“โ€๐ฒฎ') + self.assertEqual(trans.transliterate(['r']), '๐ณข') + self.assertEqual(trans.transliterate(['R']), '๐ฒข') + self.assertEqual(trans.transliterate(['G-r']), '๐ณฃ') + self.assertEqual(trans.transliterate(['G-R']), '๐ฒฃ') + self.assertEqual(trans.transliterate(['s']), '๐ณค') + self.assertEqual(trans.transliterate(['S']), '๐ฒค') + self.assertEqual(trans.transliterate(['G-s']), '๐ณก') + self.assertEqual(trans.transliterate(['G-S']), '๐ฒก') + self.assertEqual(trans.transliterate(['s', 'z']), '๐ณฅ') + self.assertEqual(trans.transliterate(['S', 'z']), '๐ฒฅ') + self.assertEqual(trans.transliterate(['S', 'Z']), '๐ฒฅ') + self.assertEqual(trans.transliterate(['t']), '๐ณฆ') + self.assertEqual(trans.transliterate(['T']), '๐ฒฆ') + self.assertEqual(trans.transliterate(['t', 'y']), '๐ณจ') + self.assertEqual(trans.transliterate(['T', 'y']), '๐ฒจ') + self.assertEqual(trans.transliterate(['T', 'Y']), '๐ฒจ') + self.assertEqual(trans.transliterate(['u']), '๐ณช') + self.assertEqual(trans.transliterate(['U']), '๐ฒช') + self.assertEqual(trans.transliterate(['G-u']), '๐ณฒ') + self.assertEqual(trans.transliterate(['G-U']), '๐ฒฒ') + self.assertEqual(trans.transliterate(['uacute']), '๐ณซ') + self.assertEqual(trans.transliterate(['Uacute']), '๐ฒซ') + self.assertEqual(trans.transliterate(['u', "'"]), '๐ณซ') + self.assertEqual(trans.transliterate(['U', "'"]), '๐ฒซ') + self.assertEqual(trans.transliterate(['u', "'", "'"]), "๐ณช'") + self.assertEqual(trans.transliterate(['U', "'", "'"]), "๐ฒช'") + self.assertEqual(trans.transliterate(['u', "'", "'", "'"]), "๐ณซ'") + self.assertEqual(trans.transliterate(['U', "'", "'", "'"]), "๐ฒซ'") + self.assertEqual(trans.transliterate(['G-uacute']), '๐ณ•') + self.assertEqual(trans.transliterate(['G-Uacute']), '๐ฒ•') + self.assertEqual(trans.transliterate(['G-u', "'"]), '๐ณ•') + self.assertEqual(trans.transliterate(['G-U', "'"]), '๐ฒ•') + self.assertEqual(trans.transliterate(['G-u', "'", "'"]), "๐ณฒ'") + self.assertEqual(trans.transliterate(['G-U', "'", "'"]), "๐ฒฒ'") + self.assertEqual(trans.transliterate(['G-u', "'", "'", "'"]), "๐ณ•'") + self.assertEqual(trans.transliterate(['G-U', "'", "'", "'"]), "๐ฒ•'") + self.assertEqual(trans.transliterate(['udiaeresis']), '๐ณญ') + self.assertEqual(trans.transliterate(['Udiaeresis']), '๐ฒญ') + self.assertEqual(trans.transliterate(['u', '"']), '๐ณญ') + self.assertEqual(trans.transliterate(['U', '"']), '๐ฒญ') + self.assertEqual(trans.transliterate(['u', '"', '"']), '๐ณช"') + self.assertEqual(trans.transliterate(['U', '"', '"']), '๐ฒช"') + self.assertEqual(trans.transliterate(['u', '"', '"', '"']), '๐ณญ"') + self.assertEqual(trans.transliterate(['U', '"', '"', '"']), '๐ฒญ"') + self.assertEqual(trans.transliterate(['udoubleacute']), '๐ณฌ') + self.assertEqual(trans.transliterate(['Udoubleacute']), '๐ฒฌ') + self.assertEqual(trans.transliterate(['u', ':']), '๐ณฌ') + self.assertEqual(trans.transliterate(['U', ':']), '๐ฒฌ') + self.assertEqual(trans.transliterate(['u', ':', ':']), '๐ณช:') + self.assertEqual(trans.transliterate(['U', ':', ':']), '๐ฒช:') + self.assertEqual(trans.transliterate(['u', ':', ':', ':']), '๐ณฌ:') + self.assertEqual(trans.transliterate(['U', ':', ':', ':']), '๐ฒฌ:') + self.assertEqual(trans.transliterate(['v']), '๐ณฎ') + self.assertEqual(trans.transliterate(['V']), '๐ฒฎ') + self.assertEqual(trans.transliterate(['w']), '๐ณฐ') + self.assertEqual(trans.transliterate(['W']), '๐ฒฐ') + self.assertEqual(trans.transliterate(['G-w']), '๐ณฎโ€๐ณฎ') + self.assertEqual(trans.transliterate(['G-W']), '๐ฒฎโ€๐ฒฎ') + self.assertEqual(trans.transliterate(['x']), '๐ณฅ') + self.assertEqual(trans.transliterate(['X']), '๐ฒฅ') + self.assertEqual(trans.transliterate(['G-x']), '๐ณ“โ€๐ณฅ') + self.assertEqual(trans.transliterate(['G-X']), '๐ฒ“โ€๐ฒฅ') + self.assertEqual(trans.transliterate(['y']), '๐ณ—') + self.assertEqual(trans.transliterate(['Y']), '๐ฒ—') + self.assertEqual(trans.transliterate(['G-y']), '๐ณโ€๐ณ’') + self.assertEqual(trans.transliterate(['G-Y']), '๐ฒโ€๐ฒ’') + self.assertEqual(trans.transliterate(['z']), '๐ณฏ') + self.assertEqual(trans.transliterate(['Z']), '๐ฒฏ') + self.assertEqual(trans.transliterate(['z', 's']), '๐ณฐ') + self.assertEqual(trans.transliterate(['Z', 's']), '๐ฒฐ') + self.assertEqual(trans.transliterate(['Z', 'S']), '๐ฒฐ') + self.assertEqual(trans.transliterate(['_', 'a', 'n', 'd']), '๐ณˆ') + self.assertEqual(trans.transliterate(['_', 'A', 'n', 'd']), '๐ฒˆ') + self.assertEqual(trans.transliterate(['_', 'A', 'N', 'd']), '๐ฒˆ') + self.assertEqual(trans.transliterate(['_', 'A', 'N', 'D']), '๐ฒˆ') + self.assertEqual(trans.transliterate(['_', 'e', 'c', 'h']), '๐ณฉ') + self.assertEqual(trans.transliterate(['_', 'E', 'c', 'h']), '๐ฒฉ') + self.assertEqual(trans.transliterate(['_', 'E', 'C', 'h']), '๐ฒฉ') + self.assertEqual(trans.transliterate(['_', 'E', 'C', 'H']), '๐ฒฉ') + self.assertEqual(trans.transliterate(['_', 'e', 'n', 'c']), '๐ณ…') + self.assertEqual(trans.transliterate(['_', 'E', 'n', 'c']), '๐ฒ…') + self.assertEqual(trans.transliterate(['_', 'E', 'N', 'c']), '๐ฒ…') + self.assertEqual(trans.transliterate(['_', 'E', 'N', 'C']), '๐ฒ…') + self.assertEqual(trans.transliterate(['_', 'e', 'n', 't']), '๐ณง') + self.assertEqual(trans.transliterate(['_', 'E', 'n', 't']), '๐ฒง') + self.assertEqual(trans.transliterate(['_', 'E', 'N', 't']), '๐ฒง') + self.assertEqual(trans.transliterate(['_', 'E', 'N', 'T']), '๐ฒง') + self.assertEqual(trans.transliterate(['_', 'e', 'n', 't', 's']), '๐ณฑ') + self.assertEqual(trans.transliterate(['_', 'E', 'n', 't', 's']), '๐ฒฑ') + self.assertEqual(trans.transliterate(['_', 'E', 'N', 't', 's']), '๐ฒฑ') + self.assertEqual(trans.transliterate(['_', 'E', 'N', 'T', 's']), '๐ฒฑ') + self.assertEqual(trans.transliterate(['_', 'E', 'N', 'T', 'S']), '๐ฒฑ') + self.assertEqual(trans.transliterate(['G-_', 'e', 'n', 't']), '๐ณฑ') + self.assertEqual(trans.transliterate(['G-_', 'E', 'n', 't']), '๐ฒฑ') + self.assertEqual(trans.transliterate(['G-_', 'E', 'N', 't']), '๐ฒฑ') + self.assertEqual(trans.transliterate(['G-_', 'E', 'N', 'T']), '๐ฒฑ') + self.assertEqual(trans.transliterate(['_', 'e', 'm', 'p']), '๐ณก') + self.assertEqual(trans.transliterate(['_', 'E', 'm', 'p']), '๐ฒก') + self.assertEqual(trans.transliterate(['_', 'E', 'M', 'p']), '๐ฒก') + self.assertEqual(trans.transliterate(['_', 'E', 'M', 'P']), '๐ฒก') + self.assertEqual(trans.transliterate(['_', 'u', 'n', 'k']), '๐ณ•') + self.assertEqual(trans.transliterate(['_', 'U', 'n', 'k']), '๐ฒ•') + self.assertEqual(trans.transliterate(['_', 'U', 'N', 'k']), '๐ฒ•') + self.assertEqual(trans.transliterate(['_', 'U', 'N', 'K']), '๐ฒ•') + self.assertEqual(trans.transliterate(['_', 'u', 's']), '๐ณฒ') + self.assertEqual(trans.transliterate(['_', 'U', 's']), '๐ฒฒ') + self.assertEqual(trans.transliterate(['_', 'U', 'S']), '๐ฒฒ') + self.assertEqual(trans.transliterate(['_', 'a', 'm', 'b']), '๐ณƒ') + self.assertEqual(trans.transliterate(['_', 'A', 'm', 'b']), '๐ฒƒ') + self.assertEqual(trans.transliterate(['_', 'A', 'M', 'b']), '๐ฒƒ') + self.assertEqual(trans.transliterate(['_', 'A', 'M', 'B']), '๐ฒƒ') + self.assertEqual(trans.transliterate(['_', 'Z', 'W', 'J']), '\u200D') + self.assertEqual(trans.transliterate(['_', 'R', 'L', 'M']), '\u200F') + self.assertEqual(trans.transliterate(['_', 'L', 'R', 'M']), '\u200C') + self.assertEqual(trans.transliterate(['_', 'L', 'R', 'E']), '\u202A') + self.assertEqual(trans.transliterate(['_', 'R', 'L', 'E']), '\u202B') + self.assertEqual(trans.transliterate(['_', 'L', 'R', 'O']), '\u202D') + self.assertEqual(trans.transliterate(['_', 'R', 'L', 'O']), '\u202E') + self.assertEqual(trans.transliterate(['_', 'P', 'D', 'F']), '\u202C') + self.assertEqual(trans.transliterate(['_', 'L', 'R', 'I']), '\u2066') + self.assertEqual(trans.transliterate(['_', 'R', 'L', 'I']), '\u2067') + self.assertEqual(trans.transliterate(['_', 'F', 'S', 'I']), '\u2068') + self.assertEqual(trans.transliterate(['_', 'P', 'D', 'I']), '\u2069') + def test_ru_translit(self) -> None: trans = m17n_translit.Transliterator('ru-translit') self.assertEqual(trans.transliterate(list('y')), 'ั‹')