From 29f0b673ee1599aa40659ec741b2e0ca7e35bc1a Mon Sep 17 00:00:00 2001 From: Valdis Vitolins Date: Sun, 5 Feb 2017 13:26:02 +0200 Subject: [PATCH] Updated comments for POST jump rule --- src/libespeak-ng/dictionary.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libespeak-ng/dictionary.c b/src/libespeak-ng/dictionary.c index a3ae4628..cc0796d5 100644 --- a/src/libespeak-ng/dictionary.c +++ b/src/libespeak-ng/dictionary.c @@ -1876,12 +1876,10 @@ static void MatchRule(Translator *tr, char *word[], char *word_start, int group_ break; case RULE_SKIPCHARS: { - // Used for lang=Tamil, used to match on the next word after an unknown word ending - // 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' + // '(Jxy' means 'skip characters until xy' char *p = post_ptr + letter_xbytes; - char *p2 = p; - int rule_w; // skip characters until this + char *p2 = p; // pointer to the previous character in the word + int rule_w; // first wide character of skip rule utf8_in(&rule_w, rule); while ((letter_w != rule_w) && (letter_w != RULE_SPACE) && (letter_w != 0)) { p2 = p;