diff options
author | Arun Isaac | 2022-06-16 01:44:25 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-16 01:44:25 +0530 |
commit | 3763e656e21bda0cc5f6cd60a9225cf2de2b25fb (patch) | |
tree | 13d510f5f9309a4c63cff707ce66e5d2d410b806 | |
parent | a6b171c122388e07aa3b70b71a1a761221b6713a (diff) | |
download | thogai-3763e656e21bda0cc5f6cd60a9225cf2de2b25fb.tar.gz thogai-3763e656e21bda0cc5f6cd60a9225cf2de2b25fb.tar.lz thogai-3763e656e21bda0cc5f6cd60a9225cf2de2b25fb.zip |
Implement capitalization carry suffix.
* thogai.el (thogai-insert-translation): Implement capitalization
carry suffix.
-rw-r--r-- | thogai.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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))) |