branch: externals/greader
commit 0c0c400561b0c028c8ae07cdd75731c3a26f3e42
Author: Michelangelo Rodriguez <[email protected]>
Commit: Michelangelo Rodriguez <[email protected]>
greader-espeak.el:
greader-espeak-set-punctuation function added.
---
greader-espeak.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/greader-espeak.el b/greader-espeak.el
index d8d2cfa..cc61dc1 100644
--- a/greader-espeak.el
+++ b/greader-espeak.el
@@ -54,6 +54,14 @@ this variable determines authomatically if espeak is present
in your PATH enviro
"tries to find espeak executable in PATH.
If it's present, returns absolute path of espeak, else returns nil."
(locate-file "espeak" exec-path))
+(defun greader-espeak-set-punctuation
+ (&optional switch)
+ "sets espeak punctuation on or off.
+this function accepts only nil or t."
+ (if switch
+ "--punct"
+ greader-espeak-punctuation))
+
(defun greader-espeak (command &optional arg &rest args)
"back-end main function of greader-espeak."
(pcase command