From 5d8bb74169cbbf9289a6b283a3ae37de5b3dda48 Mon Sep 17 00:00:00 2001 From: chrislm Date: Mon, 1 May 2017 11:06:19 +0200 Subject: [PATCH] IT: new improvements tested on april 2017 reduced length to 160 for unstressed syllables Added some exceptions to the italian dictionaries --- dictsource/it_list | 6 +++++- dictsource/it_listx | 6 ++++-- src/libespeak-ng/tr_languages.c | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dictsource/it_list b/dictsource/it_list index ee0442f2..4f8d43f1 100644 --- a/dictsource/it_list +++ b/dictsource/it_list @@ -1,6 +1,6 @@  // This file is UTF-8 encoded -// Updated 2017 march 31 by Christian Leo M, +// Updated 2017 april 28 by Christian Leo M, // $alt change [e] or [o] in the stressed syllable to [E] or [O] // $alt2 change [E] or [O] in the stressed syllable to [e] or [o] @@ -1704,6 +1704,7 @@ vent'anni vent'an:I (in balia) in||bal'i:a (presidi sanitari) p@-*ez'idi||sanit'aRI +(con principi) kon||p@-*intS'ipi (principi attivi) p@-*intS'i:pI||at:'ivI (principi fondamentali) p@-*intS'i:pI||fondament'a:lI (principi morali) p@-*intS'i:pI||moR'alI @@ -3986,6 +3987,7 @@ regolarizzino $4 reimpieghino $3 reintegr @-*e'integ@-* reinterpretano $3 +reinterpret $3 reinvio @-*einv'i:o remano $1 $alt2 rendano $1 @@ -4794,10 +4796,12 @@ illuminal $2 immergiti $2 importal $2 impostaci $2 +impostal $2 impostomi $2 indirizziamoci indiRi_tsj'amotSI // $5 indirizziamol indiRi_tsj'amol // $5 indirizzati indiRits2:'ati +indossal $2 informaci $2 $alt2 informati $2 $alt2 $atstart insediatisi $3 diff --git a/dictsource/it_listx b/dictsource/it_listx index 2ca2d859..aca7c35b 100644 --- a/dictsource/it_listx +++ b/dictsource/it_listx @@ -550,7 +550,8 @@ boem $alt bol $alt bolgheri $1 bolgia $1 $alt -boll $alt2 +boll $alt2 +bollicine $3 bolsceviche $3 bom $alt bon $alt @@ -1733,6 +1734,7 @@ gambusia $2 gamete $alt ganglio g'anglio gangliom gangli'om +ganz g'andz garanzia $3 gardenia $alt garibaldine $4 @@ -4030,7 +4032,7 @@ turboventol $alt turgovia $alt turold $alt tuttor $alt2 -tuttosport $3 +ubbia ,ub:'ia ubbriac $3 ubbriache ub:@-*I'ake ubold $alt diff --git a/src/libespeak-ng/tr_languages.c b/src/libespeak-ng/tr_languages.c index 32bf706b..ecfaf0c1 100644 --- a/src/libespeak-ng/tr_languages.c +++ b/src/libespeak-ng/tr_languages.c @@ -978,7 +978,7 @@ Translator *SelectTranslator(const char *name) break; case L('i', 't'): // Italian { - static const short stress_lengths_it[8] = { 165, 140, 150, 165, 0, 0, 218, 305 }; + static const short stress_lengths_it[8] = { 160, 140, 150, 165, 0, 0, 218, 305 }; static const unsigned char stress_amps_it[8] = { 17, 15, 18, 16, 20, 22, 22, 22 }; SetupTranslator(tr, stress_lengths_it, stress_amps_it); tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable