Browse Source

Latvian language improvements

master
Valdis Vitolins 8 years ago
parent
commit
25475dd407
4 changed files with 52 additions and 20 deletions
  1. 5
    5
      dictsource/lv_list
  2. 13
    10
      dictsource/lv_rules
  3. 4
    4
      espeak-ng-data/lang/bat/lv
  4. 30
    1
      phsource/ph_latvian

+ 5
- 5
dictsource/lv_list View File

// Abbreviations // // Abbreviations //
/////////////////// ///////////////////
as $abbrev as $abbrev
asv ,a:_:,ess_!v'e:_:
asv ,a:_:,ess_!v'e:_: $allcaps
ano 'ano: ano 'ano:
ba $abbrev ba $abbrev
bba $abbrev bba $abbrev
eest $abbrev eest $abbrev
est $abbrev est $abbrev
eur 'euR eur 'euR
lnnk 'ell_,en_,en_k'a: $pause
lnnk $abbrev $pause
lp $abbrev lp $abbrev
ls $abbrev ls $abbrev
lu $abbrev lu $abbrev
na $abbrev na $abbrev
nra $abbrev nra $abbrev
nr $abbrev nr $abbrev
pctvl p'e:_ts,e:_t,e:_v,e:_'ell_ $pause
pctvl $abbrev $pause
prks $abbrev prks $abbrev
psrs $abbrev psrs $abbrev
rpi $abbrev rpi $abbrev
šķ $abbrev šķ $abbrev
tjpr $abbrev $u $pause tjpr $abbrev $u $pause
tml $abbrev $u $pause tml $abbrev $u $pause
tp t,e:_p'e: $pause
tp $abbrev $pause
utjpr $abbrev $u $pause utjpr $abbrev $u $pause
utml $abbrev $u $pause utml $abbrev $u $pause
utt $abbrev $u $pause utt $abbrev $u $pause
zzs z'e:_z,e:_'ess $pause
zzs $abbrev $pause


/////////////////////////// ///////////////////////////
// other exception words // // other exception words //

+ 13
- 10
dictsource/lv_rules View File

.group e .group e
e e // Default as narrow e e e // Default as narrow e
ee e_|e // internationalisms, prefix: ne-e... ee e_|e // internationalisms, prefix: ne-e...
ei (+ ei
ei (++ ei


// narrow e ---------------------------------------------------------------------- // // narrow e ---------------------------------------------------------------------- //
a) e (ro e // internationalisms a) e (ro e // internationalisms
e (L25L01_ E e (L25L01_ E
e (L25L25L01_ E e (L25L25L01_ E
e (Jam E e (Jam E
L25) e (L18_+ E // vareni etc.
L25) e (CJL18_ E // vareni etc.


// specific words ----------------------------------------------------------------- // // specific words ----------------------------------------------------------------- //
b) e (dL82L05_ e // bedre b) e (dL82L05_ e // bedre
_v) e (ntL04_ E // Venta _v) e (ntL04_ E // Venta
_v) e (ntsp E // Ventspils _v) e (ntsp E // Ventspils
_z) e (lmL04_ e // Zelma _z) e (lmL04_ e // Zelma
_z) e (m e
z) e (m+ e


.group ē .group ē
ē e: // Default as narrow ē ē e: // Default as narrow ē
ē (L25L25L25L25L24 E: ē (L25L25L25L25L24 E:
// widening endings // widening endings
ē (L01_ E: ē (L01_ E:
ē (L25L01_ E:
ē (L25L01_+ E:
ē (L25L25L01_ E: ē (L25L25L01_ E:
// 5. dec. words // 5. dec. words
ē (CL05_ e: ē (CL05_ e:
ē (rkšķ e: ē (rkšķ e:
ē (tā_ E: ē (tā_ E:
ē (tL55_ E: ē (tL55_ E:
gr) ē (kL01_ E:
izp) ē (t e: izp) ē (t e:
_kāp) ē (c_ e: // kāpēc _kāp) ē (c_ e: // kāpēc
m) ēne (L83 e:ne m) ēne (L83 e:ne
t) ē (L90 e: t) ē (L90 e:
t) ē (mL04_ e: // ..tēma t) ē (mL04_ e: // ..tēma
t) ērē e:Re: t) ērē e:Re:
t) ē (zL05_ e: // ..tēze
_v) ē (l_ e: // vēl _v) ē (l_ e: // vēl
_v) ē (lL01_ E: // vēls _v) ē (lL01_ E: // vēls
_v) ē (rā_ e: // vērā _v) ē (rā_ e: // vērā
ī i: ī i:


.group j .group j
A) j (@ :j
// A) j (@ :j
j j j j
_) jebk j%ebk // stress on 2nd syllable _) jebk j%ebk // stress on 2nd syllable


C) n (C n- // more voiced variant between consonants C) n (C n- // more voiced variant between consonants
L59) n (@ :n L59) n (@ :n
n (d N n (d N
ne (vienl+ n'e // nevienlīdzība
_) ne (vien n%e // stress on 2nd syllable _) ne (vien n%e // stress on 2nd syllable
n (g N n (g N
n (k N n (k N
.group os .group os
ap) ostrof ostRo:f ap) ostrof ostRo:f
atm) os os atm) os os
b) os (L01_ os // boss
_blont) os (_ uos // Blontos _blont) os (_ uos // Blontos
b) os (L01_ os // boss
_cit) os (_ uos // citos _cit) os (_ uos // citos
_dat) os (_ uos _dat) os (_ uos
_d) osto (jevskL02_ osto // Dostojevskis _d) osto (jevskL02_ osto // Dostojevskis
f) osfo osfo: f) osfo osfo:
_gr) osto (nL04_ osto: // Grostona _gr) osto (nL04_ osto: // Grostona
iz) os uos iz) os uos
kāp) os (t uos
k) os (in os k) os (in os
k) os (m os k) os (m os
_k) osmo (sL01_ osmo // kosmoss _k) osmo (sL01_ osmo // kosmoss
osto (L65 uostuo osto (L65 uostuo
os (t_ uos os (t_ uos
p) os (m uos p) os (m uos
p) os (tC@ os
p) os (te os p) os (te os
p) os (ter os p) os (ter os
p) os (tī uos p) os (tī uos
p) os (tL56m os
p) os (tm os
p) os (tk os
p) os (tL01 uos
p) os (tL55m os
p) os (to uos p) os (to uos
p) os (tso os
p) os (tul os p) os (tul os
pr) os (p os pr) os (p os
pr) os (t os pr) os (t os

+ 4
- 4
espeak-ng-data/lang/bat/lv View File

status mature status mature
words 0 2 words 0 2
pitch 64 118 pitch 64 118
breath 5 2 0 0 0 1
breathw 20 40 500 1200
formant 1 95 100 100 -5
breath 10 2 1 0 0 0
breathw 20 42 85 200 500 1200
formant 0 95 100 100 -5
//tunes s5 c5 q5 e5 //tunes s5 c5 q5 e5
tone 150 220 450 255 850 10 3500 255
tone 150 220 450 255 750 20 3500 255
stressAmp 12 10 10 8 0 0 18 15 stressAmp 12 10 10 8 0 0 18 15
stressLength 180 180 180 160 0 0 240 180 stressLength 180 180 180 160 0 0 240 180

+ 30
- 1
phsource/ph_latvian View File

phoneme i: phoneme i:
vwl starttype #i endtype #i vwl starttype #i endtype #i
length 300 length 300
FMT(vwl_lv/ii, 100) // was i_7
FMT(vwl_lv/ii, 90) // was i_7
endphoneme endphoneme




WAV(ufric/s,60) WAV(ufric/s,60)
endphoneme endphoneme


phoneme j // **y**es
liquid pal starttype #i

IF nextPhW(isVowel) THEN
NextVowelStarts
VowelStart(j/j@)
VowelStart(j/ja)
VowelStart(j/je)
VowelStart(j/ji)
VowelStart(j/jo)
VowelStart(j/ju)
EndSwitch

IF prevPhW(e) THEN
VowelEnding(j/xj, 10) //
ELSE
VowelEnding(j/xj, 127) // In difference with English, vowel is lengthened, not shortened
ENDIF

IF prevPh(isPause) THEN
FMT(j/_j)
ENDIF
ELSE
// no vowel follows
Vowelout len=127
FMT(j/xj)
ENDIF
endphoneme


Loading…
Cancel
Save