Browse Source

Merge branch 'upstream' into development

Conflicts:
	dictsource/dict_phonemes
	phsource/compile_report
master
Reece H. Dunn 12 years ago
parent
commit
2db0566941

+ 133
- 3
dictsource/an_list View File

// Aragon translation rules // Aragon translation rules
// This file is UTF-8 encoded // This file is UTF-8 encoded


// letters

_cap m'aJ^uskla // should be after the letter
_?? simb'Olo
_#32 Esp'aTjo


// accent names
_lig liQaD'ura
_acu akT'ento aQ'uDo
_ac2 d'Ople||aQ'uDo
_brv br'eu
_ced TeD'il^a
_cir Tirkumfl'ekso
_dia djEr'esi
_dac d'Ople||aQ'uDo
_dot p'unto
_grv gr'iEu
_hac kar'On
_mcn makr'On
_ogo kod'eta
_rng an'iel^o
_stk b'aRR2a // ??
_tld t'il^a




// letter names // letter names
y i $u // word 'and' y i $u // word 'and'
_y je _y je
y je $atend y je $atend
ch tSe
ll 'El^e
á 'a||akTEntw'aDa
é 'e||akTEntw'aDa
í 'i||akTEntw'aDa
_ó 'o||akTEntw'aDa
ú 'u||akTEntw'aDa
ü ,uDjEr'Esi




// numbers // numbers
_3X tr'enta _3X tr'enta
_4X kwar'anta _4X kwar'anta
_5X Tinkw'anta _5X Tinkw'anta
_6X siks'anta
_6X siS'anta
_7X set'anta _7X set'anta
_8X gwit'anta _8X gwit'anta
_9X noB'anta _9X noB'anta
_8C gwitoTj'Entos _8C gwitoTj'Entos
_9C nowTj'Entos _9C nowTj'Entos
_0M1 m'il _0M1 m'il
_1M1 m'il
_0M2 mil^'ons _0M2 mil^'ons
_1M2 un||mil^'on _1M2 un||mil^'on
_0M4 bil^'ons _0M4 bil^'ons
_dpt kon _dpt kon




// ordinal numbers
_#º 'eno
_#ª 'ena
//_ord eno

_1o un
1o prim'Er
_2o dos
2o seQ'und
_3o tres
3o tErT'Er
_4o kwatr
_5o Tink
_6o seIs
_7o sEt
_8o gwit
_9o n'U
_10o DET
_11o onT
_12o DoT
_13o tReT
_14o katorT
_15o kinT
_16o sET
_1Xo DeTi
_20o Bint
_2Xo Binti
_30o trent
_3Xo trentaI
_40o kwarant
_4Xo kwarantaI
_50o Tinkwant
_5Xo TinkwantaI
_60o siSant
_6Xo siSantaI
_70o sEtant
_7Xo sEtantaI
_80o gwitant
_8Xo gwitantaI
_90o noBant
_9Xo noBantaI
_0Co TEnt
_1Co TEnt
_0M1o mil
_1M1 mil
_0M2o mil^on
_1M2o mil^on


// unstressed words // unstressed words
o $u
o $atend
a $u
a $atend
os $u
os $atend
as $u
as $atend

lo $u lo $u
la $u la $u
los $u los $u
te $u te $u
se $u se $u
le $u le $u
les $u
li $u
nos $u
mos $u
tos $u
vos $u
os $u
les $u
lis $u

// exceptions
holio x'olio
jazz dZ'as


// Foreign words
android andr'oId
apple 'apEl
at 'at
chat tS'at
chrome kr'ome
espeak isp'ik
(e speak) isp'ik
facebook f'eIsbuk
firefox f'aIrfoks
google g'ugEl
(i phone) 'aIfon
iphone 'aIfon
(i pod) 'aIpod
ipod 'aIpod
hardware x'ardwer
live l'aIB
messenger m'esendZer
mozilla moT'ila
nvda ene|be|de|'a
office 'ofis
skype esk'aIp
software s'oftwer
thunderbird Tanderb'ird
twitter tw'iter
whatsapp was'app
windows w'indows

+ 114
- 97
dictsource/an_rules View File

// Aragon translation rules // Aragon translation rules
// This file is UTF-8 encoded // This file is UTF-8 encoded



.L01 l r y .L01 l r y
.L03 f h j s y z r // allow [B] [D] [Q] before these consonants .L03 f h j s y z r // allow [B] [D] [Q] before these consonants
.L04 b v f p // labials, nasals are [m] .L04 b v f p // labials, nasals are [m]




.group a .group a
a a
ai aI
ai (X 'aI
ay (K aI
ay (X 'aI
au aU
au (X 'aU
a a
aix aS
ai aI
ai (X 'aI
ay (K aI
ay (X 'aI
au aU
au (X 'aU




.group b .group b
b b b b
_) b b // phoneme definition may change it to [B]
_) b b // phoneme definition may change it to [B]
_) b (A b _) b (A b
b (A B b (A B
b (cY B b (cY B




.group c .group c
c k
c (Y T // ce ci
cc kT
ch tS
c k
c (Y T // ce ci
ck k // Forano (Foreign)
ch tS




.group d .group d
d d d d
_) d d // phoneme definition may change it to [D]
_) d d // phoneme definition may change it to [D]
_) d (A d _) d (A d
d (A D d (A D
d (cY D d (cY D
l) d d l) d d
r) d d r) d d


n) d (_ = // silent, but stress on last vowel
n) d (_ = // silent, but stress on last vowel




.group e .group e
e e
ei eI
ei (X 'eI
ey (K eI
ey (X 'eI
eu eU
eu (X 'eU
i) e E
u) e E
y) e E
e e
eix eS
ei eI
ei (X 'eI
ey (K eI
ey (X 'eI
eu eU
eu (X 'eU
i) e E
u) e E
y) e E




.group f .group f
f f
f f




.group g .group g
g g g g
_) g g // phoneme definition may change it to [Q]
_) gh (A g // allow _gh in foreign words
gü gw
_) gh (A g // allow _gh in foreign words
_) gn (A n _) gn (A n
_) g (A g
g (A Q g (A Q
g (cY Q g (cY Q
g (L03 Q g (L03 Q
m) g g m) g g
n) g g n) g g
g (Y+ x // ge gi
gu (A gw
gü gw
gu (e g
gu (i g
g (Y+ x // ge gi
gu (A gw
gu (e g
gu (i g
gu (é g
gu (í g




.group h .group h
h // silent
h // silent




.group i .group i
i i
i (A j
A) ix S
_) ix iS
i i
i (u i
i (A j




.group j .group j
j x
j x




.group k .group k
k k
k k


.group l .group l
l l
ll l^
l l
ll l^
ll (_ l




.group m .group m
m m
m m




.group n .group n
n n
n (L04 m
n (_L04 m
ny n^
n n
n (L04 m
n (_L04 m
ny n^




.group ñ .group ñ
ñ n^
ñ n^




.group o .group o
o o
oi oI
oi (X 'oI
oy (K oI
oy (X 'oI
ou ow
ou (X 'ow
i) o O
u) o O
y) o O
o o
oix oS
oi oI
oi (X 'oI
oy (K oI
oy (X 'oI
ou ow
ou (X 'ow
i) o O
u) o O
y) o O


.group p .group p
p p
p p
_) ps s




.group q .group q
qu (A kw
qü kw
qu (e k
qu (i k

qu (A kw
qü kw
qu (e k
qu (i k
qu (é k
qu (í k


.group r .group r
r r
_) r R
rr RR2
@) r (- = // followed by hyphen. Silent, but stress on last vowel
rs (_ =s

r r
r (_ r
r (t r
A) r (A r
C) r (A r
_) r (A R
l) r (A R
m) r (A R
n) r (A R
s) r (A R
rr RR2
@) r (- = // followed by hyphen. Silent, but stress on last vowel
rs (_ =s




.group s .group s
s s
&) s (_S1 s
s s
&) s (_S1 s




.group t .group t
t t
a) t (_ t# // becomes silent in a stressed syllable
u) t (_ t#
ei) t (_ t#
n) t (_ = // silent, but stress on last vowel
tz T
t t
a) t (_ t# // becomes silent in a stressed syllable
u) t (_ t#
ei) t (_ t#
n) t (_ = // silent, but stress on last vowel
tz T
ue) t (_ t#
ui) t (_ t#
s) t (_ = // silent, but stress on last vowel




.group u .group u
u u
u (A w
_) u (A gw
u u
u (u u
u (i u
u (A w
_) u (A gw
uix uS





.group v // same as 'b' .group v // same as 'b'
v b v b
_) v b // phoneme definition may change it to [B]
_) v b // phoneme definition may change it to [B]
_) v (A b _) v (A b
v (A B v (A B
v (cY B v (cY B




.group w .group w
w w
w B




.group x .group x
x ks
_) x S
x ks
_) x S
i) x S


.group y .group y
y j
y j
y (_ i


.group z .group z
z T
z T




.group .group
á ''a
é ''e
í ''i
ó ''o
ú ''u
á ''a
é ''e
í ''i
ó ''o
ú ''u



+ 2
- 0
dictsource/en_rules View File

o (blo 0 o (blo 0
_r) o (bo oU _r) o (bo oU
_) o (bs %0 _) o (bs %0
?3 _) o (bs %0#
_) obs (er %0bz _) obs (er %0bz
obso (l 0bs@ obso (l 0bs@
o (bstin 0 o (bstin 0
_) o (bt %0 _) o (bt %0
?3 _) o (bt %0#
o (by_ oU o (by_ oU
f) o (cA oU f) o (cA oU
_l) o (cA oU _l) o (cA oU

+ 1
- 1
dictsource/fr_rules View File

oin (_ wE~ // coin oin (_ wE~ // coin
oi wa // poil oi wa // poil
oê (l wa // poêle oê (l wa // poêle
om (L11 O~ // bombe, pompe
om (L11e O~ // bombe, pompe
om (t O~ // comte om (t O~ // comte
n) om (X O~ // nom n) om (X O~ // nom
om (_ Om // www.web.com om (_ Om // www.web.com

+ 14
- 3
dictsource/pt_list View File

assembleia $alt assembleia $alt
ateia $alt ateia $alt
aterro $alt2 $noun aterro $alt2 $noun
aterros $alt2
atmosfera $alt atmosfera $alt
atrozes $alt atrozes $alt
autora $alt2 autora $alt2
chupeta $alt2 chupeta $alt2
clamores $alt2 clamores $alt2
clero $alt clero $alt
crepe $alt
coco $alt2 coco $alt2
cofre $alt cofre $alt
cogumelo $alt cogumelo $alt
desespero $alt2 $noun desespero $alt2 $noun
desfecho $alt2 desfecho $alt2
desprezo $alt2 $noun desprezo $alt2 $noun
desse $alt2
desse $alt $verb
deste $alt2
deste $alt $verb
desterro $alt2
deveras $alt deveras $alt
dez $alt dez $alt
diarreia $alt diarreia $alt
discordo $alt discordo $alt
dissermos $alt
dobro $alt2 $noun dobro $alt2 $noun
doce $alt2 doce $alt2
doutora $alt2 doutora $alt2
esboço $alt $verb esboço $alt $verb
escopeta $alt2 escopeta $alt2
escova $alt2 $noun escova $alt2 $noun
escovo $alt
escroto $alt2 escroto $alt2
esforço $alt $verb esforço $alt $verb
esforços $alt esforços $alt
fogos $alt fogos $alt
foguete $alt2 foguete $alt2
foice $alt2 foice $alt2
fora $alt
fora $alt2 $verb
forca $alt2 forca $alt2
força $alt2 $noun força $alt2 $noun
forças $alt2 forças $alt2
forço $alt forço $alt
fordes $alt2
fores $alt2
fossem $alt2
forro $alt $verb forro $alt $verb
fosse $alt2 fosse $alt2
frevo $alt2 frevo $alt2
provo $alt provo $alt
quarteto $alt2 quarteto $alt2
queda $alt queda $alt
quede $alt2
quinteto $alt2 quinteto $alt2
recomeço $alt2 $noun recomeço $alt2 $noun
recordo $alt recordo $alt
rock $alt rock $alt
rola $alt2 $noun rola $alt2 $noun
rolo $alt2 $noun rolo $alt2 $noun
rota $alt2
rota $alt $noun
rumores $alt2 rumores $alt2
saleta $alt2 saleta $alt2
sarjeta $alt sarjeta $alt

+ 14
- 6
dictsource/pt_rules View File

_quis) e (L05_ E _quis) e (L05_ E
_soub) e (L05_ E _soub) e (L05_ E
proteg) e (L05_ e // des- proteg) e (L05_ e // des-
diss) e (L06_ E / contra-
tend) e (L06_ e // a- con- en- es- tend) e (L06_ e // a- con- en- es-
_mord) e (L06_ e _mord) e (L06_ e
_rend) e (L06_ e _rend) e (L06_ e
preend) e (L06_ e // com- a- re- sur- preend) e (L06_ e // com- a- re- sur-
respond) e (L06_ e // cor- respond) e (L06_ e // cor-
bat) e (L07_ e // re- com- bat) e (L07_ e // re- com-
ceb) e (L07_ e / re- per- con-
ced) e (L07_ e // pro- con- su- ced) e (L07_ e // pro- con- su-
met) e (L07_ e // co- pro- arre- re- intro- compro- sub- met) e (L07_ e // co- pro- arre- re- intro- compro- sub-
mov) e (L07_ e // re- co- mov) e (L07_ e // re- co-
_endurec) e (L07_ e _endurec) e (L07_ e
_enlouquec) e (L07_ e _enlouquec) e (L07_ e
_enraivec) e (L07_ e _enraivec) e (L07_ e
_entorpec) e (L07_ e
_entristec) e (L07_ e _entristec) e (L07_ e
_envaidec) e (L07_ e _envaidec) e (L07_ e
_envelhec) e (L07_ e _envelhec) e (L07_ e
_escurec) e (L07_ e _escurec) e (L07_ e
_espairec) e (L07_ e _espairec) e (L07_ e
_esquec) e (L07_ e _esquec) e (L07_ e
_estremec) e (L07_ e
_interromp) e (L07_ e _interromp) e (L07_ e
_perec) e (L07_ e _perec) e (L07_ e
_rejuvenec) e (L07_ e _rejuvenec) e (L07_ e
qu) e (brL04_ E qu) e (brL04_ E
_hosp) e (dL03_ E _hosp) e (dL03_ E
_gr) e (gL03_ e _gr) e (gL03_ e
_gal) e (gL03_ e
_n) e (grL03_ e _n) e (grL03_ e
_estr) ei (L03_ EI _estr) ei (L03_ EI
_inv) e (jL04_ E _inv) e (jL04_ E
acel) e (rL04_ E // des- acel) e (rL04_ E // des-
_coop) e (rL04_ E _coop) e (rL04_ E
_temp) e (rL04_ E _temp) e (rL04_ E
_recup) e (rL04_ E
_v) e (rbL03_ E _v) e (rbL03_ E
_p) e (rdL02_ E _p) e (rdL02_ E
_l) e (rdL03_ E _l) e (rdL03_ E
_d) e (vL03_ e _d) e (vL03_ e
scr) e (vL03_ e // e- in- pre- ree- de- scr) e (vL03_ e // e- in- pre- ree- de-
_atr) e (vL03_ e _atr) e (vL03_ e
pr) e (zL04_ E // des- menos-
_r) e (zL04_ E
pr) e (zL04_ E / des- menos-
_embel) e (zL04_ E _embel) e (zL04_ E
_acont) e (çL01_ e
_arref) e (çL01_ e
_emagr) e (çL03 _emagr) e (çL03
pr) e (çL03_ e // a- pr) e (çL03_ e // a-
aqu) e (çL03_ e / re-
mer) e (çL03_ e // des- mer) e (çL03_ e // des-
pad) e (çL03_ e // com- pad) e (çL03_ e // com-
par) e (çL03_ e // a- re- com- rea- desa- par) e (çL03_ e // a- re- com- rea- desa-
_ado) e (çL03_ e _ado) e (çL03_ e
_aqu) e (çL03_ e
_car) e (çL03_ e _car) e (çL03_ e
_per) e (çL03_ e_ _per) e (çL03_ e_
conh) e (çL03_ e // re- conh) e (çL03_ e // re-
_ofer) e (çL03_ e _ofer) e (çL03_ e
abast) e (çL03_ e // re- abast) e (çL03_ e // re-
_aborr) e (çL03_ e _aborr) e (çL03_ e
_acont) e (çL03_ e
_agrad) e (çL03_ e _agrad) e (çL03_ e
_amanh) e (çL03_ e _amanh) e (çL03_ e
_amort) e (çL03_ e _amort) e (çL03_ e
_anoit) e (çL03_ e _anoit) e (çL03_ e
_arref) e (çL03_ e
_desguarn) e (çL03_ e _desguarn) e (çL03_ e
_desguarnec) e (çL03_ e _desguarnec) e (çL03_ e
_enfraqu) e (çL03_ e _enfraqu) e (çL03_ e
?1 v) o (lt O ?1 v) o (lt O


//sort //sort
_f) o (L06_ o
_engl) o (bL01_ O _engl) o (bL01_ O
_s) o (bL02_ O _s) o (bL02_ O
_esn) o (bL04_ O _esn) o (bL04_ O
_r) o (snL04_ O _r) o (snL04_ O
_c) o (spL02_ O _c) o (spL02_ O
p) ostos (_ Ost=Us# // dispostos etc. p) ostos (_ Ost=Us# // dispostos etc.
_gar) o (tL03_ o
_g) o (zL04_ O _g) o (zL04_ O
_ad) o (çL03_ O _ad) o (çL03_ O
_end) o (çL03_ O _end) o (çL03_ O
r (C *@- r (C *@-
A) r (A * A) r (A *
A) r (_A * A) r (_A *
rr rx
rr x
XC) r (A R XC) r (A R
C) r (A * C) r (A *
//?1 C) r (A r
_) r x _) r x
l) r x l) r x
n) r (+ x n) r (+ x

+ 3
- 3
dictsource/ta_list View File





// speak Latin letters as English // speak Latin letters as English
a e:j
a e:j $atend
b bi: b bi:
c si: c si:
d di: d di:
f Ef f Ef
g dZi: g dZi:
h e:tS h e:tS
i a:j
i a:j $atend
j dZe:j j dZe:j
k ke:j k ke:j
l El l El
கிர் $alt கிர் $alt
கங்க $alt கங்க $alt
காந்த $alt காந்த $alt
கேம் $alt







+ 15
- 0
dictsource/ta_rules View File

_) கி (ளாமர g _) கி (ளாமர g
_) கி (ளாஸ்_ g _) கி (ளாஸ்_ g
_) கி (ளாஸ்_மேட k _) கி (ளாஸ்_மேட k
_) கிளாஸ்க (ோ gl.a:sg
_) கிளிக் (_L29 kl.ik _) கிளிக் (_L29 kl.ik
_) கிளிட kl.it.V# _) கிளிட kl.it.V#
_) கிளிண்ட (ன klint.V _) கிளிண்ட (ன klint.V
_) க (ேட்டைக் g _) க (ேட்டைக் g
_) க (ேட்டைத் g _) க (ேட்டைத் g
_) க (ேட்டைப் g _) க (ேட்டைப் g
_) க (ேமை g
_) க (ேம்ஸ g _) க (ேம்ஸ g
_) கேரண்ட ge:rVn.t.V# _) கேரண்ட ge:rVn.t.V#
_) க (ேலரி g _) க (ேலரி g
அ) க (ாடமி k அ) க (ாடமி k
_நேர்) க (ாணல k _நேர்) க (ாணல k
_கண்) க (ாணா k _கண்) க (ாணா k
_கர்ம) க (ாண்ட g
உத்திரா) க (ாண்ட k உத்திரா) க (ாண்ட k
_ராம) க (ாதை k _ராம) க (ாதை k
இராம) க (ாதை k இராம) க (ாதை k
_வரதா) ச (ாரி tS _வரதா) ச (ாரி tS
_வேதா) ச (ாரி tS _வேதா) ச (ாரி tS
_கிருஷ்ணமா) ச (ாரி tS _கிருஷ்ணமா) ச (ாரி tS
_சங்கரா) ச (ாரி tS
_தேசிகா) ச (ாரி tS _தேசிகா) ச (ாரி tS
_பட்டா) ச (ாரி tS _பட்டா) ச (ாரி tS
_பிரம்ம) ச (ாரி tS
_மத்வா) ச (ாரி tS _மத்வா) ச (ாரி tS
அனந்தா) ச (ாரி tS அனந்தா) ச (ாரி tS
அன்னமா) ச (ாரி tS அன்னமா) ச (ாரி tS
ராமானுஜா) ச (ாரி tS
ஆ) ச (ாரிய_ tS ஆ) ச (ாரிய_ tS
ஆ) ச (ாரியார tS ஆ) ச (ாரியார tS
அ) ச (ாருதீன z அ) ச (ாருதீன z
_மால) த (ி t _மால) த (ி t
_ரேவ) த (ி t _ரேவ) த (ி t
_வசந்) த (ி t _வசந்) த (ி t
அவந்) த (ி t
வாசந்) த (ி t வாசந்) த (ி t
_கோம) த (ி t _கோம) த (ி t
ஜெயந்) த (ி t ஜெயந்) த (ி t
_) ப (ாவேய b _) ப (ாவேய b
_) ப (ாவ்நகர b _) ப (ாவ்நகர b
_) ப (ாஷாக்கள b _) ப (ாஷாக்கள b
_) ப (ாஷாபிமான b
_) ப (ாஷாவ b _) ப (ாஷாவ b
_) ப (ாஷிய b _) ப (ாஷிய b
_) ப (ாஷை b _) ப (ாஷை b
_) ப (ோதகன b _) ப (ோதகன b
_) ப (ோதகர b _) ப (ோதகர b
_) ப (ோதன b _) ப (ோதன b
_) ப (ோதம b
_) ப (ோதிக்க b _) ப (ோதிக்க b
_) ப (ோதிசத் b _) ப (ோதிசத் b
_) ப (ோதிசத்வ b _) ப (ோதிசத்வ b
_) ப (ோர்_அடி b _) ப (ோர்_அடி b
_) ப (ோர்ஜரி f _) ப (ோர்ஜரி f
_) ப (ோர்டL31 b _) ப (ோர்டL31 b
_) ப (ோர்டு b
_) ப (ோர்ட்டிகோ p
_) ப (ோர்தான்_அடி b _) ப (ோர்தான்_அடி b
_) ப (ோர்மேன f _) ப (ோர்மேன f
_) ப (ோர்வெல் b _) ப (ோர்வெல் b
ஆ) ப (ரேஷன pV ஆ) ப (ரேஷன pV
_கார்) ப (ரேஷன pV _கார்) ப (ரேஷன pV
_பம்) ப (ர்_ pV _பம்) ப (ர்_ pV
அ) ப (ர்ணா pV
_கன்) ப (ர்ம fV _கன்) ப (ர்ம fV
இன்) ப (ர்ம fV இன்) ப (ர்ம fV
கரம்) ப (ற் pV கரம்) ப (ற் pV
இம்) ப (ால f இம்) ப (ால f
இரு) ப (ால p இரு) ப (ால p
ஒரு) ப (ால p ஒரு) ப (ால p
_தங்க) ப (ால b
ஆண்) ப (ால p ஆண்) ப (ால p
_பெண்) ப (ால p _பெண்) ப (ால p
L03தன்) ப (ால p L03தன்) ப (ால p
கம்) ப்யூட (ர pjU:t.V கம்) ப்யூட (ர pjU:t.V
_பெர்) ப் (யூம f _பெர்) ப் (யூம f
_யூ) ப்ரட (ீஸ frVt. _யூ) ப்ரட (ீஸ frVt.
_சு) ப் (ரியா p
_ஸ்ரீ) ப் (ரியா p _ஸ்ரீ) ப் (ரியா p
_சு) ப் (ரீம p _சு) ப் (ரீம p
_) ப் (ரீயா f _) ப் (ரீயா f
இ (ரதத்த இ (ரதத்த
இ (ரதம இ (ரதம
இ (ரத்த இ (ரத்த
இ (ரபீந்திர
இரப்ப (ர rVbbV இரப்ப (ர rVbbV
இ (ரமண இ (ரமண
இ (ரம்மிய இ (ரம்மிய

+ 3
- 0
phsource/ph_english View File

IF nextPh(isVowel) THEN IF nextPh(isVowel) THEN
ChangePhoneme(I2) ChangePhoneme(I2)
ENDIF ENDIF
IF nextPh(isVowel) THEN
FMT(vowel/ii_4)
ENDIF
FMT(vowel/@) FMT(vowel/@)
endphoneme endphoneme



+ 2
- 4
phsource/ph_hindi View File

ChangePhoneme(NULL) ChangePhoneme(NULL)
ENDIF ENDIF


IF nextVowel(isFlag1) THEN
ELSE
IF NOT nextVowel(isFlag1) THEN
IF thisPh(isSeqFlag1) THEN IF thisPh(isSeqFlag1) THEN
// delete the last inherent vowel of a sequence // delete the last inherent vowel of a sequence
ChangePhoneme(NULL) ChangePhoneme(NULL)
ELSE ELSE
IF thisPh(isFirstVowel) THEN
ELSE
IF NOT thisPh(isFirstVowel) THEN
// delete if not the first vowel, and is an isolated 'a' // delete if not the first vowel, and is an isolated 'a'
ChangePhoneme(NULL) ChangePhoneme(NULL)
ENDIF ENDIF

+ 2
- 0
platforms/windows/windows_cmd/src/speech.h View File

#define NO_VARIADIC_MACROS #define NO_VARIADIC_MACROS
#define INCLUDE_KLATT #define INCLUDE_KLATT
#define INCLUDE_MBROLA #define INCLUDE_MBROLA
#define INCLUDE_SONIC
// will look for espeak_data directory here, and also in user's home directory // will look for espeak_data directory here, and also in user's home directory
#define PATH_ESPEAK_DATA "/usr/share/espeak-data" #define PATH_ESPEAK_DATA "/usr/share/espeak-data"

+ 1
- 0
platforms/windows/windows_dll/src/speech.h View File

#define LIBRARY #define LIBRARY
#define INCLUDE_KLATT #define INCLUDE_KLATT
#define INCLUDE_MBROLA #define INCLUDE_MBROLA
#define INCLUDE_SONIC


// will look for espeak_data directory here, and also in user's home directory // will look for espeak_data directory here, and also in user's home directory
#define PATH_ESPEAK_DATA "/usr/share/espeak-data" #define PATH_ESPEAK_DATA "/usr/share/espeak-data"

+ 1
- 0
platforms/windows/windows_sapi/src/speech.h View File

//#define USE_NANOSLEEP //#define USE_NANOSLEEP
#define INCLUDE_KLATT #define INCLUDE_KLATT
#define INCLUDE_MBROLA #define INCLUDE_MBROLA
#define INCLUDE_SONIC
// will look for espeak_data directory here, and also in user's home directory // will look for espeak_data directory here, and also in user's home directory
#define PATH_ESPEAK_DATA "/usr/share/espeak-data" #define PATH_ESPEAK_DATA "/usr/share/espeak-data"

+ 2
- 2
src/dictionary.cpp View File

continue; continue;
} }


if((dictionary_flags2 & FLAG_ATEND) && (word_end < tr->clause_end))
if((dictionary_flags2 & FLAG_ATEND) && (word_end < translator->clause_end))
{ {
// only use this pronunciation if it's the last word of the clause // only use this pronunciation if it's the last word of the clause
continue; continue;
continue; continue;
} }


if((dictionary_flags2 & FLAG_SENTENCE) && !(tr->clause_terminator & CLAUSE_BIT_SENTENCE))
if((dictionary_flags2 & FLAG_SENTENCE) && !(translator->clause_terminator & CLAUSE_BIT_SENTENCE))
{ {
// only uis this clause is a sentence , i.e. terminator is {. ? !} not {, : :} // only uis this clause is a sentence , i.e. terminator is {. ? !} not {, : :}
continue; continue;

+ 27
- 10
src/phonemelist.cpp View File

int regression; int regression;
int end_sourceix; int end_sourceix;
int alternative; int alternative;
int delete_count;
PHONEME_DATA phdata; PHONEME_DATA phdata;


int n_ph_list3; int n_ph_list3;
} }


// look for switch of phoneme tables // look for switch of phoneme tables
delete_count = 0;
current_phoneme_tab = tr->phoneme_tab_ix; current_phoneme_tab = tr->phoneme_tab_ix;
for(j = 0; j < n_ph_list2; j++) for(j = 0; j < n_ph_list2; j++)
{ {
if(plist2[j].phcode == phonSWITCH)
{
current_phoneme_tab = plist2[j].tone_ph;
}
if(current_phoneme_tab != tr->phoneme_tab_ix) if(current_phoneme_tab != tr->phoneme_tab_ix)
{ {
plist2[j].synthflags |= SFLAG_SWITCHED_LANG; plist2[j].synthflags |= SFLAG_SWITCHED_LANG;
} }

if(delete_count > 0)
{
memcpy(&plist2[j-delete_count], &plist2[j], sizeof(plist2[0]));
}

if(plist2[j].phcode == phonSWITCH)
{
if((!(plist2[j].synthflags & SFLAG_EMBEDDED)) && (
(plist2[j].tone_ph == current_phoneme_tab) ||
(plist2[j+1].phcode == phonSWITCH) ||
((plist2[j+1].phcode == phonPAUSE) && (plist2[j+2].phcode == phonSWITCH))
))
{
// delete this phonSWITCH if it's switching to the current phoneme table, or
// delete this phonSWITCH if its followed by another phonSWITCH
delete_count++;
}
else
{
current_phoneme_tab = plist2[j].tone_ph;
}
}

} }
n_ph_list2 -= delete_count;


if((regression = tr->langopts.param[LOPT_REGRESSIVE_VOICING]) != 0) if((regression = tr->langopts.param[LOPT_REGRESSIVE_VOICING]) != 0)
{ {


if(plist3->phcode == phonSWITCH) if(plist3->phcode == phonSWITCH)
{ {
if(!(plist3->synthflags & SFLAG_EMBEDDED)) // ?? phonSWITCH can't have SFLAG_EMBEDDED ??
{
if((plist3[1].phcode == phonSWITCH) || ((plist3[1].type == phPAUSE) && (plist3[2].phcode == phonSWITCH)))
continue; // next phoneme is also a phonSWITCH, so ignore
}

// change phoneme table // change phoneme table
SelectPhonemeTable(plist3->tone_ph); SelectPhonemeTable(plist3->tone_ph);
} }

+ 1
- 1
src/synthdata.cpp View File

#include "translate.h" #include "translate.h"
#include "wave.h" #include "wave.h"


const char *version_string = "1.46.48 13.Mar.13";
const char *version_string = "1.46.50 15.Mar.13";
const int version_phdata = 0x014640; const int version_phdata = 0x014640;


int option_device_number = -1; int option_device_number = -1;

+ 7
- 1
src/translate.cpp View File

{ {
if(word_length > 1) if(word_length > 1)
return(FLAG_SPELLWORD); // a mixture of languages, retranslate as individual letters, separated by spaces return(FLAG_SPELLWORD); // a mixture of languages, retranslate as individual letters, separated by spaces
if(phonemes[0] == phonSWITCH)
{
// problem with espeak -vbg "b.c.d.e.f"
}
return(0); return(0);
} }
strcpy(word_phonemes, phonemes); strcpy(word_phonemes, phonemes);
return(dictionary_flags[0] & FLAG_SKIPWORDS); // ??
if(wflags & FLAG_TRANSLATOR2)
return(0);
return(dictionary_flags[0] & FLAG_SKIPWORDS); // for "b.c.d"
} }
else if(found == 0) else if(found == 0)
{ {

+ 1
- 1
src/voices.cpp View File

static const char *voices_asia = static const char *voices_asia =
"fa fa-pin hi hy hy-west id ka kn ku ml ne pa ta tr vi vi-hue zh zh-yue "; "fa fa-pin hi hy hy-west id ka kn ku ml ne pa ta tr vi vi-hue zh zh-yue ";
static const char *voices_europe = static const char *voices_europe =
"bg bs ca cs cy da el es et fi fr-be hr hu is it lt lv mk nl no pl pt-pt ro ru sk sq sr sv ";
"an bg bs ca cs cy da el es et fi fr-be hr hu is it lt lv mk nl no pl pt-pt ro ru sk sq sr sv ";




strncpy0(voicename, vname, sizeof(voicename)); strncpy0(voicename, vname, sizeof(voicename));

Loading…
Cancel
Save