mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 21:39:47 +00:00
Tidy up phsource.
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@213 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+9
-1
@@ -2541,7 +2541,15 @@ int TranslateRules(Translator *tr, char *p_start, char *phonemes, int ph_size, c
|
||||
return(0);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef deleted
|
||||
// can't switch to a tone language, because the tone-phoneme numbers are not valid for the original language
|
||||
if((letter >= 0x4e00) && (letter < 0xa000) && (tr->langopts.ideographs != 1))
|
||||
{
|
||||
// Chinese ideogram
|
||||
sprintf(phonemes,"%czh",phonSWITCH);
|
||||
return(0);
|
||||
}
|
||||
#endif
|
||||
// no match, try removing the accent and re-translating the word
|
||||
if((letter >= 0xc0) && (letter <= 0x241) && ((ix = remove_accent[letter-0xc0]) != 0))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user