From eaeae0b855e480200100c1037ce7d6a65e711327 Mon Sep 17 00:00:00 2001 From: Valdis Vitolins Date: Sun, 12 Nov 2017 00:27:52 +0200 Subject: [PATCH] Latvian language improvements --- dictsource/lv_rules | 10 ++++++++-- espeak-ng-data/lang/bat/lv | 4 ++-- phsource/ph_latvian | 23 ++--------------------- 3 files changed, 12 insertions(+), 25 deletions(-) diff --git a/dictsource/lv_rules b/dictsource/lv_rules index 0b723168..d2cd48e4 100644 --- a/dictsource/lv_rules +++ b/dictsource/lv_rules @@ -147,6 +147,7 @@ .group b b b + l) b >b .group c c ts @@ -686,11 +687,13 @@ L46L45L45) o (<< uo orat) o o: ort) o (@ o osm) o o: + o (šanL04_+ uo pant) o o paran) o o pērk) o (L80+ uo pils) o (L80 uo // pilson pir) o o + plēs) o (L80 uo pneim) o o: p) o (L51 o _p) o (L77L02_+ uo // polis @@ -1450,20 +1453,22 @@ L46L45L45) o (<< uo k) ot (an ot k) ot (L51 ot k) ot (l ot - _L10pr) ot (L13_ uot // (ne|sa..)prot(i|u) + _L10pr) ot (L13_ uot // (ne|sa..)prot(i|u) lin) ot (ip ot + l) ot (er ot _l) ot (iņL04 ot // Lotiņa l) ot (L05_ ot // ..lote _l) oto (sL01_ oto // lotoss mel) ot uot m) ot (L52 ot m) oto oto: + m) otō oto: nepr) ot uot _n) ot (L04_ ot // nota n) ot (L50r ot ot (āj uot ot (k ot - m) otō oto: + ot (L01_+ uot _) oto (C< oto pil) ot ot _p) ot (ašL04 ot // potaša @@ -1588,6 +1593,7 @@ L46L45L45) o (<< uo .group t t t + l) t >t .group u u u diff --git a/espeak-ng-data/lang/bat/lv b/espeak-ng-data/lang/bat/lv index 7c551b33..159d5433 100644 --- a/espeak-ng-data/lang/bat/lv +++ b/espeak-ng-data/lang/bat/lv @@ -9,5 +9,5 @@ breathw 20 42 85 200 500 1200 formant 0 95 100 100 -5 //tunes s5 c5 q5 e5 tone 150 220 450 255 750 20 3500 255 -stressAmp 12 10 10 8 0 0 20 15 -stressLength 160 180 180 140 0 0 250 180 +stressAmp 12 10 8 8 0 0 18 15 +stressLength 160 140 200 140 0 0 240 180 diff --git a/phsource/ph_latvian b/phsource/ph_latvian index e93753a6..d9413bb7 100644 --- a/phsource/ph_latvian +++ b/phsource/ph_latvian @@ -14,7 +14,7 @@ endphoneme phoneme a: vwl starttype #a endtype #a - length 300 + length 310 lng FMT(vwl_lv/aa, 90) endphoneme @@ -101,7 +101,7 @@ endphoneme phoneme au vwl starttype #a endtype #u - length 290 + length 300 lng FMT(vdiph/aau, 100) endphoneme @@ -171,25 +171,6 @@ phoneme tS WAV(ustop/tsh,40) endphoneme -phoneme h // more quiet version of standard h - vls glt apr - lengthmod 3 - ipa h - - IF nextPh(#a) THEN - WAV(h/ha, 20) - ELIF nextPh(#e) THEN - WAV(h/he, 20) - ELIF nextPh(#i) THEN - WAV(h/hi, 20) - ELIF nextPh(#o) THEN - WAV(h/ho, 20) - ELIF nextPh(#u) THEN - WAV(h/hu, 20) - ENDIF - WAV(h/h_, 30) // no vowel following -endphoneme - phoneme n- // more voiced variant of n vwl starttype #a endtype #a ipa nU+0329