aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2021-03-14 10:22:06 +0100
committerRobert Alessi <alessi@robertalessi.net>2021-03-14 10:22:06 +0100
commitfd2c4128141939720f8122c58807051d63fb1f59 (patch)
tree6ca3f8c77074972e5d6564cb063405a04506d2cc
parent01b4f2311a844a702ca390deb66ee1100e64aed9 (diff)
downloadekdosis-fd2c4128141939720f8122c58807051d63fb1f59.tar.gz
new general hook 'readingstyle'. better handling of 'postrefnum'
-rw-r--r--Makefile6
-rw-r--r--ekdosis.dtx313
2 files changed, 278 insertions, 41 deletions
diff --git a/Makefile b/Makefile
index 649af77..eade9cd 100644
--- a/Makefile
+++ b/Makefile
@@ -29,16 +29,16 @@ $(NAME).pdf: testsamples $(NAME).dtx
29 @ echo "Making the sample files first..." 29 @ echo "Making the sample files first..."
30 @ $(MAKE) --directory=$(SAMPLES) >/dev/null 30 @ $(MAKE) --directory=$(SAMPLES) >/dev/null
31 @ echo "Done making samples" 31 @ echo "Done making samples"
32 @ echo "Building the documentation of $(NAME). Please be patient..." 32 @ echo "Building the documentation of $(NAME) with $(CMP). Please be patient..."
33 @ $(do_documentation) 33 @ $(do_documentation)
34 @ echo "Now calling biber" 34 @ echo "Now calling biber"
35 @ biber $(NAME) >/dev/null 35 @ biber $(NAME) >/dev/null
36 @ echo "Returning to lualatex..." 36 @ echo "Returning to $(CMP)..."
37 @ for run in {1..4}; do $(do_documentation); done 37 @ for run in {1..4}; do $(do_documentation); done
38 @ echo "Building indexes..." 38 @ echo "Building indexes..."
39 @ if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi 39 @ if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi
40 @ if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi 40 @ if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi
41 @ echo "Final runs of lualatex..." 41 @ echo "Final runs of $(CMP)..."
42 @ for run in {1..3}; do $(call do_documentation); done 42 @ for run in {1..3}; do $(call do_documentation); done
43 @ echo "Done" 43 @ echo "Done"
44 44
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 9e1ead5..1c35edb 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -104,6 +104,103 @@ along with this program. If not, see
104 </imprint> 104 </imprint>
105 </monogr> 105 </monogr>
106 </biblStruct> 106 </biblStruct>
107 <biblStruct type="book" xml:id="shGildon1710">
108 <monogr>
109 <title level="m">Works of Mr. William Shakespeare</title>
110 <editor>
111 <forename>Charles</forename>
112 <surname>Gildon</surname>
113 </editor>
114 <imprint>
115 <biblScope unit="volume">17</biblScope>
116 <publisher>E. Curl and E. Sanders</publisher>
117 <date>1710</date>
118 </imprint>
119 </monogr>
120 </biblStruct>
121 <biblStruct type="book" xml:id="shGildon1714">
122 <monogr>
123 <title level="m">Works of Mr. William Shakespeare</title>
124 <editor>
125 <forename>Charles</forename>
126 <surname>Gildon</surname>
127 </editor>
128 <edition>2</edition>
129 <imprint>
130 <biblScope unit="volume">17</biblScope>
131 <publisher>E. Curl and E. Sanders</publisher>
132 <date>1714</date>
133 </imprint>
134 </monogr>
135 </biblStruct>
136 <biblStruct type="book" xml:id="shSewell1725">
137 <monogr>
138 <title level="m">Venus and Adonis, Tarquin and Lucrece, and Mr. Shakespeare's Miscellany Poems</title>
139 <editor>
140 <name>Sewell</name>
141 </editor>
142 <imprint>
143 <publisher>A. Bettesworth</publisher>
144 <date>1725</date>
145 </imprint>
146 </monogr>
147 </biblStruct>
148 <biblStruct type="book" xml:id="shEwing1771">
149 <monogr>
150 <title level="m">Poems, containing I. Venus and Adonis... IV. Sonnets</title>
151 <author>
152 <forename>William</forename>
153 <surname>Shakespeare</surname>
154 </author>
155 <editor>
156 <forename>T.</forename>
157 <surname>Ewing</surname>
158 </editor>
159 <imprint>
160 <pubPlace>Dublin</pubPlace>
161 <date>1771</date>
162 </imprint>
163 </monogr>
164 </biblStruct>
165 <biblStruct type="book" xml:id="shHudson1856">
166 <monogr>
167 <title level="m">Works of W. Shakespeare</title>
168 <editor>
169 <forename>H.N.</forename>
170 <surname>Hudson</surname>
171 </editor>
172 <imprint>
173 <pubPlace>Boston</pubPlace>
174 <publisher>Munroe</publisher>
175 <date>1856</date>
176 </imprint>
177 </monogr>
178 </biblStruct>
179 <biblStruct type="book" xml:id="shWalsh1908">
180 <monogr>
181 <title level="m">Shakespeare's Complete Sonnets</title>
182 <editor>
183 <forename>C.M.</forename>
184 <surname>Walsh</surname>
185 </editor>
186 <imprint>
187 <date>1908</date>
188 </imprint>
189 </monogr>
190 </biblStruct>
191 <biblStruct type="book" xml:id="shButler1899">
192 <monogr>
193 <title level="m">Shakespeare's Sonnets</title>
194 <editor>
195 <forename>Samuel</forename>
196 <surname>Butler</surname>
197 </editor>
198 <imprint>
199 <publisher>Fifield</publisher>
200 <date>1899</date>
201 </imprint>
202 </monogr>
203 </biblStruct>
107</listBibl> 204</listBibl>
108\end{filecontents} 205\end{filecontents}
109\begin{filecontents}[overwrite]{\jobname.bib} 206\begin{filecontents}[overwrite]{\jobname.bib}
@@ -155,6 +252,17 @@ along with this program. If not, see
155 location = {Cambridge, MA. -- London} 252 location = {Cambridge, MA. -- London}
156} 253}
157 254
255@Book{McDonald1916,
256 editor = {MacDonald Alden, Raymond},
257 title = {The Sonnets of Shakespeare},
258 date = 1916,
259 titleaddon = {From the Quarto of 1609 with Variorum Readings and
260 Commentary},
261 publisher = {Houghton Mifflin Co.},
262 options = {useauthor=false, useeditor=true},
263 location = {Boston}
264}
265
158@Book{ReynoldsWilson1991, 266@Book{ReynoldsWilson1991,
159 author = {Reynolds, L. D. and Wilson, N. G}, 267 author = {Reynolds, L. D. and Wilson, N. G},
160 title = {Scribes and Scholars}, 268 title = {Scribes and Scholars},
@@ -378,7 +486,22 @@ along with this program. If not, see
378 origDate=s. XV] 486 origDate=s. XV]
379\DeclareSource{sDrak}{\emph{Drakenborch}} 487\DeclareSource{sDrak}{\emph{Drakenborch}}
380% Homer, Odyssey 488% Homer, Odyssey
381\DeclareScholar{Zen}{Zen.}[rawname=Zenodotus] 489\DeclareScholar{hZen}{Zen.}[rawname=Zenodotus]
490% Shakespeare's Sonnets:
491\NewDocumentEnvironment{ekdcenter}{}{\par\centering}{\nobreak\par}
492\NewDocumentCommand{\ekdlettrine}{mm}{%
493 \adjustbox{valign=t,raise=-0.75ex}{\Huge #1}\textsc{#2}%
494}
495\TeXtoTEIPat{\ekdlettrine {#1}{#2}}{<hi rend="smallcaps">#1#2</hi>}
496\DeclareSource{shGildon1710}{G}
497\DeclareSource{shGildon1714}{G\textsuperscript{2}}
498\DeclareSource{shSewell1725}{S}
499\DeclareSource{shEwing1771}{E}
500\DeclareSource{shHudson1856}{Hu\textsuperscript{2}}
501\DeclareSource{shWalsh1908}{Wa}
502\DeclareSource{shButler1899}{But}
503\DeclareScholar{shGod}{Godwin}[rawname=Godwin]
504\DeclareScholar{shStee}{Stee}[rawname=Godwin, note=Notes in Malone]
382\end{filecontents} 505\end{filecontents}
383\documentclass{ltxdoc} 506\documentclass{ltxdoc}
384 %\usepackage[letterpaper,margin=25mm,left=50mm,nohead]{geometry} 507 %\usepackage[letterpaper,margin=25mm,left=50mm,nohead]{geometry}
@@ -387,6 +510,7 @@ along with this program. If not, see
387\doxitem{Option}{option}{options} 510\doxitem{Option}{option}{options}
388\usepackage{microtype} 511\usepackage{microtype}
389\usepackage[no-math]{fontspec} 512\usepackage[no-math]{fontspec}
513\defaultfontfeatures{Renderer=Harfbuzz}
390\usepackage[latin.classic,greek.ancient,american]{babel} 514\usepackage[latin.classic,greek.ancient,american]{babel}
391\babelfont{rm}{Old Standard} 515\babelfont{rm}{Old Standard}
392\babelfont{sf}{NewComputerModern Sans} 516\babelfont{sf}{NewComputerModern Sans}
@@ -397,6 +521,9 @@ along with this program. If not, see
397 ]{Old Standard} 521 ]{Old Standard}
398\babelfont[greek]{sf}[Script=Greek]{NewComputerModern Sans} 522\babelfont[greek]{sf}[Script=Greek]{NewComputerModern Sans}
399\babelfont[greek]{tt}[Script=Greek]{NewComputerModern Mono} 523\babelfont[greek]{tt}[Script=Greek]{NewComputerModern Mono}
524\newfontfamily{\junicode}{Junicode}[
525 Ligatures=TeX,
526 RawFeature={+hist}]
400\babeltags{ancientgreek = greek} 527\babeltags{ancientgreek = greek}
401\def\sg#1{\textancientgreek{#1}} 528\def\sg#1{\textancientgreek{#1}}
402\usepackage[Old Standard]{mathfont} 529\usepackage[Old Standard]{mathfont}
@@ -2286,7 +2413,7 @@ friend
2286 \lem[resp=egomute, type=emendation, nosep]{\supplied{τῶν πυρετῶν}} 2413 \lem[resp=egomute, type=emendation, nosep]{\supplied{τῶν πυρετῶν}}
2287 \note[post=\ekdsep]{addidi (\arb{^gamI`a 'l-.hummayAti} 2414 \note[post=\ekdsep]{addidi (\arb{^gamI`a 'l-.hummayAti}
2288 \getsiglum{Gal})} 2415 \getsiglum{Gal})}
2289 \rdg[nordg, source=Gal]{\arb{^gamI`a 'l-.hummayAti}} 2416 \rdg[nordg, source=Gal]{\arb{al-.hummayAti}}
2290 \rdg[wit=codd, source=edd, alt=om.]{} 2417 \rdg[wit=codd, source=edd, alt=om.]{}
2291 }, 2418 },
2292\end{ekdosis} 2419\end{ekdosis}
@@ -2323,7 +2450,7 @@ friend
2323% \lem[resp=egomute, type=emendation, nosep]{\supplied{τῶν πυρετῶν}} 2450% \lem[resp=egomute, type=emendation, nosep]{\supplied{τῶν πυρετῶν}}
2324% \note[post=\ekdsep]{addidi (\arb{^gamI`a 'l-.hummayAti} 2451% \note[post=\ekdsep]{addidi (\arb{^gamI`a 'l-.hummayAti}
2325% \getsiglum{Gal})} 2452% \getsiglum{Gal})}
2326% \rdg[nordg, source=Gal]{\arb{^gamI`a 'l-.hummayAti}} 2453% \rdg[nordg, source=Gal]{\arb{al-.hummayAti}}
2327% \rdg[wit=hcodd, source=hedd, alt=om.]{} 2454% \rdg[wit=hcodd, source=hedd, alt=om.]{}
2328% }, 2455% },
2329% \end{specimen} 2456% \end{specimen}
@@ -2365,7 +2492,7 @@ friend
2365 <ref target="#Gal">Gal.</ref>)</note> 2492 <ref target="#Gal">Gal.</ref>)</note>
2366 <rdg source="#Gal"> 2493 <rdg source="#Gal">
2367 <foreign xml:lang="ar-Latn" type="transliterated" 2494 <foreign xml:lang="ar-Latn" type="transliterated"
2368 subtype="arabtex">^gamI`a 'l-.hummayAti</foreign> 2495 subtype="arabtex">al-.hummayAti</foreign>
2369 </rdg> 2496 </rdg>
2370 <rdg wit="#V #I #R #H" source="#Lit #Erm #Sm" /> 2497 <rdg wit="#V #I #R #H" source="#Lit #Erm #Sm" />
2371</app>,</p> 2498</app>,</p>
@@ -2495,6 +2622,7 @@ friend
2495%</example> 2622%</example>
2496% \fi 2623% \fi
2497% 2624%
2625% \begingroup
2498% \needspace{7\baselineskip} 2626% \needspace{7\baselineskip}
2499% \resetlinenumber 2627% \resetlinenumber
2500% \FormatDiv{2}{}{.} 2628% \FormatDiv{2}{}{.}
@@ -2528,6 +2656,7 @@ friend
2528% and is admitted to no deliberation. 2656% and is admitted to no deliberation.
2529% \end{translation} 2657% \end{translation}
2530% \end{alignment} 2658% \end{alignment}
2659% \endgroup
2531% 2660%
2532% \begin{remarks} 2661% \begin{remarks}
2533% \item As can be seen from the apparatus entry related to l.~4 above, 2662% \item As can be seen from the apparatus entry related to l.~4 above,
@@ -2955,6 +3084,10 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
2955% criticus. For example, |lemmastyle=|\cs{bfseries} will print all 3084% criticus. For example, |lemmastyle=|\cs{bfseries} will print all
2956% instances of lemma text in bold while 3085% instances of lemma text in bold while
2957% |lemmastyle=|\cs{color}|{blue}| will print them in blue. 3086% |lemmastyle=|\cs{color}|{blue}| will print them in blue.
3087% \DescribeOption{readingstyle} |readingstyle|$=$\meta{command}
3088% \hfill\tcboxverb{Default: not set}\\
3089% \newfeature[v1.2] |readingstyle| operates in the same way as
3090% |lemmastyle| but applies to variant readings.\\
2958% \DescribeOption{initialrule} |initialrule|$=$\meta{command} 3091% \DescribeOption{initialrule} |initialrule|$=$\meta{command}
2959% \label{ref:initialrule}\hfill\bgroup\footnotesize 3092% \label{ref:initialrule}\hfill\bgroup\footnotesize
2960% \tcboxverb{Default: \rule{0.4\columnwidth}{0.4pt} (initially not set)}% 3093% \tcboxverb{Default: \rule{0.4\columnwidth}{0.4pt} (initially not set)}%
@@ -3543,7 +3676,7 @@ argument of the
3543% πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν· \\ 3676% πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν· \\
3544% πολλῶν δ' ἀνθρώπων ἴδεν ἄστεα καὶ 3677% πολλῶν δ' ἀνθρώπων ἴδεν ἄστεα καὶ
3545% \app{\lem{νόον} 3678% \app{\lem{νόον}
3546% \rdg[resp=Zen]{νόμον} 3679% \rdg[resp=hZen]{νόμον}
3547% \note{Cf. Schol.}} ἔγνω, \\ 3680% \note{Cf. Schol.}} ἔγνω, \\
3548% πολλὰ δ' ὅ γ' ἐν πόντῳ πάθεν ἄλγεα ὃν κατὰ θυμόν, \\ 3681% πολλὰ δ' ὅ γ' ἐν πόντῳ πάθεν ἄλγεα ὃν κατὰ θυμόν, \\
3549% ἀρνύμενος ἥν τε ψυχὴν καὶ νόστον ἑταίρων. \\ 3682% ἀρνύμενος ἥν τε ψυχὴν καὶ νόστον ἑταίρων. \\
@@ -3560,6 +3693,92 @@ argument of the
3560% \end{alignment} 3693% \end{alignment}
3561% \endgroup 3694% \endgroup
3562% 3695%
3696% \begingroup
3697% \junicode
3698% \SetHooks{
3699% refnumstyle=\normalfont,
3700% postrefnum=.~,
3701% lemmastyle=\bfseries,
3702% readingstyle=\itshape
3703% }
3704% \renewcommand\thelinenumber{}
3705% \settowidth{\versewidth}{Feed'st thy lights flame with selfe
3706% substantiall fewell,}
3707% \FormatDiv{1}{\begin{ekdcenter}}{\end{ekdcenter}}
3708% \needspace{7\baselineskip}
3709% \resetlinenumber
3710% \begin{alignment}[flush,
3711% tcols=1,
3712% texts=shakespeare[xml:lang="en"],
3713% apparatus=shakespeare]
3714% \setverselinenums{1}{0}
3715% \setlength{\vrightskip}{-0.75in}
3716% \begin{shakespeare}
3717% \ekddiv{type=sonnets, n=1, head=1}
3718% \begin{ekdverse}[type=sonnet, width=\versewidth]
3719% \begin{ekdstanza}[type=quatrain]
3720% \ekdlettrine{F}{r}om fairest creatures we desire
3721% increase,\\[-1.875ex]
3722% \vin That thereby beauties \emph{Rose}
3723% \app{
3724% \lem{might}
3725% \rdg[source={shGildon1710, shSewell1725, shEwing1771}]{may}
3726% } neuer die,\\
3727% But as the riper should by time
3728% \app{
3729% \lem{decease}
3730% \rdg[source=shHudson1856]{decrease}
3731% },\\
3732% His tender heire might beare his memory:\\
3733% \end{ekdstanza}
3734% \begin{ekdstanza}[type=quatrain]
3735% But thou contracted to thine owne bright eyes,\\
3736% Feed'st thy
3737% \app{
3738% \lem{lights}
3739% \rdg[source={shButler1899, shWalsh1908}]{life's}
3740% } flame with
3741% \app{
3742% \lem{selfe substantiall}
3743% \rdg[source=shGildon1714,
3744% alt={\textnormal{Hyphened by}}]{selfe-substantiall}
3745% \note{etc.}} fewell,\\
3746% Making a famine where aboundance lies,\\
3747% Thy selfe thy foe,to thy sweet selfe too cruell:\\
3748% \end{ekdstanza}
3749% \begin{ekdstanza}[type=quatrain]
3750% Thou that art now the worlds fresh ornament,\\
3751% And
3752% \app{
3753% \lem{only}
3754% \rdg[resp=shGod, type=conjecture]{early}
3755% \note{conj.}
3756% } herauld to the gaudy spring,\\
3757% Within thine owne bud buriest thy content,\\
3758% And tender
3759% \app{
3760% \lem{chorle}
3761% \rdg[source=shGildon1710]{churl}
3762% \note{etc.}
3763% } makst wast in niggarding:\\
3764% \end{ekdstanza}
3765% \begin{ekdstanza}[type=couplet]
3766% \vin Pitty the world,or else this glutton be,\\
3767% \vin To eate the worlds due,\app{
3768% \lem{by the}
3769% \rdg[resp=shStee, postwit=conj., type=conjecture]{be thy}
3770% \rdg[resp=shGod, postwit=conj., type=conjecture]{by thy}
3771% } graue
3772% \app{
3773% \lem{and}
3774% \rdg[resp=shGod, postwit=conj., type=conjecture]{as}
3775% } thee.\\!
3776% \end{ekdstanza}
3777% \end{ekdverse}
3778% \end{shakespeare}
3779% \end{alignment}
3780% \endgroup
3781%
3563% \section{Lineation Settings} 3782% \section{Lineation Settings}
3564% \label{sec:lineation} 3783% \label{sec:lineation}
3565% \danger \pkg{ekdosis} uses \pkg{lineno} internally for line 3784% \danger \pkg{ekdosis} uses \pkg{lineno} internally for line
@@ -4228,7 +4447,8 @@ subtype="arabtex">'inna 'abI kAna mina
4228% 4447%
4229% PDF output:--- 4448% PDF output:---
4230% \medskip 4449% \medskip
4231% 4450%
4451% \begingroup
4232% \needspace{7\baselineskip} 4452% \needspace{7\baselineskip}
4233% \resetlinenumber 4453% \resetlinenumber
4234% \FormatDiv{1}{\begin{center}\Large}{\end{center}} 4454% \FormatDiv{1}{\begin{center}\Large}{\end{center}}
@@ -4263,7 +4483,8 @@ subtype="arabtex">'inna 'abI kAna mina
4263% θερινοὶ ἐν Κραννῶνι· [...] 4483% θερινοὶ ἐν Κραννῶνι· [...]
4264% \end{hippocrates} 4484% \end{hippocrates}
4265% \end{alignment} 4485% \end{alignment}
4266% 4486% \endgroup
4487%
4267% \texttt{TEI xml} output:--- 4488% \texttt{TEI xml} output:---
4268% 4489%
4269% \iffalse 4490% \iffalse
@@ -6256,13 +6477,15 @@ Sample text with a \textcolor{red}{word} in red.
6256 store refnumstyle = \ekd@refnumstyle, 6477 store refnumstyle = \ekd@refnumstyle,
6257 store postrefnum = \ekd@postrefnum, 6478 store postrefnum = \ekd@postrefnum,
6258 store lemmastyle = \ekd@lemmastyle, 6479 store lemmastyle = \ekd@lemmastyle,
6480 store readingstyle = \ekd@readingstyle,
6259 code initialrule = \def\ekd@initial@rule{#1\NLS}, 6481 code initialrule = \def\ekd@initial@rule{#1\NLS},
6260 default initialrule = \rule{0.4\columnwidth}{0.4pt}, 6482 default initialrule = \rule{0.4\columnwidth}{0.4pt},
6261 noval noinitialrule = \undef\ekd@initial@rule, 6483 noval noinitialrule = \undef\ekd@initial@rule,
6262 initial appfontsize = \footnotesize, 6484 initial appfontsize = \footnotesize,
6263 initial refnumstyle = \bfseries, 6485 initial refnumstyle = \bfseries,
6264 initial postrefnum = ~, 6486 initial postrefnum = ~,
6265 initial lemmastyle = {} 6487 initial lemmastyle = {},
6488 initial readingstyle = {}
6266} 6489}
6267\NewDocumentCommand{\SetHooks}{m}{\ekvset{ekd@hooks}{#1}} 6490\NewDocumentCommand{\SetHooks}{m}{\ekvset{ekd@hooks}{#1}}
6268% \end{macrocode} 6491% \end{macrocode}
@@ -7064,7 +7287,7 @@ Sample text with a \textcolor{red}{word} in red.
7064 \pdf@strcmp{\getrefnumber{#1}}{\getrefnumber{#2}} 7287 \pdf@strcmp{\getrefnumber{#1}}{\getrefnumber{#2}}
7065 = 7288 =
7066 0 7289 0
7067 % 7290 %
7068 \ifekd@mapps% 7291 \ifekd@mapps%
7069 \ifbool{subsq@unit@\ekdan@type}{% 7292 \ifbool{subsq@unit@\ekdan@type}{%
7070 \ifnum% 7293 \ifnum%
@@ -7073,42 +7296,43 @@ Sample text with a \textcolor{red}{word} in red.
7073 = 7296 =
7074 0 7297 0
7075 \else 7298 \else
7076 \LRnum{\getrefnumber{#1}}% issue the no 7299 \LRnum{\getrefnumber{#1}}\unexpanded\expandafter{\ekd@postrefnum}% issue the no
7077 \fi% 7300 \fi%
7078 }% 7301 }%
7079 {\LRnum{\getrefnumber{#1}}}% issue the no 7302 {\LRnum{\getrefnumber{#1}}\unexpanded\expandafter{\ekd@postrefnum}}% issue the no
7080 \else 7303 \else
7081 \ifsubsq@unit% 7304 \ifsubsq@unit%
7082 % 7305 %
7083 \ifnum% 7306 \ifnum%
7084 \pdf@strcmp{\getrefnumber{#1}}{% 7307 \pdf@strcmp{\getrefnumber{#1}}{%
7085 \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevnotelab())}}} 7308 \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevnotelab())}}}
7086 = 7309 =
7087 0 7310 0
7088 \else 7311 \else
7089 \LRnum{\getrefnumber{#1}}% issue the no 7312 \LRnum{\getrefnumber{#1}}\unexpanded\expandafter{\ekd@postrefnum}% issue the no
7090 \fi 7313 \fi
7091 % 7314 %
7092 \else 7315 \else
7093 \LRnum{\getrefnumber{#1}}% issue the no 7316 \LRnum{\getrefnumber{#1}}\unexpanded\expandafter{\ekd@postrefnum}% issue the no
7094 \fi 7317 \fi
7095 \fi 7318 \fi
7096 % 7319 %
7097 \else 7320 \else
7098 \ifekd@elidednumbers 7321 \ifekd@elidednumbers
7099 \luadirect{tex.sprint(ekdosis.numrange(\luastring{\getrefnumber{#1}}, 7322 \luadirect{tex.sprint(ekdosis.numrange(\luastring{\getrefnumber{#1}},
7100 \luastring{\getrefnumber{#2}}))}% 7323 \luastring{\getrefnumber{#2}}))}%
7324 \unexpanded\expandafter{\ekd@postrefnum}% issue the nos
7101 \else 7325 \else
7102 \LRnum{\getrefnumber{#1}}--% 7326 \LRnum{\getrefnumber{#1}}--%
7103 \LRnum{\getrefnumber{#2}}% issue the nos 7327 \LRnum{\getrefnumber{#2}}\unexpanded\expandafter{\ekd@postrefnum}% issue the nos
7104 \fi 7328 \fi
7105 \fi% 7329 \fi%
7106 \else 7330 \else
7107 \LRnum{\getrefnumber{#1}}--% 7331 \LRnum{\getrefnumber{#1}}--%
7108 \LRnum{\getpagerefnumber{#2}}.% 7332 \LRnum{\getpagerefnumber{#2}}.%
7109 \LRnum{\getrefnumber{#2}}% issue pg and ln nos 7333 \LRnum{\getrefnumber{#2}}\unexpanded\expandafter{\ekd@postrefnum}% issue pg and ln nos
7110 \fi% 7334 \fi%
7111 }\unexpanded\expandafter{\ekd@postrefnum}% 7335 }%
7112} 7336}
7113% \end{macrocode} 7337% \end{macrocode}
7114% \cs{current@ref} is pretty much the same as \cs{current@reg@arg}, 7338% \cs{current@ref} is pretty much the same as \cs{current@reg@arg},
@@ -7129,7 +7353,7 @@ Sample text with a \textcolor{red}{word} in red.
7129 {\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}} 7353 {\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}
7130 = 7354 =
7131 0 7355 0
7132 % 7356 %
7133 \ifekd@mapps% 7357 \ifekd@mapps%
7134 \ifbool{subsq@unit@\ekdan@type}{% 7358 \ifbool{subsq@unit@\ekdan@type}{%
7135 \ifnum% 7359 \ifnum%
@@ -7138,42 +7362,49 @@ Sample text with a \textcolor{red}{word} in red.
7138 = 7362 =
7139 0 7363 0
7140 \else 7364 \else
7141 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% issue the no 7365 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}%
7366 \unexpanded\expandafter{\ekd@postrefnum}% issue the no
7142 \fi% 7367 \fi%
7143 }{\LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}}% issue the no 7368 }{\LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}%
7369 \unexpanded\expandafter{\ekd@postrefnum}}% issue the no
7144 \else 7370 \else
7145 \ifsubsq@unit% 7371 \ifsubsq@unit%
7146 % 7372 %
7147 \ifnum% 7373 \ifnum%
7148 \pdf@strcmp{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% 7374 \pdf@strcmp{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}%
7149 {\getrefnumber{\luadirect{tex.sprint(ekdosis.getprevlnlab())}-b}} 7375 {\getrefnumber{\luadirect{tex.sprint(ekdosis.getprevlnlab())}-b}}
7150 = 7376 =
7151 0 7377 0
7152 \else 7378 \else
7153 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% issue the no 7379 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}%
7380 \unexpanded\expandafter{\ekd@postrefnum}% issue the no
7154 \fi 7381 \fi
7155 % 7382 %
7156 \else 7383 \else
7157 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% issue the no 7384 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}%
7385 \unexpanded\expandafter{\ekd@postrefnum}% issue the no
7158 \fi 7386 \fi
7159 \fi 7387 \fi
7160 % 7388 %
7161 \else 7389 \else
7162 \ifekd@elidednumbers 7390 \ifekd@elidednumbers
7163 \luadirect{tex.sprint(ekdosis.numrange( 7391 \luadirect{tex.sprint(ekdosis.numrange(
7164 \luastring{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}, 7392 \luastring{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}},
7165 \luastring{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}))}% issue the nos 7393 \luastring{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}))}%
7394 \unexpanded\expandafter{\ekd@postrefnum}% issue the nos
7166 \else 7395 \else
7167 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}--% 7396 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}--%
7168 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}% issue the nos 7397 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}%
7398 \unexpanded\expandafter{\ekd@postrefnum}% issue the nos
7169 \fi 7399 \fi
7170 \fi% 7400 \fi%
7171 \else 7401 \else
7172 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}--% 7402 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}--%
7173 \LRnum{\getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}.% 7403 \LRnum{\getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}.%
7174 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}% issue pg and ln nos 7404 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}%
7405 \unexpanded\expandafter{\ekd@postrefnum}% issue pg and ln nos
7175 \fi% 7406 \fi%
7176 }\unexpanded\expandafter{\ekd@postrefnum}% 7407 }%
7177} 7408}
7178% \end{macrocode} 7409% \end{macrocode}
7179% Define keys to be used by the optional arguments of \cs{lem} and 7410% Define keys to be used by the optional arguments of \cs{lem} and
@@ -7381,13 +7612,15 @@ Sample text with a \textcolor{red}{word} in red.
7381 \ifdefined\ekdlr@alt% 7612 \ifdefined\ekdlr@alt%
7382 \ifdefined\ekdlr@post% 7613 \ifdefined\ekdlr@post%
7383 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi 7614 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi
7384 {\textdir TRT\unexpanded\expandafter{\ekdlr@alt}}% 7615 {\textdir TRT\unexpanded\expandafter{\ekd@readingstyle}%
7616 \unexpanded\expandafter{\ekdlr@alt}}%
7385 \ifdefined\ekdlr@pre% 7617 \ifdefined\ekdlr@pre%
7386 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 7618 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
7387 \else 7619 \else
7388 \ifdefined\ekdlr@post% 7620 \ifdefined\ekdlr@post%
7389 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi 7621 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi
7390 {\textdir TRT\unexpanded{#2}}% 7622 {\textdir TRT\unexpanded\expandafter{\ekd@readingstyle}%
7623 \unexpanded{#2}}%
7391 \ifdefined\ekdlr@pre% 7624 \ifdefined\ekdlr@pre%
7392 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 7625 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
7393 \fi 7626 \fi
@@ -7406,17 +7639,20 @@ Sample text with a \textcolor{red}{word} in red.
7406 \ifdefined\ekdlr@pre% 7639 \ifdefined\ekdlr@pre%
7407 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 7640 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
7408 \ltx@ifpackageloaded{babel}% 7641 \ltx@ifpackageloaded{babel}%
7409 {{\noexpand\selectlanguage{\app@lang}% 7642 {{\unexpanded\expandafter{\ekd@readingstyle}%
7643 \noexpand\selectlanguage{\app@lang}%
7410 \unexpanded\expandafter{\ekdlr@alt}}}% 7644 \unexpanded\expandafter{\ekdlr@alt}}}%
7411 {\unexpanded\expandafter{\ekdlr@alt}}% 7645 {\unexpanded\expandafter{\ekd@readingstyle}%
7646 \unexpanded\expandafter{\ekdlr@alt}}%
7412 \ifdefined\ekdlr@post% 7647 \ifdefined\ekdlr@post%
7413 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi 7648 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi
7414 \else 7649 \else
7415 \ifdefined\ekdlr@pre% 7650 \ifdefined\ekdlr@pre%
7416 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 7651 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
7417 \ltx@ifpackageloaded{babel}% 7652 \ltx@ifpackageloaded{babel}%
7418 {{\noexpand\selectlanguage{\app@lang}\unexpanded{#2}}}{% 7653 {{\unexpanded\expandafter{\ekd@readingstyle}%
7419 {\unexpanded{#2}}}% 7654 \noexpand\selectlanguage{\app@lang}\unexpanded{#2}}}{%
7655 {\unexpanded\expandafter{\ekd@readingstyle}\unexpanded{#2}}}%
7420 \ifdefined\ekdlr@post% 7656 \ifdefined\ekdlr@post%
7421 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi 7657 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi
7422 \fi 7658 \fi
@@ -8488,7 +8724,8 @@ local texpatttotags = {
8488 {a="\\%=%=%s?", b="–"}, 8724 {a="\\%=%=%s?", b="–"},
8489 {a="\\%-%-%s?", b="–"}, 8725 {a="\\%-%-%s?", b="–"},
8490 {a="\\%=%/%s?", b="‐"}, 8726 {a="\\%=%/%s?", b="‐"},
8491 {a="\\%-%/%s?", b="‐"} 8727 {a="\\%-%/%s?", b="‐"},
8728 {a="\\vin%s+", b=""}
8492} 8729}
8493 8730
8494local envtotags = { 8731local envtotags = {