From 1eff5affa52a750a1f2f5382353659382b0c6695 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 14 Jun 2022 01:24:23 +0530 Subject: Implement period, question mark and exclamation mark. * thogai.el (thogai-insert-translation): Implement period, question mark and exclamation mark. --- thogai.el | 5 +++++ 1 file changed, 5 insertions(+) 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)) -- cgit v1.2.3