Pronounce emoji

merge-requests/21/head
Bob Mottram 2021-03-02 17:18:47 +00:00
parent 77a339b8c1
commit 46657e60f3
1 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ def speakerPronounce(baseDir: str, sayText: str, translate: {}) -> str:
convertDict = {
"Epicyon": "Epi-cyon",
"espeak": "e-speak",
"emoji": "emowji",
"clearnet": "clear-net",
"RT @": "Re-Tweet ",
"#": translate["hashtag"],
@ -100,7 +101,7 @@ def speakerReplaceLinks(sayText: str, translate: {},
for word in wordsList:
if word.startswith(':'):
if word.endswith(':'):
replacements[word] = ', emoji ' + word.replace(':', '') + ','
replacements[word] = ', emowji ' + word.replace(':', '') + ','
continue
# replace mentions, but not re-tweets
if word.startswith('@') and not prevWord.endswith('RT'):