mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 06:01:53 +00:00
[1.39.04]
Reduce pause when announcing punctuation. Fix crash for list of numbers in some languages, eg: "22,23,24,25,26,27..." Recognise XLL (etc) is not a valid Roman number. espeak_Cancel(), reset punctuation echo. Don't permanently change option_phoneme_input after using [[ ]] internally. lang=af: Only recognise word "'n" as [@] when followed by a space. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@193 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+2
-2
@@ -780,7 +780,7 @@ int Translator::TranslateRoman(char *word, char *ph_out)
|
||||
else
|
||||
repeat = 0;
|
||||
|
||||
if((prev==5) || (prev==50) || (prev==500))
|
||||
if((prev > 1) && (prev != 10) && (prev != 100))
|
||||
{
|
||||
if(value >= prev)
|
||||
return(0);
|
||||
@@ -1353,7 +1353,7 @@ int Translator::TranslateNumber_1(char *word, char *ph_out, unsigned int *flags,
|
||||
if(Lookup("_dpt2",buf1))
|
||||
strcat(ph_out,buf1);
|
||||
|
||||
if(c == langopts.decimal_sep)
|
||||
if((c == langopts.decimal_sep) && isdigit(word[n_digits+1]))
|
||||
{
|
||||
Lookup("_dpt",buf1);
|
||||
strcat(ph_out,buf1);
|
||||
|
||||
Reference in New Issue
Block a user