aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-11-01 03:40:50 +0000
committerGlenn Morris2007-11-01 03:40:50 +0000
commit2c28c5196e15ca50ee18e5a617b1895f3e6139c3 (patch)
tree1cc6ac10fa4159daf5bfa76e3d89195de779c0fb
parent399f21c18888bab8c0712928d4812d0b420ad27e (diff)
downloademacs-2c28c5196e15ca50ee18e5a617b1895f3e6139c3.tar.gz
emacs-2c28c5196e15ca50ee18e5a617b1895f3e6139c3.zip
(footnote-numeric-regexp)
(footnote-english-upper-regexp, footnote-english-lower-regexp) (footnote-roman-lower-regexp, footnote-roman-upper-regexp): Match multi-character footnotes.
-rw-r--r--lisp/mail/footnote.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el
index be47032a0c2..b94f3bc8297 100644
--- a/lisp/mail/footnote.el
+++ b/lisp/mail/footnote.el
@@ -139,7 +139,7 @@ See also `footnote-section-tag'."
139 139
140;;; Default styles 140;;; Default styles
141;;; NUMERIC 141;;; NUMERIC
142(defconst footnote-numeric-regexp "[0-9]" 142(defconst footnote-numeric-regexp "[0-9]+"
143 "Regexp for digits.") 143 "Regexp for digits.")
144 144
145(defun Footnote-numeric (n) 145(defun Footnote-numeric (n)
@@ -151,7 +151,7 @@ Use Arabic numerals for footnoting."
151(defconst footnote-english-upper "ABCDEFGHIJKLMNOPQRSTUVWXYZ" 151(defconst footnote-english-upper "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
152 "Upper case English alphabet.") 152 "Upper case English alphabet.")
153 153
154(defconst footnote-english-upper-regexp "[A-Z]" 154(defconst footnote-english-upper-regexp "[A-Z]+"
155 "Regexp for upper case English alphabet.") 155 "Regexp for upper case English alphabet.")
156 156
157(defun Footnote-english-upper (n) 157(defun Footnote-english-upper (n)
@@ -170,7 +170,7 @@ Wrapping around the alphabet implies successive repetitions of letters."
170(defconst footnote-english-lower "abcdefghijklmnopqrstuvwxyz" 170(defconst footnote-english-lower "abcdefghijklmnopqrstuvwxyz"
171 "Lower case English alphabet.") 171 "Lower case English alphabet.")
172 172
173(defconst footnote-english-lower-regexp "[a-z]" 173(defconst footnote-english-lower-regexp "[a-z]+"
174 "Regexp of lower case English alphabet.") 174 "Regexp of lower case English alphabet.")
175 175
176(defun Footnote-english-lower (n) 176(defun Footnote-english-lower (n)
@@ -191,7 +191,7 @@ Wrapping around the alphabet implies successive repetitions of letters."
191 (50 . "l") (100 . "c") (500 . "d") (1000 . "m")) 191 (50 . "l") (100 . "c") (500 . "d") (1000 . "m"))
192 "List of roman numerals with their values.") 192 "List of roman numerals with their values.")
193 193
194(defconst footnote-roman-lower-regexp "[ivxlcdm]" 194(defconst footnote-roman-lower-regexp "[ivxlcdm]+"
195 "Regexp of roman numerals.") 195 "Regexp of roman numerals.")
196 196
197(defun Footnote-roman-lower (n) 197(defun Footnote-roman-lower (n)
@@ -204,7 +204,7 @@ Wrapping around the alphabet implies successive repetitions of letters."
204 (50 . "L") (100 . "C") (500 . "D") (1000 . "M")) 204 (50 . "L") (100 . "C") (500 . "D") (1000 . "M"))
205 "List of roman numerals with their values.") 205 "List of roman numerals with their values.")
206 206
207(defconst footnote-roman-upper-regexp "[IVXLCDM]" 207(defconst footnote-roman-upper-regexp "[IVXLCDM]+"
208 "Regexp of roman numerals. Not complete") 208 "Regexp of roman numerals. Not complete")
209 209
210(defun Footnote-roman-upper (n) 210(defun Footnote-roman-upper (n)
@@ -270,6 +270,7 @@ Wrapping around the alphabet implies successive repetitions of letters."
270(defconst footnote-latin-string "¹²³ºª§¶" 270(defconst footnote-latin-string "¹²³ºª§¶"
271 "String of Latin-1 footnoting characters.") 271 "String of Latin-1 footnoting characters.")
272 272
273;; Note not [...]+, because this style cycles.
273(defconst footnote-latin-regexp (concat "[" footnote-latin-string "]") 274(defconst footnote-latin-regexp (concat "[" footnote-latin-string "]")
274 "Regexp for Latin-1 footnoting characters.") 275 "Regexp for Latin-1 footnoting characters.")
275 276