mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-04 15:49:48 +00:00
Use another var to handle next to next char
This commit is contained in:
@@ -632,6 +632,7 @@ int ReadClause(Translator *tr, char *buf, short *charix, int *charix_top, int n_
|
|||||||
int cprev = ' '; // previous character
|
int cprev = ' '; // previous character
|
||||||
int cprev2 = ' ';
|
int cprev2 = ' ';
|
||||||
int c_next;
|
int c_next;
|
||||||
|
int c_next_2;
|
||||||
int parag;
|
int parag;
|
||||||
int ix = 0;
|
int ix = 0;
|
||||||
int j;
|
int j;
|
||||||
@@ -1075,10 +1076,10 @@ int ReadClause(Translator *tr, char *buf, short *charix, int *charix_top, int n_
|
|||||||
// A special case to handle english acronym + genitive
|
// A special case to handle english acronym + genitive
|
||||||
// eg. u.s.a.'s
|
// eg. u.s.a.'s
|
||||||
// But avoid breaking clause handling if anything else follows the apostrophe.
|
// But avoid breaking clause handling if anything else follows the apostrophe.
|
||||||
c_next = GetC();
|
c_next_2 = GetC();
|
||||||
if(c_next == 's')
|
if(c_next_2 == 's')
|
||||||
is_end_clause = false;
|
is_end_clause = false;
|
||||||
UngetC(c_next);
|
UngetC(c_next_2);
|
||||||
}
|
}
|
||||||
if (iswlower(c_next)) {
|
if (iswlower(c_next)) {
|
||||||
// next word has no capital letter, this dot is probably from an abbreviation
|
// next word has no capital letter, this dot is probably from an abbreviation
|
||||||
|
|||||||
Reference in New Issue
Block a user