Browse Source

Reapply the emoji fix from commit 119c200e, only changing the code causing the issue.

master
Reece H. Dunn 7 years ago
parent
commit
7a33e60234
2 changed files with 6 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/translate.c
  2. 5
    0
      tests/phoneme-output.test

+ 1
- 1
src/libespeak-ng/translate.c View File

@@ -1171,7 +1171,7 @@ int TranslateWord(Translator *tr, char *word_start, WORD_TAB *wtab, char *word_o
char word[N_WORD_BYTES+1];
word[0] = 0;
word[1] = ' ';
memcpy(word+2, word_out, strlen(word_out));
strcpy(word+2, word_out);
word_out = word+2;

while (*word_out && available > 1) {

+ 5
- 0
tests/phoneme-output.test View File

@@ -21,3 +21,8 @@ test_phonemes en " s'VmTIN Imp'o@t@nt" "something important"
# spelling rules for suffices (-mas, -mu)
test_phonemes lv " nev'ie:na no\`_ 'eiRo:pas v'a>lsti:m nek,ad nav p'a:Rga:jusi no\`_ 'univERsa::la:s_:_: no\` visp'aRe:jiem n'uoduok}l^iem f'inansE:tas_:_: s'iste:mas uz 'obliga:ta:s 'apdRuoSina:Sanas s'iste:mu b'eigas" "Neviena no Eiropas valstīm nekad nav pārgājusi no universālās (no visparējiem nodokļiem finansētas) sistēmas uz obligātās apdrošināšanas sistēmu Beigas."

# Emoji

# ED-3 - emoji_character [http://www.unicode.org/reports/tr51/tr51-12.html#def_emoji_character]
test_phonemes en " Ekskla#m'eIS@N kw'EstS@n m'A@k" "⁉"
test_phonemes en " Ekskla#m'eIS@N kw'EstS@n m'A@k r'eInboU" "⁉ 🌈"

Loading…
Cancel
Save