mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-01 13:54:20 +00:00
[1.25.18] Adjusted [la], [wi]
Added mechanism to reduce [t] before unstressed vowels (for en-us) Fixed X (no vowels) operator in pre-rules in *_rules files. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@35 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+14
-4
@@ -2041,10 +2041,20 @@ void Translator::MatchRule(char *word[], const char *group, char *rule, MatchRec
|
||||
break;
|
||||
|
||||
case RULE_NOVOWELS:
|
||||
if(word_vowel_count== 0)
|
||||
match.points += 19;
|
||||
else
|
||||
failed =1;
|
||||
{
|
||||
char *p = pre_ptr - letter_xbytes - 1;
|
||||
while(letter_w != RULE_SPACE)
|
||||
{
|
||||
if(IsLetter(letter_w,LETTERGP_VOWEL2))
|
||||
{
|
||||
failed = 1;
|
||||
break;
|
||||
}
|
||||
p -= utf8_in(&letter_w,p,1);
|
||||
}
|
||||
if(!failed)
|
||||
match.points += (19-distance_left);
|
||||
}
|
||||
break;
|
||||
|
||||
case RULE_IFVERB:
|
||||
|
||||
Reference in New Issue
Block a user