[1.36.12]

lang=hr: adjust phonemes [S tS tS; Z dZ dZ;]


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@173 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2008-04-10 16:25:15 +00:00
parent 00130d6dda
commit cbc23d04c0
27 changed files with 1300 additions and 119 deletions
+18
View File
@@ -1086,6 +1086,24 @@ void Translator::SetWordStress(char *output, unsigned int dictionary_flags, int
switch(langopts.stress_rule)
{
case 8:
// stress on first syllable, unless it is a light syllable
if(syllable_weight[1] > 0)
break;
// else drop through to case 1
case 1:
// stress on second syllable
if((stressed_syllable == 0) && (vowel_count > 2))
{
stressed_syllable = 2;
if(max_stress == 0)
{
vowel_stress[stressed_syllable] = 4;
}
max_stress = 4;
}
break;
case 2:
// a language with stress on penultimate vowel