From a29d3f642c7f2ea3ed0bfd6d62868730cac6f2ca Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sun, 25 Mar 2018 16:16:48 +0100 Subject: [PATCH] Test my and ka handling of long emoji names, and number pronunciation previously broken by that support. --- dictsource/my_emoji | 3 +-- tests/translate.test | 8 ++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dictsource/my_emoji b/dictsource/my_emoji index b264d18a..e283648b 100644 --- a/dictsource/my_emoji +++ b/dictsource/my_emoji @@ -926,8 +926,7 @@ $textmode 😖 မá€Ŋှနá€ēထူသá€Ŋá€Ŧးသည့á€ē မá€ģကá€ēနှá€Ŧ // [1F616] 😗 နမá€ēးနေသည့á€ē မá€ģကá€ēနှá€Ŧ // [1F617] 😘 အနမá€ēးကို á€•á€­á€¯á€ˇá€•á€ąá€¸á€”á€ąá€žá€Šá€ˇá€ē မá€ģကá€ēနှá€Ŧ // [1F618] -😙 kissing face with smiling eyes // [1F619] -//😙 ပá€ŧုá€ļးနေသည့á€ē မá€ģကá€ēလုá€ļးမá€ģá€Ŧးနှင့á€ē နမá€ēးနေသည့á€ē မá€ģကá€ēနှá€Ŧ // [1F619]// TODOTODO: This breaks speaking "7". +😙 ပá€ŧုá€ļးနေသည့á€ē မá€ģကá€ēလုá€ļးမá€ģá€Ŧးနှင့á€ē နမá€ēးနေသည့á€ē မá€ģကá€ēနှá€Ŧ // [1F619]// TODOTODO: This breaks speaking "7". 😚 မá€ģကá€ēစိမှိတá€ēထá€Ŧးကá€Ŧ နမá€ēးနေသည့á€ē မá€ģကá€ēနှá€Ŧ // [1F61A] 😛 လá€ģှá€Ŧထုတá€ēထá€Ŧးသည့á€ē မá€ģကá€ēနှá€Ŧ // [1F61B] 😜 လá€ģှá€Ŧထုတá€ēထá€Ŧးပá€ŧီး မá€ģကá€ēလုá€ļးတစá€ēဖကá€ē မှိတá€ēပá€ŧသည့á€ē မá€ģကá€ēနှá€Ŧ // [1F61C] diff --git a/tests/translate.test b/tests/translate.test index 5a584ef5..48e0c66f 100755 --- a/tests/translate.test +++ b/tests/translate.test @@ -20,6 +20,8 @@ test_phonemes en " s'VmTIN Imp'o@t@nt" "something important" # bug: https://github.com/nvaccess/nvda/issues/7740 test_phonemes ta " 'il." "āŽŗā¯" +test_phonemes my " kon'i" "7" +test_phonemes ka " s'ami Sv'idi" "3 7" # bug: https://github.com/nvaccess/nvda/issues/7805 test_phonemes hi " r'UcI" "⤰āĨā¤šā¤ŋ" @@ -29,11 +31,13 @@ test_phonemes hi " ka:n'u:n" "ā¤•ā¤žā¤¨āĨ‚⤍" #----- Emoji [http://www.unicode.org/reports/tr51/tr51-12.html] ----- # ED-3 - emoji_character -# TODO: Fix adjacent emoji without whitespace so the pronunciation is separated by a space. test_phonemes en " 'e@ri:z" "♈" +test_phonemes my " pru3'a2nke3DN_|_| mj@@lu3'a2mj@2tsnh,a2N_|_| nm_|n'e3DN_|_| mj@@nh,ats" "😙" +test_phonemes ka " k'ots#nis g'amomx,atveli s'axe m'omQim,are t#v'alebit#" "😙" +test_phonemes ka " 'imedg,ats#ru,ebuli m'agram Sv'ebis g'amomx,atveli s'axe" "đŸ˜Ĩ" +# TODO: Fix adjacent emoji without whitespace so the pronunciation is separated by a space. test_phonemes en " 'e@ri:zr'eInboU" "♈🌈" test_phonemes en " 'e@ri:z r'eInboU" "♈ 🌈" - # multi-word test_phonemes en " Ekskla#m'eIS@N kw'EstS@n m'A@k" "⁉" test_phonemes en " Ekskla#m'eIS@N kw'EstS@n m'A@k r'eInboU" "⁉ 🌈"