From 467f3f565f9f8d6d1de62b854e3c2b21a52fd8a2 Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Tue, 20 Apr 2021 19:40:58 +0300 Subject: [PATCH] fi: change decimal number behavior 93d3c67df accidentally changes number handling for finnish. D_FRACTION2 seems to match finnish number standards. It causes the decimals to be read as numbers instead of individual digits: 12,12 is read "twelve point twelve" instead of "twelve point one two". It is undocumented so it might cause regressions as well. --- src/libespeak-ng/tr_languages.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libespeak-ng/tr_languages.c b/src/libespeak-ng/tr_languages.c index 694fa37c..db46e80c 100644 --- a/src/libespeak-ng/tr_languages.c +++ b/src/libespeak-ng/tr_languages.c @@ -811,8 +811,7 @@ Translator *SelectTranslator(const char *name) tr->langopts.param[LOPT_IT_DOUBLING] = 1; tr->langopts.long_stop = 130; - tr->langopts.numbers = NUM_DECIMAL_COMMA | NUM_ALLOW_SPACE | NUM_SWAP_TENS | NUM_OMIT_1_HUNDRED | NUM_DFRACTION_2 | NUM_ORDINAL_DOT; -// tr->langopts.numbers = NUM_DECIMAL_COMMA | NUM_ALLOW_SPACE | NUM_ORDINAL_DOT; + tr->langopts.numbers = NUM_DECIMAL_COMMA | NUM_ALLOW_SPACE | NUM_DFRACTION_2 | NUM_ORDINAL_DOT; SetLetterVowel(tr, 'y'); tr->langopts.spelling_stress = 1; tr->langopts.intonation_group = 3; // less intonation, don't raise pitch at comma