Browse Source

Latvian language improvements

master
Valdis Vitolins 7 years ago
parent
commit
e885aff70d
4 changed files with 31 additions and 9 deletions
  1. 1
    0
      dictsource/lv_list
  2. 5
    3
      dictsource/lv_rules
  3. 1
    1
      espeak-ng-data/lang/bat/lv
  4. 24
    5
      phsource/ph_latvian

+ 1
- 0
dictsource/lv_list View File

positivus $alt positivus $alt
protežē $alt $3 protežē $alt $3
puertoriko $alt $4 puertoriko $alt $4
radio $alt
raivo $alt raivo $alt
rančo $alt rančo $alt
retro $alt retro $alt

+ 5
- 3
dictsource/lv_rules View File

L59) n (@ :n L59) n (@ :n
n (d N n (d N
ne (vienl+ n'e // nevienlīdzība ne (vienl+ n'e // nevienlīdzība
ne (vienmērīg n'e // nevienmērīgi
_) 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 o .group o
// default policy rules // default policy rules
_C) o (_+ o` // shorter version of uo for particles
_C) o (_+ uo` // shorter version of uo for particles
o) o o: // in ..oo.. second o is spelled as ō o) o o: // in ..oo.. second o is spelled as ō
o ($w_alt++ o // $alt words in lv_list are spelled as o o ($w_alt++ o // $alt words in lv_list are spelled as o
o (_$w_alt1++ o: // o at the end of internationalisms ($alt1) words is spelled as ō o (_$w_alt1++ o: // o at the end of internationalisms ($alt1) words is spelled as ō
o (L44+ uo // uo postfixes o (L44+ uo // uo postfixes


// Prefixes // Prefixes
_n) o o` // shorter uo for prefix
_n) o uo` // shorter uo for prefix


// international prefixes // international prefixes
_femt) o o _femt) o o
fil) okok okok fil) okok okok
g) ok ok g) ok ok
_k) okako (lL04_ okako: // kokakola _k) okako (lL04_ okako: // kokakola
k) ok (L01 uok // koks
k) ok (L01 uo`k // koks with short uo, because of ambiguity
k) ok (og uok k) ok (og uok
k) okosL01 okos k) okosL01 okos
k) ok (tēl uok k) ok (tēl uok
s) op (r op s) op (r op
st) opo (s_ uopuo // ..stopos st) opo (s_ uopuo // ..stopos
_str) op (L01_ uop // strops _str) op (L01_ uop // strops
_t) op uo`p // top with short uo because of ambiguity
_t) op (āzL01_ op // topāzs _t) op (āzL01_ op // topāzs
_t) op (b op // topbura _t) op (b op // topbura
_t) op (inam op // topinambūrs _t) op (inam op // topinambūrs

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

//tunes s5 c5 q5 e5 //tunes s5 c5 q5 e5
tone 150 220 450 255 750 20 3500 255 tone 150 220 450 255 750 20 3500 255
stressAmp 12 10 10 8 0 0 20 15 stressAmp 12 10 10 8 0 0 20 15
stressLength 180 180 180 160 0 0 250 180
stressLength 160 180 180 140 0 0 250 180

+ 24
- 5
phsource/ph_latvian View File



phoneme a phoneme a
vwl starttype #a endtype #a vwl starttype #a endtype #a
length 120
length 130
FMT(vwl_lv/a, 100) // adjusted from aa_3 FMT(vwl_lv/a, 100) // adjusted from aa_3
endphoneme endphoneme




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




phoneme au phoneme au
vwl starttype #a endtype #u vwl starttype #a endtype #u
length 275
length 290
lng lng
FMT(vdiph/aau, 100) FMT(vdiph/aau, 100)
endphoneme endphoneme


phoneme ei phoneme ei
vwl starttype #e endtype #i vwl starttype #e endtype #i
length 250
length 280
lng lng
FMT(vdiph/eei_2, 100) FMT(vdiph/eei_2, 100)
endphoneme endphoneme
FMT(vdiph2/uaa, 100) FMT(vdiph2/uaa, 100)
endphoneme endphoneme


phoneme o` // shorter version of uo
phoneme uo` // shorter version of uo
vwl starttype #u endtype #a vwl starttype #u endtype #a
length 180 length 180
lng lng
WAV(ustop/tsh,40) WAV(ustop/tsh,40)
endphoneme 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 phoneme n- // more voiced variant of n
vwl starttype #a endtype #a vwl starttype #a endtype #a
ipa nU+0329 ipa nU+0329

Loading…
Cancel
Save