aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTassilo Horn2016-08-30 20:30:46 +0200
committerTassilo Horn2016-08-30 20:30:46 +0200
commit1145322a114bb7359fcfdbdce6ccb7d9d44c82ba (patch)
tree44b575bdf55613e2168d780ae9b8f2563a74f25a
parent6730432053f3ad2ce144db2fcd685ee1ad76f881 (diff)
downloademacs-1145322a114bb7359fcfdbdce6ccb7d9d44c82ba.tar.gz
emacs-1145322a114bb7359fcfdbdce6ccb7d9d44c82ba.zip
Fix rules for \phi and \varphi which were reversed
* lisp/leim/quail/latin-ltx.el: Special-case phi/varphi because those are reversed in ucs-names. Also remove FIXME stating sigma/varsigma were reversed which is not true (anymore?).
-rw-r--r--lisp/leim/quail/latin-ltx.el18
1 files changed, 14 insertions, 4 deletions
diff --git a/lisp/leim/quail/latin-ltx.el b/lisp/leim/quail/latin-ltx.el
index c265add83c1..fb3d2ba4902 100644
--- a/lisp/leim/quail/latin-ltx.el
+++ b/lisp/leim/quail/latin-ltx.el
@@ -239,10 +239,15 @@ system, including many technical ones. Examples:
239 "\\`\\([^- ]+\\) SIGN\\'") 239 "\\`\\([^- ]+\\) SIGN\\'")
240 240
241 ((lambda (name char) 241 ((lambda (name char)
242 (concat "\\" (funcall (if (match-end 1) #' capitalize #'downcase) 242 ;; "GREEK SMALL LETTER PHI" (which is \phi) and "GREEK PHI SYMBOL"
243 (match-string 2 name)))) 243 ;; (which is \varphi) are reversed in `ucs-names', so we define
244 ;; them manually.
245 (unless (string-match-p "\\<PHI\\>" name)
246 (concat "\\" (funcall (if (match-end 1) #' capitalize #'downcase)
247 (match-string 2 name)))))
244 "\\`GREEK \\(?:SMALL\\|CAPITA\\(L\\)\\) LETTER \\([^- ]+\\)\\'") 248 "\\`GREEK \\(?:SMALL\\|CAPITA\\(L\\)\\) LETTER \\([^- ]+\\)\\'")
245 249
250 ("\\phi" ?ϕ)
246 ("\\Box" ?□) 251 ("\\Box" ?□)
247 ("\\Bumpeq" ?≎) 252 ("\\Bumpeq" ?≎)
248 ("\\Cap" ?⋒) 253 ("\\Cap" ?⋒)
@@ -628,12 +633,17 @@ system, including many technical ones. Examples:
628 ("\\vDash" ?⊨) 633 ("\\vDash" ?⊨)
629 634
630 ((lambda (name char) 635 ((lambda (name char)
631 (concat "\\var" (downcase (match-string 1 name)))) 636 ;; "GREEK SMALL LETTER PHI" (which is \phi) and "GREEK PHI SYMBOL"
637 ;; (which is \varphi) are reversed in `ucs-names', so we define
638 ;; them manually.
639 (unless (string-match-p "\\<PHI\\>" name)
640 (concat "\\var" (downcase (match-string 1 name)))))
632 "\\`GREEK \\([^- ]+\\) SYMBOL\\'") 641 "\\`GREEK \\([^- ]+\\) SYMBOL\\'")
633 642
643 ("\\varphi" ?φ)
634 ("\\varprime" ?′) 644 ("\\varprime" ?′)
635 ("\\varpropto" ?∝) 645 ("\\varpropto" ?∝)
636 ("\\varsigma" ?ς) ;FIXME: Looks reversed with the non\var. 646 ("\\varsigma" ?ς)
637 ("\\vartriangleleft" ?⊲) 647 ("\\vartriangleleft" ?⊲)
638 ("\\vartriangleright" ?⊳) 648 ("\\vartriangleright" ?⊳)
639 ("\\vdash" ?⊢) 649 ("\\vdash" ?⊢)