diff options
author | Arun Isaac | 2022-06-16 00:36:42 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-16 00:43:20 +0530 |
commit | daa980d1e2becc6907998290503cc768f6aa8fcc (patch) | |
tree | d633bd6e8b0ff08883211c6cafdfc1b92359c36e | |
parent | 1eff5affa52a750a1f2f5382353659382b0c6695 (diff) | |
download | thogai-daa980d1e2becc6907998290503cc768f6aa8fcc.tar.gz thogai-daa980d1e2becc6907998290503cc768f6aa8fcc.tar.lz thogai-daa980d1e2becc6907998290503cc768f6aa8fcc.zip |
Implement the glue operator in terms of the attach operator.
* thogai.el (thogai-insert-translation): Implement glue operator in
terms of the attach operator.
-rw-r--r-- | thogai.el | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -263,10 +263,10 @@ External callers should always pass nil as the value." ((pred (lambda (str) (and (string-prefix-p "{&" str) (string-suffix-p "}" str)))) - (unless (or non-first-part-p thogai-glue) - (thogai-insert-space)) - (thogai-insert-literal - (string-remove-prefix "{&" (string-remove-suffix "}" translation))) + (thogai-insert-translation + (concat (if thogai-glue "{^}" "") + (string-remove-prefix "{&" (string-remove-suffix "}" translation))) + non-first-part-p) (setq thogai-glue t)) ;; Period, question mark or exclamation mark ((or "{.}" "{?}" "{!}") |