[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:
jonsd
2007-06-06 16:03:52 +00:00
parent 0fa20438c1
commit bc7ef71556
29 changed files with 465 additions and 205 deletions
+14 -4
View File
@@ -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: