Browse Source

Merge pull request #1109

master
Valdis Vitolins 3 years ago
parent
commit
d0bbf97edb
1 changed files with 9 additions and 2 deletions
  1. 9
    2
      src/libespeak-ng/dictionary.c

+ 9
- 2
src/libespeak-ng/dictionary.c View File

*/ */
char *p; // group counter char *p; // group counter
char *w; // word counter char *w; // word counter
int len = 0;
int len = 0, i;


p = tr->letterGroups[group]; p = tr->letterGroups[group];
if (p == NULL) if (p == NULL)
while (*p != RULE_GROUP_END) { while (*p != RULE_GROUP_END) {
if (pre) { if (pre) {
len = strlen(p); 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 } else
w = word; w = word;



Loading…
Cancel
Save