Browse Source

Latvian language improvements (before refactoring spelling of o)

master
Valdis Vitolins 8 years ago
parent
commit
8d9f13c9a5
4 changed files with 456 additions and 283 deletions
  1. 96
    35
      dictsource/lv_list
  2. 335
    242
      dictsource/lv_rules
  3. 1
    1
      espeak-ng-data/voices/xaq/lv
  4. 24
    5
      phsource/ph_latvian

+ 96
- 35
dictsource/lv_list View File

// Spelling-to-phoneme words for Latvian // Spelling-to-phoneme words for Latvian


// names of Latvian letters // names of Latvian letters
a ,a_:
a ,a>_:
ā ,a::_! ā ,a::_!
b b,e:_: b b,e:_:
c ts,e:_: c ts,e:_:
č tS,e:_: č tS,e:_:
d d,e:_: d d,e:_:
e ,e_:
e ,e>_:
ē ,e::_! ē ,e::_!
f ,ef:_: f ,ef:_:
g g,a:_: g g,a:_:
ģ J,e:_: ģ J,e:_:
h h,a:_: h h,a:_:
ḩ h,e:_: ḩ h,e:_:
i ,i_:
i ,i>_:
ī ,i::_! ī ,i::_!
j j,e:_: j j,e:_:
k k,a:_: k k,a:_:
ķ c,e:_: ķ c,e:_:
l ,el:_: l ,el:_:
ļ ,el^:_: ļ ,el^:_:
m ,em:_:
n ,en:_:
ņ ,en^:_:
m ,em_:
n ,en_:
ņ ,en^_:
o ,uo_: o ,uo_:
ō ,o::_! ō ,o::_!
p p,e:_: p p,e:_:
s ,es::_! s ,es::_!
š ,eS::_! š ,eS::_!
t ,te:_: t ,te:_:
u ,u_:
u ,u>_:
ū ,u::_! ū ,u::_!
v v,e:_: v v,e:_:
w d,ubv,e:_: w d,ubv,e:_:
tomēr $u $pause tomēr $u $pause
turpretim $u $2 $pause turpretim $u $2 $pause
turpretī $u $2 $pause turpretī $u $2 $pause
un $u $pause
un $u
uz $u uz $u
vai $u+ $brk vai $u+ $brk
vairs $u vairs $u
var $u+ var $u+
vien $u $brk
vien $u+ $brk
virs $u virs $u
zem $u zem $u


mūsos $u+ mūsos $u+
mūs $u+ mūs $u+
mūsu $u+ mūsu $u+
nedz $u
nez $u
pašai $u+ pašai $u+
pašam $u+ pašam $u+
pašas $u+ pašas $u+
šo $u+ šo $u+
tai $u+ tai $u+
tajās $u+ tajās $u+
tajā $u+
tajā $u+
tajos $u+ tajos $u+
tam $u+ tam $u+
tas $u+ tas $u+
viņus $u+ viņus $u+
viņu $u+ viņu $u+



// exception words with stress on 2nd syllable // exception words with stress on 2nd syllable
aizvien $2
arvien $2
itnekur $3
itnemaz $3
aizvien $u2
arvien $u2
itnekur $u3+
itnemaz $u3+
joprojām $2 joprojām $2
kautko $2 kautko $2
kāpēc $2 $u+
labdien $2 labdien $2
labrīt $2 labrīt $2
labvakar $2 labvakar $2
mazliet $2
nekad $2 $u+
nekam $2 $u+
nekas $2 $u+
nekā $2 $u+
neko $2 $u+
nekur $2 $u+
nemaz $2 $u+
mazliet $u2+
nekad $u2+
nekam $u2+
nekas $u2+
nekā $u2+
neko $u2+
nekur $u2+
nemaz $u2+
neparko $3 neparko $3
pagalam $2
pagalam $u2+
palaikam $2 palaikam $2
paldies $2 paldies $2
papilnam $2 papilnam $2
tāpat $2 tāpat $2
tepat $2 tepat $2
tikpat $2 tikpat $2
tikvien $2
turpat $2
turpretī $2
tikvien $u2+
turpat $u2+
turpretī $u2
vienalga $2
vismaz $2 vismaz $2


// 1st word unstressed, 2nd word stressed // 1st word unstressed, 2nd word stressed
/////////////////// ///////////////////
// Abbreviations // // Abbreviations //
/////////////////// ///////////////////
a/s $abbrev
as $abbrev as $abbrev
b-ba biedRi:ba
ba $abbrev
bba $abbrev
dr $abbrev dr $abbrev
dz $abbrev dz $abbrev
eur 'euR
lp $abbrev lp $abbrev
ls $abbrev ls $abbrev
lu $abbrev lu $abbrev
lvu $abbrev lvu $abbrev
na $abbrev na $abbrev
nra $abbrev
nr $abbrev nr $abbrev
pr-ks $abbrev
prks $abbrev
psrs $abbrev psrs $abbrev
rpi $abbrev rpi $abbrev
sia sia: $pause
sia $abbrev $pause
st $abbrev st $abbrev
sv $abbrev sv $abbrev
šķ $abbrev šķ $abbrev
tml te:em,el: $u $pause
utml ute:e,mel: $u $pause
utt ute:te: $u $pause
tjpr $abbrev $u $pause
tml $abbrev $u $pause
utjpr $abbrev $u $pause
utml $abbrev $u $pause
utt $abbrev $u $pause


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

adadžo $alt $2 adadžo $alt $2
aidaho $alt
aikido $alt aikido $alt
ambo $alt ambo $alt
anno $alt anno $alt
apollo $alt
argo $alt
arno $alt
ateljē $3 ateljē $3
audio $alt
auto $alt
automoto $alt automoto $alt
bandžo $alt bandžo $alt
bendžo $alt bendžo $alt
bordo $alt bordo $alt
borneo $alt borneo $alt
bravo $alt bravo $alt
brno $alt
bruno $alt bruno $alt
bruto $alt bruto $alt
bufalo $alt
burkinafaso $alt $4
čello $alt čello $alt
dekoltē $alt $3 dekoltē $alt $3
depo $alt depo $alt
dingo $alt dingo $alt
domino $alt domino $alt
džudo $alt džudo $alt
ego $alt
eiro $alt
eko $alt
eldorado $alt $3 eldorado $alt $3
embargo $alt $2 embargo $alt $2
esperanto $alt esperanto $alt
euro $alt
fiasko $alt $2 fiasko $alt $2
fito $alt
flamenko $alt $2 flamenko $alt $2
foajē $alt $3 foajē $alt $3
foto $alt
franko $alt
frikasē $alt $3 frikasē $alt $3
galifē $alt $3 galifē $alt $3
google $alt google $alt
hugo $alt
indigo $alt indigo $alt
info $alt
inkognito $alt $3 inkognito $alt $3
intermeco $alt $3 intermeco $alt $3
ivo $alt
kakao $alt $2 kakao $alt $2
kanapē $3 kanapē $3
kastro $alt kastro $alt
kongo $alt kongo $alt
kvatročento $alt kvatročento $alt
lego $alt lego $alt
leo $alt
leporello $alt leporello $alt
lesoto $alt lesoto $alt
loto $alt loto $alt
lumbago $alt lumbago $alt
maestoso $alt
maestro $alt $2 maestro $alt $2
majordomo $alt majordomo $alt
mecotinto $alt mecotinto $alt
mehiko $alt
meteo $alt meteo $alt
metro $alt metro $alt
monako $alt $2 monako $alt $2
moto $alt moto $alt
nato $alt nato $alt
odo $alt odo $alt
odoo $alt
ohaio $alt
oho $alt
ontārio $alt $2 ontārio $alt $2
oracle $alt oracle $alt
oregano $alt $3 oregano $alt $3
oslo $alt oslo $alt
otello $alt $2 otello $alt $2
oto $alt oto $alt
otto $alt
panno $alt panno $alt
peso $alt
pianīno $alt $2 pianīno $alt $2
piano $alt $2 piano $alt $2
pikolo $alt pikolo $alt
pončo $alt pončo $alt
portjē $alt $2 portjē $alt $2
porto $alt porto $alt
positivus $alt
protežē $alt $3 protežē $alt $3
puertoriko $alt $4 puertoriko $alt $4
raivo $alt
rančo $alt rančo $alt
retro $alt retro $alt
riodežaneiro $alt $5 riodežaneiro $alt $5
sonera $alt sonera $alt
sorgo $alt sorgo $alt
stereokino $alt stereokino $alt
stop $alt
storno $alt storno $alt
tehno $alt
tobago $alt $2 tobago $alt $2
topgear $alt
toronto $alt $2 toronto $alt $2
triko $alt triko $alt
trimo $alt trimo $alt
tvnet te:ve:net tvnet te:ve:net
undo $alt
uno $alt uno $alt
ūdenspolo $alt ūdenspolo $alt
veto $alt veto $alt
video $alt
vivo $alt
volvo $alt
žabo $alt žabo $alt
žigolo $alt žigolo $alt


//////////////////////////////////////////
// internationalisms with uo at the end //
//////////////////////////////////////////
blefo $alt2
bohēmisko $alt2
faktisko $alt2
fizioloģisko $alt2
fizisko $alt2
gofrēto $alt2
grafisko $alt2
heksadecimālo $alt2
humāno $alt2
informatīvo $alt2
mehānisko $alt2
neoficiālo $alt2
oficiālo $alt2
psiho $alt2
sērfo $alt2
tehnisko $alt2

+ 335
- 242
dictsource/lv_rules
File diff suppressed because it is too large
View File


+ 1
- 1
espeak-ng-data/voices/xaq/lv View File

pitch 64 118 pitch 64 118
tone 80 100 600 250 900 240 1400 100 tone 80 100 600 250 900 240 1400 100
stressAmp 14 10 14 8 0 0 23 15 stressAmp 14 10 14 8 0 0 23 15
stressLength 180 180 180 160 0 0 220 180
stressLength 180 180 180 160 0 0 230 180

+ 24
- 5
phsource/ph_latvian View File

vowel starttype #a endtype #a vowel starttype #a endtype #a
length 300 length 300
long long
FMT(vwl_lv/aa, 100)
FMT(vwl_lv/aa, 90)
endphoneme endphoneme


phoneme E phoneme E


phoneme au phoneme au
vowel starttype #a endtype #u vowel starttype #a endtype #u
length 250
length 275
long long
FMT(vdiph/aau, 100) FMT(vdiph/aau, 100)
endphoneme endphoneme


phoneme uo phoneme uo
vowel starttype #u endtype #a vowel starttype #u endtype #a
length 250
length 260
long
FMT(vdiph2/uaa, 100)
endphoneme

phoneme u0 // shorter version of uo
vowel starttype #u endtype #a
length 180
long long
FMT(vdiph2/uaa, 100) FMT(vdiph2/uaa, 100)
endphoneme endphoneme
phoneme c phoneme c
vls pal stop palatal vls pal stop palatal
voicingswitch J voicingswitch J
lengthmod 2
WAV(ustop/c, 90)
WAV(ustop/c, 80)
endphoneme

phoneme > // lengthen previous vowel by only 10ms
virtual
length 10
endphoneme

phoneme . // Tiny, 5ms non-linked pause
pause
starttype _ endtype _
lengthmod 1
nolink
length 5
endphoneme endphoneme


// TODO should use this with correct lengthening // TODO should use this with correct lengthening

Loading…
Cancel
Save