mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-06 23:16:21 +00:00
[1.38]
Lang: en-us pronunciation rule changes, adjust some phonemes. Lang: pl, fr phoneme adjustments. espeakedit: Fix generation of file "dict_phonemes" (.replace could cause phonemes to be missed). git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@189 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
@@ -376,6 +376,7 @@ void FindPhonemesUsed(void)
|
||||
{//========================
|
||||
int hash;
|
||||
char *p;
|
||||
unsigned int *pw;
|
||||
char *start;
|
||||
char *next;
|
||||
unsigned char c;
|
||||
@@ -397,6 +398,18 @@ void FindPhonemesUsed(void)
|
||||
}
|
||||
if(*p == RULE_GROUP_START)
|
||||
{
|
||||
if(p[1] == RULE_REPLACEMENTS)
|
||||
{
|
||||
p++;
|
||||
pw = (unsigned int *)(((long)p+4) & ~3); // advance to next word boundary
|
||||
while(pw[0] != 0)
|
||||
{
|
||||
pw += 2; // find the end of the replacement list, each entry is 2 words.
|
||||
}
|
||||
p = (char *)(pw+1);
|
||||
continue;
|
||||
}
|
||||
|
||||
if(p[1] == RULE_LETTERGP2)
|
||||
{
|
||||
while(*p != RULE_GROUP_END) p++;
|
||||
|
||||
Reference in New Issue
Block a user