// Is this a group of 3 digits which looks like a thousands group? | // Is this a group of 3 digits which looks like a thousands group? | ||||
int ix; | int ix; | ||||
if (IsDigit09(word[group_len]) || IsDigit09(-1)) | |||||
return false; | |||||
for (ix = 0; ix < group_len; ix++) { | for (ix = 0; ix < group_len; ix++) { | ||||
if (!IsDigit09(word[ix])) | if (!IsDigit09(word[ix])) | ||||
return false; | return false; | ||||
} | } | ||||
if (IsDigit09(word[group_len]) || IsDigit09(-1)) | |||||
return false; | |||||
return true; | return true; | ||||
} | } | ||||
# bug: https://github.com/espeak-ng/espeak-ng/issues/853 | # bug: https://github.com/espeak-ng/espeak-ng/issues/853 | ||||
test_phon fr "profEs'Wr" "PR" | test_phon fr "profEs'Wr" "PR" | ||||
# https://github.com/espeak-ng/espeak-ng/pull/1148 | |||||
test_phon fr "dY mil v'E~" "2020" |