mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
[1.29.04] Allow up to 10 parts in multiple-word entries in *_list files.
lang=hr: Recognize Roman numbers only when all-capitals. lang=en: Change to word-final [I] (phoneme [i]). git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@84 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+4
-3
@@ -36,7 +36,7 @@
|
||||
#include "translate.h"
|
||||
|
||||
|
||||
|
||||
int dictionary_skipwords;
|
||||
char dictionary_name[40];
|
||||
|
||||
extern MNEM_TAB mnem_flags[];
|
||||
@@ -2716,12 +2716,13 @@ int Translator::LookupDict2(char *word, char *word2, char *phonetic, unsigned in
|
||||
else
|
||||
if(flag > 40)
|
||||
{
|
||||
// flags 41,42,or 43 match more than one word
|
||||
// flags 41 to 50 match more than one word
|
||||
// This comes after the other flags
|
||||
n_chars = next - p;
|
||||
if(memcmp(word2,p,n_chars)==0)
|
||||
{
|
||||
dictionary_flags |= ((flag-40) << 5); // set (bits 5-7) to 1,2,or 3
|
||||
dictionary_flags |= FLAG_SKIPWORDS;
|
||||
dictionary_skipwords = (flag - 40);
|
||||
p = next;
|
||||
word_end = word2 + n_chars;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user