mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-05 08:00:36 +00:00
Updated comments for POST jump rule
This commit is contained in:
committed by
Reece H. Dunn
parent
6bd656cf4a
commit
29f0b673ee
@@ -1876,12 +1876,10 @@ static void MatchRule(Translator *tr, char *word[], char *word_start, int group_
|
|||||||
break;
|
break;
|
||||||
case RULE_SKIPCHARS:
|
case RULE_SKIPCHARS:
|
||||||
{
|
{
|
||||||
// Used for lang=Tamil, used to match on the next word after an unknown word ending
|
// '(Jxy' means 'skip characters until xy'
|
||||||
// only look until the end of the word (including the end-of-word marker)
|
|
||||||
// Jx means 'skip characters until x', where 'x' may be '_' for 'end of word'
|
|
||||||
char *p = post_ptr + letter_xbytes;
|
char *p = post_ptr + letter_xbytes;
|
||||||
char *p2 = p;
|
char *p2 = p; // pointer to the previous character in the word
|
||||||
int rule_w; // skip characters until this
|
int rule_w; // first wide character of skip rule
|
||||||
utf8_in(&rule_w, rule);
|
utf8_in(&rule_w, rule);
|
||||||
while ((letter_w != rule_w) && (letter_w != RULE_SPACE) && (letter_w != 0)) {
|
while ((letter_w != rule_w) && (letter_w != RULE_SPACE) && (letter_w != 0)) {
|
||||||
p2 = p;
|
p2 = p;
|
||||||
|
|||||||
Reference in New Issue
Block a user