mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-03 06:12:55 +00:00
Merge branch 'development'
This commit is contained in:
@@ -910,6 +910,7 @@ int Unpronouncable(Translator *tr, char *word, int posn)
|
||||
int vowel_posn=9;
|
||||
int index;
|
||||
int count;
|
||||
ALPHABET *alphabet;
|
||||
|
||||
utf8_in(&c,word);
|
||||
if((tr->letter_bits_offset > 0) && (c < 0x241))
|
||||
@@ -918,6 +919,12 @@ int Unpronouncable(Translator *tr, char *word, int posn)
|
||||
return(0); // so we can re-translate the word as English
|
||||
}
|
||||
|
||||
if(((alphabet = AlphabetFromChar(c)) != NULL) && (alphabet->offset != tr->letter_bits_offset))
|
||||
{
|
||||
// Character is not in our alphabet
|
||||
return(0);
|
||||
}
|
||||
|
||||
if(tr->langopts.param[LOPT_UNPRONOUNCABLE] == 1)
|
||||
return(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user