[1.27.09] Fix for --punct option when used with <say-as>.

lang=hu, shorten "ll". Test: remove differences in vowel lengths depending on the following phoneme.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@64 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-07-12 21:39:42 +00:00
parent 3546b19965
commit 0def252307
28 changed files with 5228 additions and 5150 deletions
+6 -3
View File
@@ -1718,11 +1718,14 @@ f_input = f_in; // for GetC etc
if(option_phoneme_input)
{
if(phoneme_mode > 0)
phoneme_mode--;
else
if((c1 == '[') && (c2 == '['))
phoneme_mode = 1; // input is phoneme mnemonics, so don't look for punctuation
phoneme_mode = -1; // input is phoneme mnemonics, so don't look for punctuation
else
if((c1 == ']') && (c2 == ']'))
phoneme_mode = 0;
phoneme_mode = 2; // set phoneme_mode to zero after the next two characters
}
if(c1 == '\n')
@@ -1761,7 +1764,7 @@ if(option_ssml) parag=1;
linelength = 0;
}
if(option_punctuation && (phoneme_mode==0) && iswpunct(c1))
if(option_punctuation && (phoneme_mode==0) && (sayas_mode==0) && iswpunct(c1))
{
// option is set to explicitly speak punctuation characters
// if a list of allowed punctuation has been set up, check whether the character is in it