mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-07 15:24:02 +00:00
[1.30.03] lang=sv: update dictionary.
lang=jbo (lojban): initial draft. Linux: look for env variable ESPEAK_DATA_PATH git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@117 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
@@ -208,6 +208,7 @@ int Translator::TranslateRoman(char *word, char *ph_out)
|
||||
int prev;
|
||||
int value;
|
||||
int subtract;
|
||||
int repeat = 0;
|
||||
unsigned int flags;
|
||||
char number_chars[N_WORD_BYTES];
|
||||
|
||||
@@ -224,6 +225,14 @@ int Translator::TranslateRoman(char *word, char *ph_out)
|
||||
return(0);
|
||||
|
||||
value = roman_values[p2 - roman_numbers];
|
||||
if(value == prev)
|
||||
{
|
||||
repeat++;
|
||||
if(repeat >= 3)
|
||||
return(0);
|
||||
}
|
||||
else
|
||||
repeat = 0;
|
||||
|
||||
if((prev==5) || (prev==50) || (prev==500))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user