diff options
Diffstat (limited to 'thogai.el')
-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 "{.}" "{?}" "{!}") |