mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
[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:
@@ -392,6 +392,9 @@ int IsAlpha(unsigned int c)
|
||||
return(0);
|
||||
}
|
||||
|
||||
if(c == 0x0605)
|
||||
return(1);
|
||||
|
||||
if((c >= 0x64b) && (c <= 0x65e))
|
||||
return(1); // arabic vowel marks
|
||||
|
||||
@@ -467,6 +470,22 @@ int lookupwchar(const unsigned short *list,int c)
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
int lookupwchar2(const unsigned short *list,int c)
|
||||
{//==============================================
|
||||
// Replace character c by another character.
|
||||
// Returns 0 = not found, 1 = delete character
|
||||
int ix;
|
||||
|
||||
for(ix=0; list[ix] != 0; ix+=2)
|
||||
{
|
||||
if(list[ix] == c)
|
||||
return(list[ix+1]);
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
int IsBracket(int c)
|
||||
{//=================
|
||||
if((c >= 0x2014) && (c <= 0x201f))
|
||||
|
||||
Reference in New Issue
Block a user