aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-06-14 01:24:23 +0530
committerArun Isaac2022-06-16 00:26:13 +0530
commit1eff5affa52a750a1f2f5382353659382b0c6695 (patch)
tree1ebb3a3380977c60f2da4accd9ce0ec07fd37692
parent0b7da648f555593c0eb0e587634f36081638583d (diff)
downloadthogai-1eff5affa52a750a1f2f5382353659382b0c6695.tar.gz
thogai-1eff5affa52a750a1f2f5382353659382b0c6695.tar.lz
thogai-1eff5affa52a750a1f2f5382353659382b0c6695.zip
Implement period, question mark and exclamation mark.
* thogai.el (thogai-insert-translation): Implement period, question mark and exclamation mark.
-rw-r--r--thogai.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/thogai.el b/thogai.el
index 933a565..a893c80 100644
--- a/thogai.el
+++ b/thogai.el
@@ -268,6 +268,11 @@ External callers should always pass nil as the value."
(thogai-insert-literal
(string-remove-prefix "{&" (string-remove-suffix "}" translation)))
(setq thogai-glue t))
+ ;; Period, question mark or exclamation mark
+ ((or "{.}" "{?}" "{!}")
+ (insert (string-remove-prefix "{" (string-remove-suffix "}" translation)))
+ (insert " ")
+ (setq thogai-capitalize-next-word t))
;; Capitalize next word.
("{-|}"
(setq thogai-capitalize-next-word t))