<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:large;color:#20124d"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 17, 2017 at 11:40 PM, Boruch Baum <span dir="ltr"><<a href="mailto:boruch_baum@gmx.com" target="_blank">boruch_baum@gmx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ref: <a href="http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29759" rel="noreferrer" target="_blank">http://debbugs.gnu.org/cgi/<wbr>bugreport.cgi?bug=29759</a><br>
<br>
I honestly don't remember if ever in the past I've used Hebrew footnote<br>
numbering in emacs, but the current state of affairs is that although the<br>
documentation indicates that the option is available, the file seems<br>
nowhere to be found. The above reference reports the issue, and includes<br>
the following code snippet, so if anyone has an improvement, please post<br>
it there first.<br>
<br>
(defconst footnote-hebrew-regex "[אבגדהוזחטיכלמנסעפצקרשת]+")<br>
(defconst footnote-hebrew '(<br>
("א" "ב" "ג" "ד" "ה" "ו" "ז" "ח" "ט")<br>
("י" "כ" "ל" "מ" "נ" "ס" "ע" "פ" "צ")<br>
("ק" "ר" "ש" "ת" "תק" "תר"" תש" "תת" "תתק")))<br>
(defun Footnote-hebrew(n)<br>
"Supports 9999 footnotes, then rolls over."<br>
(let*<br>
((n (+ (mod n 10000) (/ n 10000)))<br>
(thousands (/ n 1000))<br>
(hundreds (/ (mod n 1000) 100))<br>
(tens (/ (mod n 100) 10))<br>
(units (mod n 10))<br>
(special (if (not (= tens 1)) nil<br>
(or (when (= units 5) "טו")<br>
(when (= units 6) "טז")))))<br>
(concat<br>
(when (/= 0 thousands) (concat (nth (1- thousands) (nth 0 footnote-hebrew)) "'"))<br>
(when (/= 0 hundreds) (nth (1- hundreds) (nth 2 footnote-hebrew)))<br>
(if special special<br>
(concat<br>
(when (/= 0 tens) (nth (1- tens) (nth 1 footnote-hebrew)))<br>
(when (/= 0 units) (nth (1- units) (nth 0 footnote-hebrew))))))))<br>
(add-to-list 'footnote-style-alist `(hebrew Footnote-hebrew ,footnote-hebrew-regex) t)<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
hkp://<a href="http://keys.gnupg.net" rel="noreferrer" target="_blank">keys.gnupg.net</a><br>
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0<br>
<br>
______________________________<wbr>_________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" rel="noreferrer" target="_blank">http://mailman.cs.huji.ac.il/<wbr>mailman/listinfo/linux-il</a><br>
</font></span></blockquote></div><br></div>