[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:
jonsd
2012-10-21 13:05:45 +00:00
parent e1fd37b94c
commit 066a898548
24 changed files with 399 additions and 204 deletions
+16
View File
@@ -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);