[1.46.20]

Added language "lt" Lithuanian.

Changes to languages: pt, ta, ka.

Allow ZLNJ character (U+200C) to appear as an alphabetic character (lang=fa).


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@285 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2012-07-16 12:48:25 +00:00
parent 084584ee16
commit ad5201d53f
24 changed files with 4641 additions and 106 deletions
+7 -9
View File
@@ -69,12 +69,6 @@ static int ssml_ignore_l_angle = 0;
//static const char *tone_punct_on = "\0016T"; // add reverberation, lower pitch
//static const char *tone_punct_off = "\001T\001P";
// ignore these characters
static const unsigned short chars_ignore[] = {
0x200c, // zero width non-joiner
0x200d, // zero width joiner
0 };
// punctuations symbols that can end a clause
static const unsigned short punct_chars[] = {',','.','?','!',':',';',
0x2013, // en-dash
@@ -2392,10 +2386,14 @@ f_input = f_in; // for GetC etc
c2 = ' ';
}
if(lookupwchar(chars_ignore,c1))
if((j = lookupwchar2(tr->chars_ignore,c1)) != 0)
{
// ignore this character (eg. zero-width-non-joiner U+200C)
continue;
if(j == 1)
{
// ignore this character (eg. zero-width-non-joiner U+200C)
continue;
}
c1 = j; // replace the character
}
if(c1 == 0xf0b)