[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:
jonsd
2008-02-09 00:26:34 +00:00
parent 39e8e1dcb6
commit c3d666f15c
12 changed files with 154 additions and 86 deletions
+3 -3
View File
@@ -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 &lt; 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;