This commit is contained in:
Reece Dunn
2011-10-15 23:07:48 +01:00
parent 75c6fae090
commit 922139f25f
17 changed files with 412 additions and 1403 deletions
+13
View File
@@ -1436,6 +1436,18 @@ if(dictionary_flags2[0] & FLAG_ABBREV)
dictionary_flags[0] &= ~FLAG_PAUSE1;
}
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.
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)
{
ChangeWordStress(tr,word_phonemes,3);
}
}
}
if((wflags & FLAG_HYPHEN) && (tr->langopts.stress_flags & S_HYPEN_UNSTRESS))
{
ChangeWordStress(tr,word_phonemes,3);
@@ -1461,6 +1473,7 @@ if(dictionary_flags2[0] & FLAG_ABBREV)
ChangeWordStress(tr,word_phonemes,3);
}
// dictionary flags for this word give a clue about which alternative pronunciations of
// following words to use.
if(end_type & SUFX_F)