Browse Source

Fix for issue #69 Speaking '1,,2' in German only says 'eins'.

master
Valdis Vitolins 8 years ago
parent
commit
c5355ed94e
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      src/libespeak-ng/translate.c

+ 7
- 2
src/libespeak-ng/translate.c View File

@@ -2451,8 +2451,13 @@ void *TranslateClause(Translator *tr, FILE *f_text, const void *vp_input, int *t
c = ' '; // terminate digit string with a space
space_inserted = 1;
}
} else {
if (prev_in != ',') {
} else { // Prev output is not digit
if (prev_in == ',') {
// Workaround for several consecutive commas —
// replace current character with space
if (c == ',')
c = ' ';
} else {
decimal_sep_count = 0;
}
}

Loading…
Cancel
Save