Browse Source

Latvian language improvements

master
Valdis Vitolins 8 years ago
parent
commit
47e1a2b43a
4 changed files with 72 additions and 25 deletions
  1. 4
    0
      dictsource/lv_list
  2. 56
    20
      dictsource/lv_rules
  3. 4
    5
      espeak-ng-data/voices/bat/lv
  4. 8
    0
      phsource/ph_latvian

+ 4
- 0
dictsource/lv_list View File

frikasē $alt $3 frikasē $alt $3
galifē $alt $3 galifē $alt $3
geto $alt geto $alt
go $alt
google $alt google $alt
halo $alt
hallo $alt
hugo $alt hugo $alt
indigo $alt indigo $alt
info $alt info $alt
odoo $alt odoo $alt
ohaio $alt ohaio $alt
oho $alt oho $alt
ok $alt
ontārio $alt $2 ontārio $alt $2
oracle $alt oracle $alt
oregano $alt $3 oregano $alt $3

+ 56
- 20
dictsource/lv_rules View File

.L17 ai ais am ā ām ās ie iem o os // suffixes of certain adjectives finishing with ..ējais .L17 ai ais am ā ām ās ie iem o os // suffixes of certain adjectives finishing with ..ējais
.L18 am āk i u ot ēt os // suffixes of adverbs (apstākļa vārdi) .L18 am āk i u ot ēt os // suffixes of adverbs (apstākļa vārdi)


.L20 ~ ne // optional negation prefix

// +---------------------------+ // +---------------------------+
// | Pronunciation of e and ē | // | Pronunciation of e and ē |
// +---------------------------+ // +---------------------------+
.L21 i ī ie ei y // vowel narrowers of e .L21 i ī ie ei y // vowel narrowers of e
.L22 č ģ j k ļ ņ ŗ š ž dž bj pj mj vj // consonant narrowers of e .L22 č ģ j k ļ ņ ŗ š ž dž bj pj mj vj // consonant narrowers of e
.L23 s i m // remaining ending of the 2. and 5. decl. words .L23 s i m // remaining ending of the 2. and 5. decl. words
.L27 č e ē f ģ h ḩ i ī j k ļ ņ q ŗ š w x y ž ei ie iu // all narrowers of e
.L27 č e ē f ģ h ḩ i ī j k ļ ņ q ŗ š w x y ž ei ie iu // all narrowers of e
// Also: .L41 — international consonants and diphthongs as a narrowers of e/ē // Also: .L41 — international consonants and diphthongs as a narrowers of e/ē


// E wideners // E wideners


// Default rules for o with succeeding consonants // Default rules for o with succeeding consonants
.L40 č ģ ķ ļ ņ ŗ š ž // uo indicators — o is spelled as uo in words with Latvian soft consonants .L40 č ģ ķ ļ ņ ŗ š ž // uo indicators — o is spelled as uo in words with Latvian soft consonants
.L41 eo f h ḩ io y q w x // o indicators — o is spelled as ȯ in words with Latin letters, also narrowers of e/ē
.L41 eo f h ḩ io y q w x // o indicators — o is spelled as ȯ in words with Latin letters, also narrowers of e/ē
.L42 e i o ng // o prefixes (no a, because of sao.., pao... where o is uo) .L42 e i o ng // o prefixes (no a, because of sao.., pao... where o is uo)
.L43 lg ng rb zn ļš ss // o postfixes .L43 lg ng rb zn ļš ss // o postfixes
.L44 gļ kļ šņ jā // uo postfixes .L44 gļ kļ šņ jā // uo postfixes
dž (L61 DZ dž (L61 DZ


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


// narrow e ---------------------------------------------------------------------- // // narrow e ---------------------------------------------------------------------- //
e (L10L10L41+ e e (L10L10L41+ e
e (L10L41++ e e (L10L41++ e
e (L41+++ e e (L41+++ e
L41) e (@ e // narrow only if there is another syllable for ending
L41) e (@ e // narrow only if there is another syllable for ending
L41L10) e (@ e L41L10) e (@ e
L41L10L10) e (@< e L41L10L10) e (@< e
L41L10L10L10) e (@<< e L41L10L10L10) e (@<< e
@) e (rL02_ e // -ris @) e (rL02_ e // -ris
@) e (rL05_ e // -re @) e (rL05_ e // -re


e (CL05_ e // 5. decl. words
e (CCL05_< e
e (CCCL05_<< e
e (L10L05_+ e
e (L10L10L05_ e
e (L10L10L10L05_< e
e (L10L10L10L10L05_<< e

// wide e ------------------------------------------------------------------------ // // wide e ------------------------------------------------------------------------ //
// widening consonants follow // widening consonants follow
e (L25 E e (L25 E
L25) e (L18_+ E // vareni etc. L25) e (L18_+ E // vareni etc.


// specific words ----------------------------------------------------------------- // // specific words ----------------------------------------------------------------- //
// āb) e (L77L05_ e // ābele
b) e (dL82L05_ e // bedre b) e (dL82L05_ e // bedre
_b) e (t_ e _b) e (t_ e
_b) e (z e _b) e (z e
_) e (lgL04_ e // Elga _) e (lgL04_ e // Elga
_) e (lzL04_ e // Elza _) e (lzL04_ e // Elza
ene (r ene ene (r ene
_) e (sam_+ e // esam
_) e (sat_+ e // esat
_L20) e (sam_+ e // esam
_L20) e (sat_+ e // esat
_) e (s_ e // es _) e (s_ e // es
_) e (si_ e // esi
_) e (smu_ e // esmu
_L20) e (si_ e // esi
_L20) e (smu_ e // esmu
g) e (t e g) e (t e
ģ) enē (z ene: ģ) enē (z ene:
int) e (r e int) e (r e
_v) e (ltL04_ e // Velta _v) e (ltL04_ e // Velta
_z) e (lmL04_ e // Zelma _z) e (lmL04_ e // Zelma
_z) e (m e _z) e (m e
// z) eme (L80L05_ 'e'me // zemene


.group ē .group ē
ē e: // Default as narrow ē ē e: // Default as narrow ē
i) ē (++ e:


// narrow ē ---------------------------------------------------------------------- // // narrow ē ---------------------------------------------------------------------- //
// narrowing international consonants // narrowing international consonants
ē (L10L10L10L41 e:
ē (L10L10L41 e:
ē (L10L41 e:
ē (L41+ e:
L41) ē (@ e: // narrow only if there is another syllable for ending
ē (L10L10L10L41 e:
ē (L10L10L41 e:
ē (L10L41 e:
ē (L41+ e:
L41) ē (@ e: // narrow only if there is another syllable for ending
L41L10) ē (@ e: L41L10) ē (@ e:
L41L10L10) ē (@< e: L41L10L10) ē (@< e:
L41L10L10L10) ē (@<< e: L41L10L10L10) ē (@<< e:
L41L10L10L10L10) ē (@<<< e:
// narrowing vowels follow // narrowing vowels follow
ē (CCCCL21 e: ē (CCCCL21 e:
ē (CCCL21 e: ē (CCCL21 e:
ē (L01_ E: ē (L01_ E:
ē (L25L01_ E: ē (L25L01_ E:
ē (L25L25L01_ E: ē (L25L25L01_ E:
// 5. dec. words
ē (CL05_ e:
ē (CCL05_< e:
ē (CCCL05_<< e:
ē (L10L05_+ e:
ē (L10L10L05_ e:
ē (L10L10L10L05_< e:
ē (L10L10L10L10L05_<< e:



// specific words ------------------------------------------------------------------- // // specific words ------------------------------------------------------------------- //
b) ē (g@ e: b) ē (g@ e:
cilv) ē (L75 E: cilv) ē (L75 E:
_d) ē (ļ_ e:
d) ē (ļ_+ e:
d) ē (vē e: d) ē (vē e:
dv) ēse (L77 e:se dv) ēse (L77 e:se
ēdē e:de: ēdē e:de:
ē (tL55_ E: ē (tL55_ E:
izp) ē (t e: izp) ē (t e:
_kāp) ē (c_ e: // kāpēc _kāp) ē (c_ e: // kāpēc
m) ēbe (L77 e:be
m) ēne (L83L01_ e:ne // mēness m) ēne (L83L01_ e:ne // mēness
m) ēne (L83L02_ e:ne // mēnesis m) ēne (L83L02_ e:ne // mēnesis
m) ē (rķ e: m) ē (rķ e:
sp) ē (kL01 E: // ..spēks sp) ē (kL01 E: // ..spēks
sp) ē (L65 e: // spēt sp) ē (L65 e: // spēt
sp) ē (L77 e: sp) ē (L77 e:
sv) ē (tk E:
šķ) ē (L77L05_ e: // šķēle šķ) ē (L77L05_ e: // šķēle
šķ) ē (L82L05_ e: // šķēre šķ) ē (L82L05_ e: // šķēre
_tāp) ē (c_ e: // tāpēc _tāp) ē (c_ e: // tāpēc
_C) o (_+ o` // shorter version of uo for particles _C) o (_+ o` // 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 ō
L56) o (_ o: // ō at the end of ..ao, ..eo, ..io, ..uo L56) o (_ o: // ō at the end of ..ao, ..eo, ..io, ..uo
L42) o o: // o prefixes L42) o o: // o prefixes
o (L43+ o // o postfixes o (L43+ o // o postfixes
oL10L10) o (lL01_< o: oL10L10) o (lL01_< o:
oL10) o (lL01_ o: oL10) o (lL01_ o:


L41L10L10L10sk) o (pL01_ o: // ...skops
L41L10L10sk) o (pL01_ o:
L41L10sk) o (pL01_ o:
o (L62% o





aer) o o: aer) o o:
agn) o o agn) o o
ekspl) o o ekspl) o o
ekvin) o o ekvin) o o
elektr) o o: elektr) o o:
ez) o o>
energ) o o: energ) o o:
enL87) o o enL87) o o
ent) o (@ o ent) o (@ o
gn) o o gn) o o
g) o (L66 o: g) o (L66 o:
gon) o o gon) o o
iez) o uo
ilg) o (L80L02_ uo // Ilgonis ilg) o (L80L02_ uo // Ilgonis
_ind) o o _ind) o o
indukt) o o indukt) o o
iv) o o iv) o o
iz) o o iz) o o
jān) o (+ uo jān) o (+ uo
j) o (L90++ uo
_j) o (_ uo _j) o (_ uo
kaif) o (L65 uo kaif) o (L65 uo
kain) o o kain) o o
niek) o uo niek) o uo
nik) o o nik) o o
_n) o (L41 uo _n) o (L41 uo
n) o (L88 uo
okean) o o okean) o o
okt) o o: okt) o o:
o (L50 o o (L50 o
rib) on (uk on rib) on (uk on
s) on on s) on on
sp) on on sp) on on
t) on (edēļ uon
_t) on (ijL04_ on // Tonija _t) on (ijL04_ on // Tonija
t) on (ikL04_ o:n // ..tonika t) on (ikL04_ o:n // ..tonika
t) on (isk o:n t) on (isk o:n
z) oo oo: z) oo oo:


.group op .group op

L41L10L10L10sk) op (L01_ o: // ...skops
L41L10L10sk) op (L01_ o:
L41L10sk) op (L01_ o:

ad) op op ad) op op
cikl) op (L01_ o:p // ciklops cikl) op (L01_ o:p // ciklops
d) op op d) op op
_b) or (isL01_ oR // Boriss _b) or (isL01_ oR // Boriss
b) or (s o:R b) or (s o:R
b) or (t oR b) or (t oR
dat) or o:R
d) or (i oR d) or (i oR
_gl) or (ijL04_ o:R // Glorija _gl) or (ijL04_ o:R // Glorija
gl) or (i oR gl) or (i oR
š) os (ej os š) os (ej os
_t) os (te os _t) os (te os
_t) os (tL01_ os // tosts _t) os (tL01_ os // tosts
_z) os (L06_ uos // zoss


.group ot .group ot
an) ot ot an) ot ot

+ 4
- 5
espeak-ng-data/voices/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 0
breathw 160 250 400 100 600 20 1000 1 2000 0
//formant 0 80 100 100 -10
breath 5 2 0 0 0 1
breathw 20 40 500 1200
formant 1 95 100 100 -5 formant 1 95 100 100 -5
//tunes s5 c5 q5 e5 //tunes s5 c5 q5 e5
tone 150 220 450 255 850 10 4000 250
stressAmp 14 10 10 8 0 0 22 15
tone 150 220 450 255 850 10 3500 255
stressAmp 14 10 10 8 0 0 20 15
stressLength 180 180 180 160 0 0 230 180 stressLength 180 180 180 160 0 0 230 180

+ 8
- 0
phsource/ph_latvian View File

WAV(ustop/tsh,40) WAV(ustop/tsh,40)
endphoneme endphoneme


phoneme n-
vowel starttype #a endtype #a
ipa nU+0329
lengthmod 4
length 120
FMT(n/n-syl)
endphoneme

phoneme R // Latvian hard r phoneme R // Latvian hard r
liquid liquid
trill trill

Loading…
Cancel
Save