Browse Source

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
master
jonsd 17 years ago
parent
commit
389f86143e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/dictionary.cpp

+ 1
- 1
src/dictionary.cpp View File

@@ -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];

Loading…
Cancel
Save