Removed lengthen penultimate stressed vowels from dictionary.c lines 1469-1475. (See #80).

Fixed length stressed vowels in tr_language.c (see #80).

Improved phonemes, new statements for [a] and long close [o].

Added last improvements in italian dict source tested on april-may 2016.
This commit is contained in:
chrislm
2016-06-05 16:25:45 +02:00
parent d4bc2c328e
commit 80da24bec7
6 changed files with 131 additions and 112 deletions
-9
View File
@@ -1465,15 +1465,6 @@ void SetWordStress(Translator *tr, char *output, unsigned int *dictionary_flags,
if (shorten)
p++;
}
if ((v_stress >= 4) && (tr->langopts.param[LOPT_IT_LENGTHEN] == 2)) {
// LANG=Italian, lengthen penultimate stressed vowels, unless followed by 2 consonants
if ((v == (vowel_count - 2)) && (syllable_weight[v] == 0)) {
*output++ = phcode;
phcode = phonLENGTHEN;
}
}
v++;
}
+2 -2
View File
@@ -978,9 +978,9 @@ Translator *SelectTranslator(const char *name)
case L('i', 't'): // Italian
{
static const short stress_lengths_it[8] =
{ 165, 100, 170, 150, 0, 0, 215, 303 };
{ 165, 130, 170, 150, 0, 0, 218, 305 };
static const unsigned char stress_amps_it[8] =
{ 16, 15, 16, 14, 20, 22, 22, 24 };
{ 16, 18, 17, 14, 20, 22, 22, 22 };
SetupTranslator(tr, stress_lengths_it, stress_amps_it);