mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
[1.31.08]
Fixed bug of missed character after & sequence when --punct option is used. lang=ta: First attempt at phoneme [l.] retroflex-l. lang=no: Use phoneme [R] for all cases of "r". git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@138 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+3
-3
@@ -723,7 +723,7 @@ int Translator::AnnouncePunctuation(int c1, int c2, char *buf, int bufix)
|
||||
UngetC(c2);
|
||||
if(option_ssml)
|
||||
{
|
||||
if(c1 == '<')
|
||||
if((c1 == '<') || (c1 == '&'))
|
||||
ssml_ignore_l_angle = c1; // this was < which was converted to <, don't pick it up again as <
|
||||
}
|
||||
ungot_char2 = c1;
|
||||
@@ -1791,7 +1791,7 @@ f_input = f_in; // for GetC etc
|
||||
|
||||
if((option_ssml) && (phoneme_mode==0))
|
||||
{
|
||||
if((c1 == '&') && ((c2=='#') || ((c2 >= 'a') && (c2 <= 'z'))))
|
||||
if((ssml_ignore_l_angle != '&') && (c1 == '&') && ((c2=='#') || ((c2 >= 'a') && (c2 <= 'z'))))
|
||||
{
|
||||
n_xml_buf = 0;
|
||||
c1 = c2;
|
||||
@@ -1829,7 +1829,7 @@ f_input = f_in; // for GetC etc
|
||||
}
|
||||
}
|
||||
else
|
||||
if((c1 == '<') && !ssml_ignore_l_angle)
|
||||
if((c1 == '<') && (ssml_ignore_l_angle != '<'))
|
||||
{
|
||||
// SSML Tag
|
||||
n_xml_buf = 0;
|
||||
|
||||
Reference in New Issue
Block a user