aboutsummaryrefslogtreecommitdiff
path: root/isar
diff options
context:
space:
mode:
authorDavid Aspinall2008-01-28 12:10:12 +0000
committerDavid Aspinall2008-01-28 12:10:12 +0000
commit7e3b1ca2dc1d94df5a4e6184ea0593b80a765f48 (patch)
tree9ce1df90557527180ac8811022be7bbe62ac48e1 /isar
parent808995785f0a04b5cd8c6d18afa952ad3b35c135 (diff)
Add shortcuts for tokens.
Diffstat (limited to 'isar')
-rw-r--r--isar/isar-unicode-tokens.el77
1 files changed, 75 insertions, 2 deletions
diff --git a/isar/isar-unicode-tokens.el b/isar/isar-unicode-tokens.el
index 0564d28f..414b926a 100644
--- a/isar/isar-unicode-tokens.el
+++ b/isar/isar-unicode-tokens.el
@@ -5,8 +5,10 @@
;; Author: David Aspinall <David.Aspinall@ed.ac.uk>
;;
;; This file is loaded by `proof-unicode-tokens.el'.
-;; It sets the variables defined at the top of unicode-tokens.el.
-;; unicode-tokens-<foo> is set from isar-<foo>.
+;;
+;; It sets the variables defined at the top of unicode-tokens.el,
+;; unicode-tokens-<foo> is set from isar-<foo>. See the corresponding
+;; variable for documentation.
;;
(defconst isar-token-format "\\<%s>")
@@ -303,6 +305,77 @@
("ffl" . "ffl")
))
+(defvar isar-shortcut-alist
+ '(; short cut, unicode string
+ ("<>" . "⋄")
+ ("|>" . "⊳")
+ ("\\/" . "∨")
+ ("/\\" . "∧")
+ ("+O" . "⊕")
+ ("-O" . "⊖")
+ ("xO" . "⊗")
+ ("/O" . "⊘")
+ (".O" . "⊙")
+ ("|+" . "†")
+ ("|++" . "‡")
+ ("<=" . "≤")
+ ("|-" . "⊢")
+ (">=" . "≥")
+ ("-|" . "⊣")
+ ("||" . "∥")
+ ("==" . "≡")
+ ("~=" . "≃")
+ ("~~~" . "≍")
+ ("~~" . "≈")
+ ("~==" . "≅")
+ ("|<>|" . "⋈")
+ ("|=" . "⊨")
+ ("=." . "≐")
+ ("_|_" . "⊥")
+ ("</" . "≮")
+ (">=/" . "≱")
+ ("=/" . "≠")
+ ("==/" . "≢")
+ ("~/" . "≁")
+ ("~=/" . "≄")
+ ("~~/" . "≉")
+ ("~==/" . "≇")
+ ("<-" . "←")
+ ("<=" . "⇐")
+ ("->" . "→")
+ ("=>" . "⇒")
+ ("<->" . "↔")
+ ("<=>" . "⇔")
+ ("|->" . "↦")
+ ("<--" . "⟵")
+ ("<==" . "⟸")
+ ("-->" . "⟶")
+ ("==>" . "⟹")
+ ("<==>" . "⟷")
+ ("|-->" . "⟼")
+ ("<--" . "←⎯")
+ ("<-->" . "⟷")
+ ("<<" . "⟪")
+ ("[|" . "⟦")
+ (">>" . "⟫")
+ ("|]" . "⟧")
+ ("``" . "”")
+ ("''" . "“")
+ ("--" . "–")
+ ("---" . "—")
+ ("''" . "″")
+ ("'''" . "‴")
+ ("''''" . "⁗")
+ ("nat" . "ℕ")
+ ("int" . "ℤ")
+ ("rat" . "ℚ")
+ ("real" . "ℝ")
+ ("complex" . "ℂ")
+ (":=" . "≔")
+ ("euro" . "€")
+ ("yen" . "¥")
+ ("cent" . "¢")))
+
(provide 'isar-unicode-tokens)