mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-06 07:03:12 +00:00
[1.43.03] release
Fix crash when embedded control codes are followed by numbers of 5 or more digits. Fix lang=hu, First character of an abbreviation is missed after an ordinal number (eg."2. cd") Fix XML tag not recognized after "..." when announce punctuation is enabled. Fix lang=zh-yue, 'p' 't' 'k' after a vowel give a long pause. Fix lang=ru, "o" missing in unstressed syllables. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@241 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+7
-3
@@ -840,14 +840,18 @@ if((wmark > 0) && (wmark < 8))
|
||||
|
||||
length=0;
|
||||
while(wordx[length] != ' ') length++;
|
||||
if(length > 0)
|
||||
wordx[-1] = ' '; // prevent this affecting the pronunciation of the pronuncable part
|
||||
}
|
||||
SetSpellingStress(tr,unpron_phonemes,0,posn);
|
||||
|
||||
// anything left ?
|
||||
if(*wordx != ' ')
|
||||
{
|
||||
if(unpron_phonemes[0] != 0)
|
||||
{
|
||||
// letters which have been spoken individually from affecting the pronunciation of the pronuncable part
|
||||
wordx[-1] = ' ';
|
||||
}
|
||||
|
||||
// Translate the stem
|
||||
end_type = TranslateRules(tr, wordx, phonemes, N_WORD_PHONEMES, end_phonemes, wflags, dictionary_flags);
|
||||
|
||||
@@ -2802,7 +2806,7 @@ if((c == '/') && (tr->langopts.testing & 2) && IsDigit09(next_in) && IsAlpha(pre
|
||||
|
||||
for(j=1; j<=nw; j++)
|
||||
{
|
||||
num_wtab[j].flags &= ~FLAG_MULTIPLE_SPACES; // don't use this flag for subsequent parts when splitting a number
|
||||
num_wtab[j].flags &= ~(FLAG_MULTIPLE_SPACES | FLAG_EMBEDDED); // don't use these flags for subsequent parts when splitting a number
|
||||
}
|
||||
|
||||
// include the next few characters, in case there are an ordinal indicator or other suffix
|
||||
|
||||
Reference in New Issue
Block a user