mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main
commit
79377d7ef6
|
|
@ -83,6 +83,7 @@ def _speakerPronounce(baseDir: str, sayText: str, translate: {}) -> str:
|
|||
"sql": "S-Q-L",
|
||||
"PSQL": "Postgres S-Q-L",
|
||||
"SQL": "S-Q-L",
|
||||
"coop": "co-op",
|
||||
"KMail": "K-Mail",
|
||||
"gmail": "G-mail",
|
||||
"Gmail": "G-mail",
|
||||
|
|
@ -101,6 +102,7 @@ def _speakerPronounce(baseDir: str, sayText: str, translate: {}) -> str:
|
|||
":-)": '. ' + translate["smile"],
|
||||
":-(": '. ' + translate["sad face"],
|
||||
";-)": '. ' + translate["wink"],
|
||||
"?": "? ",
|
||||
"*": "",
|
||||
"(": ",",
|
||||
")": ","
|
||||
|
|
|
|||
|
|
@ -25,9 +25,10 @@ def _waitForKeypress(timeout: int, debug: bool) -> str:
|
|||
i, o, e = select.select([sys.stdin], [], [], timeout)
|
||||
|
||||
if (i):
|
||||
text = sys.stdin.readline().strip()
|
||||
if debug:
|
||||
print("Text entered: " + sys.stdin.readline().strip())
|
||||
return sys.stdin.readline().strip()
|
||||
print("Text entered: " + text)
|
||||
return text
|
||||
else:
|
||||
if debug:
|
||||
print("Timeout")
|
||||
|
|
|
|||
Loading…
Reference in New Issue