Function: footnote--hebrew-numeric
footnote--hebrew-numeric is a byte-compiled function defined in
footnote.el.gz.
Signature
(footnote--hebrew-numeric N)
Documentation
Supports 9999 footnotes, then rolls over.
Source Code
;; Defined in /usr/src/emacs/lisp/mail/footnote.el.gz
(defun footnote--hebrew-numeric (n)
"Supports 9999 footnotes, then rolls over."
(let* ((n (+ (mod n 10000) (/ n 10000)))
(thousands (/ n 1000))
(hundreds (/ (mod n 1000) 100))
(tens (/ (mod n 100) 10))
(units (mod n 10))
(special (cond
((not (= tens 1)) nil)
((= units 5) "טו")
((= units 6) "טז"))))
(concat
(when (/= 0 thousands)
(concat (nth (1- thousands) (nth 0 footnote-hebrew-numeric)) "'"))
(when (/= 0 hundreds)
(nth (1- hundreds) (nth 2 footnote-hebrew-numeric)))
(or special
(concat
(when (/= 0 tens) (nth (1- tens) (nth 1 footnote-hebrew-numeric)))
(when (/= 0 units) (nth (1- units) (nth 0 footnote-hebrew-numeric))))))))