From 3763e656e21bda0cc5f6cd60a9225cf2de2b25fb Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 16 Jun 2022 01:44:25 +0530 Subject: Implement capitalization carry suffix. * thogai.el (thogai-insert-translation): Implement capitalization carry suffix. --- thogai.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/thogai.el b/thogai.el index 7637ab4..06db17c 100644 --- a/thogai.el +++ b/thogai.el @@ -267,6 +267,11 @@ External callers should always pass nil as the value." (string-remove-prefix "{~|" (string-remove-suffix "}" translation)) non-first-part-p)) (setq thogai-capitalize-next-word capitalization-state))) + ;; Suffix and carry capitalization. + ((pred (lambda (str) + (string-prefix-p "{^~|" str))) + (thogai-insert-translation + (concat "{^}{" (string-remove-prefix "{^" translation)))) ;; Glue operator ((pred (lambda (str) (string-prefix-p "{&" str))) -- cgit v1.2.3