mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-06 15:12:24 +00:00
[1.47.07a]
Use internal data for iswalpha(), towlower() for characters up to U+024F. Language changes: es, nl, pt, tr, vi. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@346 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+5
-2
@@ -384,9 +384,12 @@ int IsAlpha(unsigned int c)
|
||||
0
|
||||
};
|
||||
|
||||
if(iswalpha(c))
|
||||
if(iswalpha2(c))
|
||||
return(1);
|
||||
|
||||
if(c < 0x300)
|
||||
return(0);
|
||||
|
||||
if((c >= 0x901) && (c <= 0xdf7))
|
||||
{
|
||||
// Indic scripts: Devanagari, Tamil, etc
|
||||
@@ -2957,7 +2960,7 @@ if((c == '/') && (tr->langopts.testing & 2) && IsDigit09(next_in) && IsAlpha(pre
|
||||
if(UpperCaseInWord(tr, &sbuf[ix], c) == 1)
|
||||
{
|
||||
// convert to lower case and continue
|
||||
c = towlower(c);
|
||||
c = towlower2(c);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user