[1.26.02] SelectVoice(), make voice_variants[] static.

lang=de  many translation improvements.
TranslateWord(), check that a prefix rule is still allowed after a suffix has been removed.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@43 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-06-11 12:52:34 +00:00
parent 245ee91a84
commit ad4950c203
14 changed files with 501 additions and 117 deletions
+3 -3
View File
@@ -689,7 +689,7 @@ void copy_rule_string(char *string, int &state)
case '$': // obsolete, replaced by S
case 'S':
output[ix++] = RULE_ENDING;
value = 0x80;
value = 0;
while(!isspace2(c = *p++) && (c != 0))
{
switch(c)
@@ -720,14 +720,14 @@ void copy_rule_string(char *string, int &state)
break;
default:
if(isdigit(c))
value = (c - '0') + 0x80;
value = (value*10) + (c - '0');
break;
}
}
p--;
output[ix++] = sxflags >> 16;
output[ix++] = sxflags >> 8;
c = value;
c = value | 0x80;
break;
}
}