mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 14:04:27 +00:00
[1.47.17]
Language changes: en, it, pt lang=fa, ignore character U+0640. lang=it, remove initial consonant doubling. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@370 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+10
-10
@@ -2524,6 +2524,16 @@ f_input = f_in; // for GetC etc
|
||||
|
||||
linelength++;
|
||||
|
||||
if((j = lookupwchar2(tr->chars_ignore,c1)) != 0)
|
||||
{
|
||||
if(j == 1)
|
||||
{
|
||||
// ignore this character (eg. zero-width-non-joiner U+200C)
|
||||
continue;
|
||||
}
|
||||
c1 = j; // replace the character
|
||||
}
|
||||
|
||||
if(iswalnum(c1))
|
||||
any_alnum = 1;
|
||||
else
|
||||
@@ -2536,16 +2546,6 @@ f_input = f_in; // for GetC etc
|
||||
c2 = ' ';
|
||||
}
|
||||
|
||||
if((j = lookupwchar2(tr->chars_ignore,c1)) != 0)
|
||||
{
|
||||
if(j == 1)
|
||||
{
|
||||
// ignore this character (eg. zero-width-non-joiner U+200C)
|
||||
continue;
|
||||
}
|
||||
c1 = j; // replace the character
|
||||
}
|
||||
|
||||
if(c1 == 0xf0b)
|
||||
c1 = ' '; // Tibet inter-syllabic mark, ?? replace by space ??
|
||||
|
||||
|
||||
Reference in New Issue
Block a user