mirror of https://gitlab.com/bashrc2/epicyon
Pronounce emoji
parent
77a339b8c1
commit
46657e60f3
|
@ -48,6 +48,7 @@ def speakerPronounce(baseDir: str, sayText: str, translate: {}) -> str:
|
||||||
convertDict = {
|
convertDict = {
|
||||||
"Epicyon": "Epi-cyon",
|
"Epicyon": "Epi-cyon",
|
||||||
"espeak": "e-speak",
|
"espeak": "e-speak",
|
||||||
|
"emoji": "emowji",
|
||||||
"clearnet": "clear-net",
|
"clearnet": "clear-net",
|
||||||
"RT @": "Re-Tweet ",
|
"RT @": "Re-Tweet ",
|
||||||
"#": translate["hashtag"],
|
"#": translate["hashtag"],
|
||||||
|
@ -100,7 +101,7 @@ def speakerReplaceLinks(sayText: str, translate: {},
|
||||||
for word in wordsList:
|
for word in wordsList:
|
||||||
if word.startswith(':'):
|
if word.startswith(':'):
|
||||||
if word.endswith(':'):
|
if word.endswith(':'):
|
||||||
replacements[word] = ', emoji ' + word.replace(':', '') + ','
|
replacements[word] = ', emowji ' + word.replace(':', '') + ','
|
||||||
continue
|
continue
|
||||||
# replace mentions, but not re-tweets
|
# replace mentions, but not re-tweets
|
||||||
if word.startswith('@') and not prevWord.endswith('RT'):
|
if word.startswith('@') and not prevWord.endswith('RT'):
|
||||||
|
|
Loading…
Reference in New Issue