mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-05 06:45:39 +00:00
[1.46.01]
Improve error detection in *_list files. Lang=hu, remove feature to unstress the second of two capitalized words at end of clause. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@277 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+7
-1
@@ -401,6 +401,9 @@ int IsAlpha(unsigned int c)
|
||||
if((c >= 0x780) && (c <= 0x7b1))
|
||||
return(1); // taani/divehi (maldives)
|
||||
|
||||
if((c >= 0xf40) && (c <= 0xfbc))
|
||||
return(1); // tibetan
|
||||
|
||||
if((c >= 0x1100) && (c <= 0x11ff))
|
||||
return(1); //Korean jamo
|
||||
|
||||
@@ -1436,9 +1439,11 @@ if(dictionary_flags2[0] & FLAG_ABBREV)
|
||||
dictionary_flags[0] &= ~FLAG_PAUSE1;
|
||||
}
|
||||
|
||||
#ifdef deleted
|
||||
// but it causes problems if these are not a person name
|
||||
if(tr->translator_name == L('h','u'))
|
||||
{
|
||||
// lang=Hungarian, If the last two words of a clause have capital letters (eg. a person name), unstress the last word.
|
||||
// lang=hu, If the last two words of a clause have capital letters (eg. a person name), unstress the last word.
|
||||
if((wflags & (FLAG_LAST_WORD | FLAG_FIRST_UPPER | FLAG_ALL_UPPER | FLAG_FIRST_WORD)) == (FLAG_LAST_WORD | FLAG_FIRST_UPPER))
|
||||
{
|
||||
if(((wtab[-1].flags & (FLAG_FIRST_UPPER | FLAG_ALL_UPPER)) == FLAG_FIRST_UPPER) && ((tr->clause_terminator != 0x90028) || (wflags & FLAG_HAS_DOT)))
|
||||
@@ -1447,6 +1452,7 @@ if(dictionary_flags2[0] & FLAG_ABBREV)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if((wflags & FLAG_HYPHEN) && (tr->langopts.stress_flags & S_HYPEN_UNSTRESS))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user