Browse Source

Merge branch 'upstream' into development

master
Reece H. Dunn 12 years ago
parent
commit
2338a6c6f3
2 changed files with 7 additions and 4 deletions
  1. 6
    3
      src/phonemelist.cpp
  2. 1
    1
      src/readclause.cpp

+ 6
- 3
src/phonemelist.cpp View File

@@ -341,10 +341,13 @@ void MakePhonemeList(Translator *tr, int post_pause, int start_sentence)
ph = phoneme_tab[plist3->phcode];
plist3[0].ph = ph;

if((plist3->phcode == phonSWITCH) && !(plist3->synthflags & SFLAG_EMBEDDED)) // ?? phonSWITCH can't have SFLAG_EMBEDDED ??
if(plist3->phcode == phonSWITCH)
{
if((plist3[1].phcode == phonSWITCH) || ((plist3[1].type == phPAUSE) && (plist3[2].phcode == phonSWITCH)))
continue; // next phoneme is also a phonSWITCH, so ignore
if(!(plist3->synthflags & SFLAG_EMBEDDED)) // ?? phonSWITCH can't have SFLAG_EMBEDDED ??
{
if((plist3[1].phcode == phonSWITCH) || ((plist3[1].type == phPAUSE) && (plist3[2].phcode == phonSWITCH)))
continue; // next phoneme is also a phonSWITCH, so ignore
}

// change phoneme table
SelectPhonemeTable(plist3->tone_ph);

+ 1
- 1
src/readclause.cpp View File

@@ -643,7 +643,7 @@ static const char *LookupCharName(Translator *tr, int c, int only)
}
}

if((only==0) && (phonemes[0] == 0) && (tr->translator_name != L('e','n')))
if((only==0) && ((phonemes[0] == 0) || (phonemes[0] == phonSWITCH)) && (tr->translator_name != L('e','n')))
{
// not found, try English
SetTranslator2("en");

Loading…
Cancel
Save