[1.31.17]

*_rules: New option, (Pb to specify a character such as apostrophe which splits a word into two parts (used for lang-tr).
 

git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@150 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2008-02-24 13:53:14 +00:00
parent 19db296d78
commit bf8ee6362e
26 changed files with 565 additions and 351 deletions
+3 -1
View File
@@ -2272,6 +2272,8 @@ int Translator::TranslateRules(char *p_start, char *phonemes, int ph_size, char
{
c = p_start[ix];
word_copy[ix++] = c;
if(c == 0)
break;
}
word_copy[ix] = 0;
@@ -3096,7 +3098,7 @@ int Translator::RemoveEnding(char *word, int end_type, char *word_copy)
word_copy[i] = 0;
// look for multibyte characters to increase the number of bytes to remove
for(len_ending = i = (end_type & 0xf); i>0 ;i--) // num.of characters of the suffix
for(len_ending = i = (end_type & 0x3f); i>0 ;i--) // num.of characters of the suffix
{
word_end--;
while((*word_end & 0xc0) == 0x80)