[1.46.21]

For languages with non-Latin alphabets (eg. Cyrillic), don't allow a mixture of native and Latin characters in a word.  Instead break it into separate words.

Dictionary changes for: ta, hu, pt, ne,.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@286 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2012-07-25 17:20:23 +00:00
parent ad5201d53f
commit 896dccdc01
11 changed files with 1717 additions and 41 deletions
+14
View File
@@ -2797,6 +2797,20 @@ if((c == '/') && (tr->langopts.testing & 2) && IsDigit09(next_in) && IsAlpha(pre
letter_count++;
if(tr->letter_bits_offset > 0)
{
if(((c < 0x250) && (prev_out >= tr->letter_bits_offset)) ||
((c >= tr->letter_bits_offset) && (letter_count > 1) && (prev_out < 0x250)))
{
// Don't mix native and Latin characters in the same word
// Break into separate words
c = ' ';
space_inserted = 1;
word_flags |= FLAG_HYPHEN_AFTER;
next_word_flags |= FLAG_HYPHEN;
}
}
if(iswupper(c))
{
c = towlower2(c);