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:
+12
-5
@@ -384,12 +384,19 @@ int compile_line(char *linebuf, char *dict_line, int *hash)
|
||||
}
|
||||
length += n_flag_codes;
|
||||
|
||||
if((multiple_string != NULL) && (multiple_words > 0) && (multiple_words <= 4))
|
||||
if((multiple_string != NULL) && (multiple_words > 0))
|
||||
{
|
||||
dict_line[length++] = 40 + multiple_words;
|
||||
ix = multiple_string_end - multiple_string;
|
||||
memcpy(&dict_line[length],multiple_string,ix);
|
||||
length += ix;
|
||||
if(multiple_words > 10)
|
||||
{
|
||||
fprintf(f_log,"%5d: Two many parts in a multi-word entry: %d\n",linenum,multiple_words);
|
||||
}
|
||||
else
|
||||
{
|
||||
dict_line[length++] = 40 + multiple_words;
|
||||
ix = multiple_string_end - multiple_string;
|
||||
memcpy(&dict_line[length],multiple_string,ix);
|
||||
length += ix;
|
||||
}
|
||||
}
|
||||
dict_line[0] = length;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user