Write version_phdata number to phondata file so that the byte order is correct for both little and big-endian processors.

Adjust phoneme [R].
Lang=ru  Revert to phonemes [S] and [Z] instead of [s.] and [z.].
Lang=ru  Remove rule to give 1st syllable a secondary stress if the second syllable has a primary stress.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@9 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-05-12 17:29:43 +00:00
parent 4dac46b5fa
commit 3899776fad
12 changed files with 101 additions and 80 deletions
+11 -1
View File
@@ -1097,7 +1097,16 @@ void Translator::SetWordStress(char *output, unsigned int dictionary_flags, int
stress = 3;
if((langopts.stress_flags & 0x1000) && (vowel_stress[1] == 0))
if((langopts.stress_flags & 0x1000) && (vowel_count == 2))
{
// Two syllable word, if one syllable has primary stress, then give the other secondary stress
if(vowel_stress[1] == 4)
vowel_stress[2] = 3;
if(vowel_stress[2] == 4)
vowel_stress[1] = 3;
}
#if deleted
if((langopts.stress_flags & 0x2000) && (vowel_stress[1] == 0))
{
// If there is only one syllable before the primary stress, give it a secondary stress
if((vowel_count > 2) && (vowel_stress[2] >= 4))
@@ -1105,6 +1114,7 @@ void Translator::SetWordStress(char *output, unsigned int dictionary_flags, int
vowel_stress[1] = 3;
}
}
#endif
for(v=1; v<vowel_count; v++)
{