Browse Source

Improve comments for character translation

master
Valdis Vitolins 7 years ago
parent
commit
18eeefca19
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/libespeak-ng/translate.c

+ 4
- 2
src/libespeak-ng/translate.c View File

return 1; return 1;
} }


// handle .replace rule in xx_rules file
static int SubstituteChar(Translator *tr, unsigned int c, unsigned int next_in, int *insert, int *wordflags) static int SubstituteChar(Translator *tr, unsigned int c, unsigned int next_in, int *insert, int *wordflags)
{ {
int ix; int ix;
} }
break; break;
} }
// handle .replace rule in xx_rules file
return SubstituteChar(tr, c, next_in, insert, wordflags); return SubstituteChar(tr, c, next_in, insert, wordflags);
} }


c = ' '; c = ' ';
word_flags |= FLAG_COMMA_AFTER; word_flags |= FLAG_COMMA_AFTER;
} }
c = TranslateChar(tr, &source[source_index], prev_in, c, next_in, &char_inserted, &word_flags); // optional language specific function
// language specific character translations
c = TranslateChar(tr, &source[source_index], prev_in, c, next_in, &char_inserted, &word_flags);
if (c == 8) if (c == 8)
continue; // ignore this character continue; // ignore this character



Loading…
Cancel
Save