| 1 |
%% THIS IS A SAMPLE LATEX FILE DEMONSTRATING HOW TO TYPESET |
| 2 |
%% A CRITICAL EDITION WITH XeTeX, ednotes, and ArabXeTeX. |
| 3 |
%% THE TEMPLATE CAN ALSO BE APPLIED, WITH MINOR MODIFICATIONS, |
| 4 |
%% TO CRITICAL EDITIONS INVOLVING RIGHT-TO-LEFT SCRIPTS IN GENERAL |
| 5 |
%% (EITHER IN THE MAIN TEXT OR IN THE CRITICAL APPARATUS). |
| 6 |
%% THUS THE USE OF ArabXeTeX IS NONMANDATORY, BUT THE PACKAGE bidi |
| 7 |
%% IS REQUIRED FOR BIDIRECTIONALITY. |
| 8 |
%% |
| 9 |
%% François Charette, 13 December 2006 |
| 10 |
%% |
| 11 |
%% |
| 12 |
\documentclass[12pt,a4paper,oneside]{memoir} |
| 13 |
\usepackage{fontspec} |
| 14 |
\setmainfont[Ligatures=TeX]{Junicode} |
| 15 |
\usepackage[novoc]{arabxetex} |
| 16 |
\newfontfamily\arabicfont[Script=Arabic,WordSpace=2]{Amiri} |
| 17 |
%% OK, now we load ednotes with appropriate options. |
| 18 |
%% For each extra level of notes in the critical apparatus we need to |
| 19 |
%% initialize it with the appropriate option, in this case, "Bpara". |
| 20 |
%% Options "modulo", "perpage" and "right" are for line numbers: |
| 21 |
%% they will be printed at the right margin, at a certain interval |
| 22 |
%% to be set by the command \modulolinenumber below, |
| 23 |
%% and with the "perpage" option to start numeration anew on each page. |
| 24 |
%% The option "para*" is for having the notes in paragraph format without indentation. |
| 25 |
\usepackage[Bpara,modulo,right,perpage,para*]{ednotes}% relies on manyfoot and lineno |
| 26 |
|
| 27 |
%% This makes the footnoterule as wide as the \textwidth |
| 28 |
\makeatletter% |
| 29 |
\renewcommand{\footnoterule}{\kern-3\p@ |
| 30 |
\hrule width \textwidth \kern 2.6\p@} |
| 31 |
\makeatother |
| 32 |
|
| 33 |
%%EDNOTES SETUP |
| 34 |
%% |
| 35 |
%% Line numeration is printed every 5 lines: |
| 36 |
\modulolinenumbers[5] |
| 37 |
|
| 38 |
%% This is a little hack to set linenumbering in Arabic |
| 39 |
%% (the mapping is provided with ArabXeTeX): |
| 40 |
\renewcommand{\linenumberfont}{\arabicfont\addfontfeature{Mapping=arabicdigits}\tiny} |
| 41 |
%% |
| 42 |
%% The following macros redefine the default formatting |
| 43 |
%% of various aspects of the critical apparatus. |
| 44 |
%% Note that since the edition is contained in a Right-to-Left environment, |
| 45 |
%% the notes should be set RL by default, but to be certain we declare |
| 46 |
\PrecedeLevelWith{A}{\setRL} |
| 47 |
%% which puts the appropriate "hook" at the beginning of the block A of notes. |
| 48 |
%% Here are the customized macros for the default apparatus: |
| 49 |
%% The uncommented lines below are changed for typesetting the apparatus in Arabic. |
| 50 |
% \renewcommand*{\sameline}[1]{\linesfmt{##1}}% |
| 51 |
\renewcommand*{\differentlines}[2]{\linesfmt{\RL{#1\textendash#2}}}% |
| 52 |
\renewcommand*{\linesfmt}[1]{\raisebox{1ex}{\linenumberfont #1}~}% |
| 53 |
\renewcommand{\lemmafmt}[1]{#1~[ }% |
| 54 |
\renewcommand*{\pageandline}[2]{#2.\textLR{#1}}% #1 page, #2 line. |
| 55 |
% \renewcommand*{\repeatref}[1]{\raisebox{-.5ex}{$\Vert$}}% << not advisable |
| 56 |
% \renewcommand{\lemmaellipsis}{\textsymmdots}% |
| 57 |
% \renewcommand{\notefmt}[1]{##1}% |
| 58 |
|
| 59 |
%% We do not want extra footnoterules between the different levels (see manyfoot doc): |
| 60 |
\renewcommand{\extrafootnoterule}{} |
| 61 |
\SelectFootnoteRule[0]{extra} |
| 62 |
|
| 63 |
%% We can also customize the critical apparatus for a *specific* level of notes. |
| 64 |
%% In the following case we customize a level B of Left-to-Right notes. |
| 65 |
%% To achieve this with ednotes, with need to feed-in the appropriate command |
| 66 |
%% as a "hook" to manyfoot by means of: |
| 67 |
\PrecedeLevelWith{B}{\unsetRL} |
| 68 |
% Now we change the formatting of level B to take into account that it is set left-to-right: |
| 69 |
\newcommand{\Bnotefmt}{% |
| 70 |
\renewcommand*{\differentlines}[2]{\linesfmt{##1\textendash##2}}% |
| 71 |
\renewcommand{\lemmafmt}[1]{##1~]\enskip}% |
| 72 |
} |
| 73 |
|
| 74 |
%% In our example we define another level of notes, but this time as regular footnotes |
| 75 |
%% here keyed by fnsymbols. This customization is independant of ednotes, |
| 76 |
%% and relates to manyfoot directly: |
| 77 |
\SetFootnoteHook{\unsetRL}%--> must appear immediately before \DeclareNewFootnote |
| 78 |
\DeclareNewFootnote[para]{C}[fnsymbol] |
| 79 |
|
| 80 |
%% Finally, we define macros that make typing the critical edition as abstract as possible. |
| 81 |
%% First the apparatus for VARIANTS in the Arabic text (level A): |
| 82 |
\newcommand{\VAR}[2]{\Anote{\textarab{#1}}{\textarab{#2}}} |
| 83 |
%% This is for lemmas of the form \VAR{LEMMA1\<LEMMA2\>LEMMA3}{NOTE} |
| 84 |
%% where LEMMA2 is the portion omitted in the note: this macro is necessary |
| 85 |
%% because \< and \> cannot appear inside the argument of \textarab |
| 86 |
\newcommand{\VARX}[4]{\Anote{\textarab{#1}\ \<\textarab{#2}\>\ \textarab{#3}}{\textarab{#4}}} |
| 87 |
%% Second the comparisions to the Latin translation (level B): |
| 88 |
\newcommand{\VARB}[2]{\Bnote{\textarab{#1}}{#2}} |
| 89 |
%% Third, the level for plain footnotes (level C): |
| 90 |
\newcommand{\NOTE}[1]{\footnoteC{#1}} |
| 91 |
%% The typographical "object" that separates successive variants in one note: |
| 92 |
\newcommand{\SEP}{\enskip;\enskip} |
| 93 |
%% The typographical "object" that indicates additions in a MS: |
| 94 |
\newcommand{\ADD}{\textLR{\textbf{+}}\,}% |
| 95 |
%% The typographical "object" that indicates omissions in a MS: |
| 96 |
\newcommand{\OM}{\textLR{\textbf{–}}\,}% |
| 97 |
%% The typographical "object" that indicates a correction not reflected in any MS: |
| 98 |
\newcommand{\CORR}{\textarab{.s.h.h-}}% |
| 99 |
%% The typographical "object" that indicates illegible passages in a MS: |
| 100 |
\newcommand{\ILLEG}{\textarab{.gayr maqrU'}}% |
| 101 |
%% The typographical "object" that indicates a blank in a MS: |
| 102 |
\newcommand{\BLANK}{\textarab{bayA.d}}% |
| 103 |
%% The typographical "object" that indicates a marginal passage in a MS: |
| 104 |
\newcommand{\MARG}{\textarab{bi-al-hAmi^s}}% |
| 105 |
%% The typographical "object" that indicates a supralinear passage in a MS: |
| 106 |
\newcommand{\SUPERLIN}{\textarab{ta.ht al-sa.tr}}% |
| 107 |
%% The typographical "object" in the main text that indicates a lacuna in all MSS: |
| 108 |
\newcommand{\LACUNA}{\textLR{\textlangle\,\dots\textrangle}} |
| 109 |
%% The typographical "object" in the main text that indicates a restoration: |
| 110 |
\newcommand{\RESTOR}[1]{\}~#1~\{} |
| 111 |
%% |
| 112 |
%% Convenient abbreviations for referring to individual manuscripts |
| 113 |
\newcommand{\msE}{\textbf{أ}} |
| 114 |
\newcommand{\msB}{\textbf{ب}} |
| 115 |
\newcommand{\msN}{\textbf{ن}} |
| 116 |
\newcommand{\msL}{\textbf{ل}} |
| 117 |
\newcommand{\msT}{\textbf{ط}} |
| 118 |
\newcommand{\msM}{\textbf{م}} |
| 119 |
|
| 120 |
\begin{document} |
| 121 |
\thispagestyle{empty} |
| 122 |
\begin{center}\Large |
| 123 |
Extract from Abū Maʿšar, \textit{Kitāb al-Milal wa-l-Duwal}, |
| 124 |
Part 1, Chapter 1, §\,26\footnoteC{% |
| 125 |
Text, apparatus and references to the Latin translation taken |
| 126 |
from: \textit{Abū Maʿšar on Historical Astrology. The Book of |
| 127 |
Religions and Dynasties (On the Great Conjuntions)}. Edited |
| 128 |
and Translated by Keiji Yamamoto and Charles Burnett. 2 vols. |
| 129 |
Leiden: Brill, 2000 (ISBN 90 04 11733 4). |
| 130 |
Vol I pp.~22 and 24 (Arabic text) and Vol II pp.~15–16 (Latin |
| 131 |
translation). NB: This is for illustrative purposes only!} |
| 132 |
\end{center} |
| 133 |
\begin{arab} |
| 134 |
\resetlinenumber\pagewiselinenumbers |
| 135 |
wa-mi_tAl _dalika 'anna \VAR{al-qirAn}{ala_dI kAna \ADD \msN} al-dAll `alY |
| 136 |
al-.tUfAn \VAR{kAna}{\msE,\msN \SEP \OM \msB} qabl al-qirAn al-dAll `alY millaT |
| 137 |
al-`arab bi-_talA_taT 'AlAf sanaT wa-tis`ami'aT sanaT wa-_tamAn wa-_hamsIn |
| 138 |
\VAR{sanaT}{wa-ha_dihi .sUratuhA \ADD \msN} |
| 139 |
\VARB{\VAR{3950}{3958: \msE,\msN}}{3958}. |
| 140 |
wa-kAna \VARB{wAlI al-dawr}{prefuit scilicet illi orbi} |
| 141 |
\VARB{fI _dalika \VAR{al-waqt}{\msE,\msN \SEP \OM \msB}}{om.} |
| 142 |
zu.hal ma`a burj al-sara.tAn. wa-kAna al-.tUfAn ba`d _dalika |
| 143 |
\VAR{\VAR{bi-mi'atayn}{li-mi'atayn 287: \msE \SEP _tamAnIn sanaT: \msN} |
| 144 |
wa-sab`a \VAR{wa-_tamAnIn}{_tamAnIn: \msN}}{296: \msM}% |
| 145 |
\NOTE{T lacks a folio} |
| 146 |
sanaT \VAR{287}{\OM \msE}. |
| 147 |
fa-yakUn \VAR{bayna}{yawm al-jum`aT \ADD \msN} |
| 148 |
'awwal yawm min sanaT al-.tUfAn wa-bayn 'awwal yawm min al-sanaT alatI kAna |
| 149 |
fIhA al-qirAn al-dAll `alY millaT al-`arab _talA_taT 'AlAf sanaT |
| 150 |
\VAR{wa-sittami'aT sanaT}{\OM \msE} wa-'i.hdY |
| 151 |
\VAR{wa-sab`In}{wa-sab`Un: \msE,\msN} |
| 152 |
\VAR{sanaT}{`alY ha_dihi al-.sUraT \ADD \msN} 3671. |
| 153 |
wa-qad _dakara \VARB{\VAR{Ab_tnUs}% |
| 154 |
{\msE,\msN \SEP mlbws: \msB \SEP \OM \msT \SEP Asws: \msM}}{Bentemiz} |
| 155 |
wa-.gayruhu 'anna \VAR{bayna}{\OM \msN} |
| 156 |
\VARB{ibtidA'}{om.} _half 'Adam \VAR{.salwAt al-ll_ah `alayhi}{\OM \msN} |
| 157 |
wa-bayna laylaT al-jum`aT alatI kAna fIhA al-.tUfAn |
| 158 |
\VAR{'alfayn}{\msE \SEP alfAn: \msB,\msN} \VAR{wa-mi'atayn}{wa-mi'atA sanaT: \msN} |
| 159 |
\VAR{wa-sitta}{wa-sittaT: \msE,\msN} \VAR{wa-`i^srIn}{\CORR \SEP wa-`i^srUn: |
| 160 |
\msB,\msE,\msN \SEP \OM \msT \SEP 2226: \msM} sanaT 3671 \VAR{wa-^sahr"aN |
| 161 |
wA.hid"aN}{\msE \SEP wa-^sahr wA.hid: \msB,\msN} wa-\aemph{kj-} yawm"aN |
| 162 |
\VAR{wa-'arba`a}{j-: \msN} sA`At \VAR{2226}{\OM \msE,\msN}. fa-yakUn `alY |
| 163 |
ha_dihi al-jihaT mA bayna _halaf 'Adam \VAR{`alayhi al-salAm}{\OM \msN} |
| 164 |
wa-bayna \VAR{'awwal}{\OM \msE,\msN} yawm min al-sanaT alatI kAna fIhA al-qirAn |
| 165 |
al-dAll `alY millaT al-`arab \VAR{_hamsaT}{\msL,\msN \SEP _hamsa: \msB,\msE} |
| 166 |
\VAR{'AlAf}{'alf sanaT: \msN} wa-_tamAnami'aT |
| 167 |
\VAR{\VAR{wa-sab`"aN}{\CORR \SEP wa-sab`a: \msB,\msE \SEP wa-sab`aT: \msN \SEP |
| 168 |
\OM \msT \SEP 5778: \msM} \VAR{wa-tis`In}{\msE \SEP wa-tis`Un: \msB} |
| 169 |
sanaT}{wa-tis`aT wa-sab`Un sanaT 5789: \msN} |
| 170 |
\VAR{wa-^sahr"aN wA.hid"aN}{\msE \SEP wa-^sahr wA.hid: \msB,\msN} |
| 171 |
wa-\aemph{kj-} yawm"aN \VAR{wa-'arba`a}{j-: \msN} sA`At |
| 172 |
\VAR{5897}{\OM \msE,\msN}. |
| 173 |
fa-'i_dA qasamnA al-sinIn alatI \VAR{bayna}{\msE,\msN \SEP Awl \ADD \msB} |
| 174 |
qirAn al-.tUfAn wa-al-qirAn \VAR{al-dAll}{ala_dI dal: \msN} `alY |
| 175 |
\VAR{millaT}{\msL,\msE,\msN \SEP al-mlh: \msB} al-`arab `alY |
| 176 |
\VAR{_tala_tami'aT wa-sittIn wa-'a_ha_dnA}{s.s: \msN} li-kull burjiN sanaT |
| 177 |
\VAR{wa-ibtada'nA}{wa-ibtadY: \msE,\msN} |
| 178 |
\VAR{bi-al-.tar.h}{al-.tar.h li-isti_hrAj burj al-muntahY: \msN} |
| 179 |
min al-.hamal intahat \VAR{al-sanaT}{\OM \msN} 'ilY \VAR{al-.hUt}{al-jawzA': \msN}.% |
| 180 |
\NOTE{Because 3950 = 360 × 10 + 350.} |
| 181 |
\VAR{fa-'in}{knA \ADD \msN} qasamnA tilka al-sinIn% |
| 182 |
\NOTE{That is, 3950.} |
| 183 |
`alY _tala_tami'aT wa-sittIn wa-'a_ha_dnA li-kulli dawriN burj"aN |
| 184 |
\VARB{\VAR{wa-ibtada'nA}{wa-ibtadY: \msE,\msN} |
| 185 |
\VAR{bi-al-'ilqA'}{bi-al-.tar.h: \msN}}{proiecerimus} |
| 186 |
min al-burj al-mudabbir \VAR{ala_dI}{\OM \msN} \VARB{kAna |
| 187 |
\VAR{li-l-dawr}{al-dawr: \msN}}{fuit orbis} fI _dalika |
| 188 |
\VAR{al-waqt}{al-burj: \msN} |
| 189 |
\VARB{\VAR{al-dAll `alY al-.tUfAn}{\OM \msE,\msN}}{om.} ala_dI huwa |
| 190 |
\VAR{al-sara.tAn \VAR{intahY}{wa-intihA': \msN}}{al-sara.tAnI intihA' intihA': \msE} |
| 191 |
al-dawr \VAR{fI al-qirAn}{min al-burj: \msN} al-dAll `alY |
| 192 |
\VAR{al-millaT}{millaT al-`arab: \msN} 'ilY al-jawzA'. wa-'in 'a`.taynA li-kull |
| 193 |
kawkab dawr"aN min al-'adwAr wa-ibtada'nA \VAR{bi-al-'ilqA'}{bi-al-.tar.h: \msN} |
| 194 |
min \VAR{al-kawkab}{al-kawAkib: \msN} |
| 195 |
\VARB{ala_dI li-l-dawr}{cuius est orbis} |
| 196 |
fI al-qirAn al-dAll `alY al-millaT intahY al-`adad 'ilY al-zuhraT. |
| 197 |
wa-'in 'alqaynA min .tAli` al-qirAn ala_dI kAna fI ra's al-.hamal li-kull |
| 198 |
darajaT sanaT intahY fI al-qirAn al-dAll `alY al-millaT 'ilY \aemph{k} darajaT |
| 199 |
min al-.hUt. \VAR{wa-kAna}{fa-kAna: \msE} al-mubtazz `alY al-dawr wa-`alY |
| 200 |
\VARX{.sA.hib al-.tAli` wa-.sA.hib}% |
| 201 |
{burj al-qirAn al-mirrI_h, wa-kAna al-tadbIr li-l-rub` al-'awwal |
| 202 |
\VAR{ala_dI huwa}{\msE \SEP \OM \msB,\msN} \aemph{.s} sanaT |
| 203 |
min ibtidA' al-qirAn al-dAll}% |
| 204 |
{`alY}{\OM \msN} dawlaT al-`arab. wa-al-rub` al-_tAnI |
| 205 |
\VAR{li-l-^sams wa-al-rub`}{w: \msN} al-_tAli_t li-`u.tArid |
| 206 |
\VAR{wa-al-rub`}{w: \msN} al-rAbi` li-zu.hal, wa-_dalika `alY qadr |
| 207 |
\VARB{ibtizAzAt}{dominium} al-kawAkib `alY .sA.hib al-dawr wa-`alY al-.tAli` |
| 208 |
wa-burj al-qirAn \VAR{wa-mu^sArikatihimA}{\msE \SEP wa-mu^sArikatihA: \msB,\msN} |
| 209 |
li-.sA.hib al-dawr al-'awwal ala_dI huwa al-zuhraT. |
| 210 |
\end{arab} |
| 211 |
\end{document} |