Valdis Vitolins 8 years ago
parent
commit
06ee50df5b
3 changed files with 11 additions and 5 deletions
  1. 3
    3
      dictsource/en_emoji
  2. 0
    2
      dictsource/en_list
  3. 8
    0
      src/libespeak-ng/translate.c

+ 3
- 3
dictsource/en_emoji View File

@@ -1133,9 +1133,9 @@ $textmode
πŸ₯ƒ tumbler glass // [1F943]
πŸ₯„ spoon // [1F944]
πŸ₯… goal net // [1F945]
πŸ₯‡ 1st place medal // [1F947]
πŸ₯ˆ 2nd place medal // [1F948]
πŸ₯‰ 3rd place medal // [1F949]
πŸ₯‡ first place medal // [1F947]
πŸ₯ˆ second place medal // [1F948]
πŸ₯‰ third place medal // [1F949]
πŸ₯Š boxing glove // [1F94A]
πŸ₯‹ martial arts uniform // [1F94B]
πŸ₯Œ curling stone // [1F94C]

+ 0
- 2
dictsource/en_list View File

@@ -5221,8 +5221,6 @@ zune zu:n
(far more) f'A@_m,o@
(few more) f'ju:m,o@

(first place) f'3:st_pl,eIs
?5 (first place) f'IRst_pl,eIs
(here and there) h'i@3||a#nd||D'e@
(most of) moUst||@v
(such as) sVtS||_a#z $pause

+ 8
- 0
src/libespeak-ng/translate.c View File

@@ -1134,6 +1134,14 @@ int TranslateWord(Translator *tr, char *word_start, WORD_TAB *wtab, char *word_o

int flags = TranslateWord3(tr, word_start, wtab, word_out);
if (flags & FLAG_TEXTMODE && word_out) {
// Ensure that start of word rules match with the replaced text,
// so that emoji and other characters are pronounced correctly.
char word[N_WORD_BYTES+1];
word[0] = 0;
word[1] = ' ';
memcpy(word+2, word_out, strlen(word_out));
word_out = word+2;

while (*word_out && available > 1) {
int c;
utf8_in(&c, word_out);

Loading…
Cancel
Save