mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
[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:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user