Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main

main
Bob Mottram 2021-03-04 15:55:17 +00:00
commit 79377d7ef6
2 changed files with 5 additions and 2 deletions

View File

@ -83,6 +83,7 @@ def _speakerPronounce(baseDir: str, sayText: str, translate: {}) -> str:
"sql": "S-Q-L", "sql": "S-Q-L",
"PSQL": "Postgres S-Q-L", "PSQL": "Postgres S-Q-L",
"SQL": "S-Q-L", "SQL": "S-Q-L",
"coop": "co-op",
"KMail": "K-Mail", "KMail": "K-Mail",
"gmail": "G-mail", "gmail": "G-mail",
"Gmail": "G-mail", "Gmail": "G-mail",
@ -101,6 +102,7 @@ def _speakerPronounce(baseDir: str, sayText: str, translate: {}) -> str:
":-)": '. ' + translate["smile"], ":-)": '. ' + translate["smile"],
":-(": '. ' + translate["sad face"], ":-(": '. ' + translate["sad face"],
";-)": '. ' + translate["wink"], ";-)": '. ' + translate["wink"],
"?": "? ",
"*": "", "*": "",
"(": ",", "(": ",",
")": "," ")": ","

View File

@ -25,9 +25,10 @@ def _waitForKeypress(timeout: int, debug: bool) -> str:
i, o, e = select.select([sys.stdin], [], [], timeout) i, o, e = select.select([sys.stdin], [], [], timeout)
if (i): if (i):
text = sys.stdin.readline().strip()
if debug: if debug:
print("Text entered: " + sys.stdin.readline().strip()) print("Text entered: " + text)
return sys.stdin.readline().strip() return text
else: else:
if debug: if debug:
print("Timeout") print("Timeout")