[espeak-ng:master] new issue: broken symbol substitution #github


espeak-ng@groups.io Integration <espeak-ng@...>
 

[espeak-ng:master] New Issue Created by npitre:
#874 broken symbol substitution

This works:

$ espeak-ng -v fr -q -X "2020"
Found: '_0C' [sA~]
Found: '_0M1' [mil]
Found: '_2' [dYz2]
Found: '_20' [vE~t2]
dY mil v'E~

This doesn't work:

$ espeak-ng -v fr -q -X "© 2020"
Replace: ©   symbole Copyright
Translate 'symbole'
  1     s        [s]

  1     y        [i]
 42     ym (L11  [E~]

  1     b        [b]

 34     o (CA    [o]
  1     o        [O]
 44     o (Ce_   [O]

  1     l        [l]

 22     e (_     []
  1     e        [@]

Translate 'copyright'
  1     c        [k]

 34     o (CA    [o]
  1     o        [O]

  1     p        [p]

  1     y        [i]

  1     r        [r]

  1     i        [i]

 42     gh (K    [_^_]
  1     g        [g]
 20     g (C     [g]
Found: '_0C' [sA~]
Found: '_0M1' [mil]
Found: '_2' [dYz2]
Found: '_20' [vE~t2]
sE~b'Ol(base) @@@ @@@ @@@

The 'copyright' translation and all that follows is lost somehow, replaced by a bunch of @@@ @@@ @@@.

Yet this works:

$ espeak-ng -v fr -q -X "symbole copyright 2020"
Translate 'symbole'
  1     s        [s]

  1     y        [i]
 42     ym (L11  [E~]

  1     b        [b]

 34     o (CA    [o]
  1     o        [O]
 44     o (Ce_   [O]

  1     l        [l]

 22     e (_     []
  1     e        [@]

Translate 'copyright'
  1     c        [k]

 34     o (CA    [o]
  1     o        [O]

  1     p        [p]

  1     y        [i]

  1     r        [r]

  1     i        [i]

 42     gh (K    [_^_]
  1     g        [g]
 20     g (C     [g]
Translate 'copyright'
 82     _) copy  [k0pI]
  1     c        [k]

  1     r        [r]

 78     igh (t   [aI]
  1     i        [I]

  1     t        [t]

Found: '_0C' [sA~]
Found: '_0M1' [mil]
Found: '_2' [dYz2]
Found: '_20' [vE~t2]
sE~b'Ol (en)k'0pIr,aIt(fr) dY mil v'E~