[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:
jonsd
2011-11-29 18:26:56 +00:00
parent f68774298b
commit 0617cc4750
46 changed files with 4297 additions and 2736 deletions
+8
View File
@@ -218,6 +218,8 @@ static int GetMbrName(PHONEME_LIST *plist, PHONEME_TAB *ph, PHONEME_TAB *ph_prev
// bit 2 only at the start of a word
// bit 3 don't match two phonemes across a word boundary
// bit 4 add this phoneme name as a prefix to the next phoneme name (used for de4 phoneme prefix '?')
// bit 5 only in stressed syllable
// bit 6 only at the end of a word
*name2=0;
*split=0;
@@ -257,6 +259,12 @@ static int GetMbrName(PHONEME_LIST *plist, PHONEME_TAB *ph, PHONEME_TAB *ph_prev
if((pr->control & 4) && (plist->newword == 0)) // only at start of word
found = 0;
if((pr->control & 0x40) && (plist[1].newword == 0)) // only at the end of a word
found = 0;
if((pr->control & 0x20) && (plist->stresslevel < plist->wordstress))
found = 0; // only in stressed syllables
if(found)
{
*name2 = pr->mbr_name2;