mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
[1.29.29] Add inital draft of language "ta", Tamil
lang=en: Don't treat "Mc" prefix as a separate word, combine it with the following word. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@113 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+2
-9
@@ -1967,22 +1967,15 @@ if(option_ssml) parag=1;
|
||||
}
|
||||
ix += utf8_out(c1,&buf[ix]); // buf[ix++] = c1;
|
||||
|
||||
if(!iswalnum(c1) && (ix > (n_buf-20)))
|
||||
if(((ix > (n_buf-20)) && !IsAlpha(c1) && !iswdigit(c1)) || (ix >= (n_buf-2)))
|
||||
{
|
||||
// clause too long, getting near end of buffer, so break here
|
||||
// try to break at a word boundary (unless we actually reach the end of buffer).
|
||||
buf[ix] = ' ';
|
||||
buf[ix+1] = 0;
|
||||
UngetC(c2);
|
||||
return(CLAUSE_NONE);
|
||||
}
|
||||
if(ix >= (n_buf-2))
|
||||
{
|
||||
// reached end of buffer, must break now
|
||||
buf[n_buf-2] = ' ';
|
||||
buf[n_buf-1] = 0;
|
||||
UngetC(c2);
|
||||
return(CLAUSE_NONE);
|
||||
}
|
||||
}
|
||||
buf[ix] = ' ';
|
||||
buf[ix+1] = 0;
|
||||
|
||||
Reference in New Issue
Block a user