[1.46.19]

Speak names of characters U+2800 to U+28FF, Braille dot symbols.
Language option to speak numbers which use characters '0' to '9' with the English voice.
Add some more characters to the vowel and consonant lists for Indian languages.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@284 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2012-06-27 18:02:26 +00:00
parent 176a0c267c
commit 084584ee16
13 changed files with 118 additions and 42 deletions
+9 -5
View File
@@ -347,8 +347,8 @@ int HashDictionary(const char *string)
char *EncodePhonemes(char *p, char *outptr, unsigned char *bad_phoneme)
/*********************************************************************/
const char *EncodePhonemes(const 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'
@@ -364,7 +364,8 @@ char *EncodePhonemes(char *p, char *outptr, unsigned char *bad_phoneme)
int consumed;
unsigned int mnemonic_word;
bad_phoneme[0] = 0;
if(bad_phoneme != NULL)
bad_phoneme[0] = 0;
// skip initial blanks
while(isspace(*p))
@@ -424,8 +425,11 @@ char *EncodePhonemes(char *p, char *outptr, unsigned char *bad_phoneme)
if(max_ph == 0)
{
// not recognised, report and ignore
bad_phoneme[0] = *p;
bad_phoneme[1] = 0;
if(bad_phoneme != NULL)
{
bad_phoneme[0] = *p;
bad_phoneme[1] = 0;
}
*outptr++ = 0;
return(p+1);
}