mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 21:39:47 +00:00
Fix: $textmode, word replacement didn't include end-of-word separator (space).
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@155 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+1
-1
@@ -3066,7 +3066,7 @@ int Translator::LookupDictList(char **wordptr, char *ph_out, unsigned int *flags
|
||||
// only use replacement text if this is the original word, not if a prefix or suffix has been removed
|
||||
word_replacement[0] = 0;
|
||||
word_replacement[1] = ' ';
|
||||
strcpy(&word_replacement[2],ph_out); // replacement word, preceded by zerochar and space
|
||||
sprintf(&word_replacement[2],"%s ",ph_out); // replacement word, preceded by zerochar and space
|
||||
|
||||
word1 = *wordptr;
|
||||
*wordptr = &word_replacement[2];
|
||||
|
||||
Reference in New Issue
Block a user