From d6c65da15997dde1249940cd286b86e81e860d4f Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 29 Mar 2018 22:58:22 +0100 Subject: [PATCH] en: don't velarize n across word boundaries It is possible -- especially at higher speeds -- for the n at the end of a word to be velarised if the next word starts with a velar plosive. I prefer the velarised sound between word boundaries, but others do not. As such, limit the velarisation to within the word only. [1] https://en.wikipedia.org/wiki/English_phonology --- phsource/ph_english | 2 +- tests/translate.test | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phsource/ph_english b/phsource/ph_english index d014a972..1b818a2a 100644 --- a/phsource/ph_english +++ b/phsource/ph_english @@ -111,7 +111,7 @@ endphoneme phoneme n vcd alv nas ipa n - IF nextPh(isVelar) THEN // /n/ is velarized to /N/ when before velar stops + IF nextPhW(isVelar) THEN // /n/ is velarized to /N/ when before velar stops ChangePhoneme(N) ENDIF CALL base1/n diff --git a/tests/translate.test b/tests/translate.test index a4180914..eff110dd 100755 --- a/tests/translate.test +++ b/tests/translate.test @@ -39,8 +39,8 @@ test_phonemes ka " 'imedg,ats#ru,ebuli m'agram Sv'ebis g'amomx,atveli s'axe" " 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" "⁉ 🌈" +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" "⁉ 🌈" # A list entry that uses '$text' to map to another list entry crashes 1.49.2 multi-word support: test_phonemes en " d'eIbju:t@d" "dΓ©buted"