mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-05 22:53:38 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user