mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
Merge pull request #1109
This commit is contained in:
@@ -693,7 +693,7 @@ static int IsLetterGroup(Translator *tr, char *word, int group, int pre)
|
||||
*/
|
||||
char *p; // group counter
|
||||
char *w; // word counter
|
||||
int len = 0;
|
||||
int len = 0, i;
|
||||
|
||||
p = tr->letterGroups[group];
|
||||
if (p == NULL)
|
||||
@@ -702,7 +702,14 @@ static int IsLetterGroup(Translator *tr, char *word, int group, int pre)
|
||||
while (*p != RULE_GROUP_END) {
|
||||
if (pre) {
|
||||
len = strlen(p);
|
||||
w = word - len + 1;
|
||||
w = word;
|
||||
for (i = 0; i < len-1; i++)
|
||||
{
|
||||
w--;
|
||||
if (*w == 0)
|
||||
// Not found
|
||||
return -1;
|
||||
}
|
||||
} else
|
||||
w = word;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user