diff options
author | Arun Isaac | 2022-06-14 00:29:38 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-16 00:26:13 +0530 |
commit | 0b7da648f555593c0eb0e587634f36081638583d (patch) | |
tree | 12f911a8a7130d748ea25aab325e50bd3b7938a1 | |
parent | b65cdd136020af43f3915f5c572c1244965fd721 (diff) | |
download | thogai-0b7da648f555593c0eb0e587634f36081638583d.tar.gz thogai-0b7da648f555593c0eb0e587634f36081638583d.tar.lz thogai-0b7da648f555593c0eb0e587634f36081638583d.zip |
Implement infixes in terms of prefixes and the attach operator.
* thogai.el (thogai-insert-translation): Implement infixes in terms of
prefixes and the attach operator by calling thogai-insert-translation
recursively.
-rw-r--r-- | thogai.el | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -248,9 +248,9 @@ External callers should always pass nil as the value." ((pred (lambda (str) (and (string-prefix-p "{^" str) (string-suffix-p "^}" str)))) - (thogai-insert-literal - (string-remove-prefix "{^" (string-remove-suffix "^}" translation))) - (setq thogai-attach-next t)) + (thogai-insert-translation + (concat "{^}{" (string-remove-prefix "{^" translation)) + non-first-part-p)) ;; Prefix ((pred (lambda (str) (string-suffix-p "^}" str))) |