[1.45.12]

lang=de: Fix important pronunciation error, "sage".
Change handling of unrecognized phoneme names.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@260 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2011-04-02 00:01:20 +00:00
parent 82b01c0336
commit 750367758e
12 changed files with 74 additions and 53 deletions
+4 -2
View File
@@ -352,7 +352,7 @@ char *EncodePhonemes(char *p, char *outptr, unsigned char *bad_phoneme)
/* Translate a phoneme string from ascii mnemonics to internal phoneme numbers,
from 'p' up to next blank .
Returns advanced 'p'
outptr contains encoded phonemes, unrecognised phonemes are encoded as 255
outptr contains encoded phonemes, unrecognized phoneme stops the encoding
bad_phoneme must point to char array of length 2 of more
*/
{
@@ -423,9 +423,11 @@ char *EncodePhonemes(char *p, char *outptr, unsigned char *bad_phoneme)
if(max_ph == 0)
{
max_ph = 255; /* not recognised */
// not recognised, report and ignore
bad_phoneme[0] = *p;
bad_phoneme[1] = 0;
*outptr++ = 0;
return(p+1);
}
if(max <= 0)