mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
[1.46.27]
Changes to: cy, de, ne, pt, ta. Lang: pt (brazil) change initial 'r' to [h]. Lang: si, say '%' before the number. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@293 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
@@ -1919,6 +1919,22 @@ static int TranslateNumber_1(Translator *tr, char *word, char *ph_out, unsigned
|
||||
n_digit_lookup = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if((tr->langopts.numbers2 & NUM2_PERCENT_BEFORE) && (prev_thousands == 0))
|
||||
{
|
||||
// LANG=si, say "percent" before the number
|
||||
p2 = word;
|
||||
while((*p2 != ' ') && (*p2 != 0))
|
||||
{
|
||||
p2++;
|
||||
}
|
||||
if(p2[1] == '%')
|
||||
{
|
||||
Lookup(tr, "%", ph_out);
|
||||
ph_out += strlen(ph_out);
|
||||
p2[1] = ' ';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LookupNum3(tr, value, ph_buf, suppress_null, thousandplex, prev_thousands | ordinal);
|
||||
|
||||
Reference in New Issue
Block a user