aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ekdosis.dtx36
1 files changed, 26 insertions, 10 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 229d7c1..1062f36 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -780,7 +780,7 @@ along with this program. If not, see
780%</driver> 780%</driver>
781% \fi 781% \fi
782% 782%
783% \CheckSum{2188} 783% \CheckSum{0}
784% 784%
785% \CharacterTable 785% \CharacterTable
786% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z 786% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -7390,8 +7390,20 @@ Sample text with a \textcolor{red}{word} in red.
7390\@onlypreamble\AddxmlBibResource 7390\@onlypreamble\AddxmlBibResource
7391% \end{macrocode} 7391% \end{macrocode}
7392% \end{macro} 7392% \end{macro}
7393% 7393% \begin{macro}{\ekd@test@lang}
7394%\paragraph{Multiple-layer apparatuses} 7394% \cs{ekd@test@lang} is used internally by \pkg{ekdosis}. This command
7395% returns \cs{ekd@lang@pkgtrue} if either \pkg{babel} or
7396% \pkg{polyglossia} be used so that \cs{languagename} can be inserted
7397% when and where needed in the apparatus criticus.
7398% \begin{macrocode}
7399\newif\ifekd@lang@pkg
7400\NewDocumentCommand{\ekd@test@lang}{}{%
7401 \ltx@ifpackageloaded{babel}{\ekd@lang@pkgtrue}{}%
7402 \ltx@ifpackageloaded{polyglossia}{\ekd@lang@pkgtrue}{}%
7403}
7404% \end{macrocode}
7405% \end{macro}
7406% \paragraph{Multiple-layer apparatuses}
7395% \pkg{ekdosis} must know if an entry is to be processed in a single- 7407% \pkg{ekdosis} must know if an entry is to be processed in a single-
7396% or multiple-layer context:--- 7408% or multiple-layer context:---
7397% \begin{macrocode} 7409% \begin{macrocode}
@@ -7581,7 +7593,8 @@ Sample text with a \textcolor{red}{word} in red.
7581 initial rule = \rule{0.4\columnwidth}{0.4pt}, 7593 initial rule = \rule{0.4\columnwidth}{0.4pt},
7582 noval norule = \def\ekd@default@rule{\mbox{}}, 7594 noval norule = \def\ekd@default@rule{\mbox{}},
7583 store lang = \ekd@singleapp@lang, 7595 store lang = \ekd@singleapp@lang,
7584 initial lang = \ltx@ifpackageloaded{babel}{\languagename}{} 7596 initial lang = \ltx@ifpackageloaded{babel}{\languagename}{}%
7597 \ltx@ifpackageloaded{polyglossia}{\languagename}{}
7585} 7598}
7586% \end{macrocode} 7599% \end{macrocode}
7587% \begin{macro}{\SetApparatus} 7600% \begin{macro}{\SetApparatus}
@@ -8138,6 +8151,7 @@ Sample text with a \textcolor{red}{word} in red.
8138 \null 8151 \null
8139 \bgroup% 8152 \bgroup%
8140 \ekvset{lem}{#1}% 8153 \ekvset{lem}{#1}%
8154 \ekd@test@lang
8141 \ifekd@mapps% 8155 \ifekd@mapps%
8142 \ifnum% 8156 \ifnum%
8143 \luadirect{tex.sprint(ekdosis.get_bagunits(\luastringO{\ekdan@type}))} 8157 \luadirect{tex.sprint(ekdosis.get_bagunits(\luastringO{\ekdan@type}))}
@@ -8207,7 +8221,7 @@ Sample text with a \textcolor{red}{word} in red.
8207 \ifdefined\ekdlr@alt% 8221 \ifdefined\ekdlr@alt%
8208 \ifdefined\ekdlr@pre% 8222 \ifdefined\ekdlr@pre%
8209 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 8223 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
8210 \ltx@ifpackageloaded{babel}% 8224 \ifbool{ekd@lang@pkg}%
8211 {{\unexpanded\expandafter{\ekd@lemmastyle}% 8225 {{\unexpanded\expandafter{\ekd@lemmastyle}%
8212 \noexpand\selectlanguage{\app@lang}% 8226 \noexpand\selectlanguage{\app@lang}%
8213 \unexpanded\expandafter{\ekdlr@alt}}}% 8227 \unexpanded\expandafter{\ekdlr@alt}}}%
@@ -8218,7 +8232,7 @@ Sample text with a \textcolor{red}{word} in red.
8218 \else 8232 \else
8219 \ifdefined\ekdlr@pre% 8233 \ifdefined\ekdlr@pre%
8220 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 8234 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
8221 \ltx@ifpackageloaded{babel}% 8235 \ifbool{ekd@lang@pkg}%
8222 {{\unexpanded\expandafter{\ekd@lemmastyle}% 8236 {{\unexpanded\expandafter{\ekd@lemmastyle}%
8223 \noexpand\selectlanguage{\app@lang}% 8237 \noexpand\selectlanguage{\app@lang}%
8224 \unexpanded{#2}}}{% 8238 \unexpanded{#2}}}{%
@@ -8257,6 +8271,7 @@ Sample text with a \textcolor{red}{word} in red.
8257\NewDocumentCommand{\rdg}{O{} m}{% 8271\NewDocumentCommand{\rdg}{O{} m}{%
8258 \bgroup% 8272 \bgroup%
8259 \ekvset{rdg}{#1}% 8273 \ekvset{rdg}{#1}%
8274 \ekd@test@lang
8260 % \ifekdr@nordg\append@app{}\else% do we need \append@app{} here? If 8275 % \ifekdr@nordg\append@app{}\else% do we need \append@app{} here? If
8261 % % so, keep in mind \ifekd@mapps, 8276 % % so, keep in mind \ifekd@mapps,
8262 % like so: 8277 % like so:
@@ -8298,7 +8313,7 @@ Sample text with a \textcolor{red}{word} in red.
8298 \ifdefined\ekdlr@alt% 8313 \ifdefined\ekdlr@alt%
8299 \ifdefined\ekdlr@pre% 8314 \ifdefined\ekdlr@pre%
8300 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 8315 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
8301 \ltx@ifpackageloaded{babel}% 8316 \ifbool{ekd@lang@pkg}%
8302 {{\unexpanded\expandafter{\ekd@readingstyle}% 8317 {{\unexpanded\expandafter{\ekd@readingstyle}%
8303 \noexpand\selectlanguage{\app@lang}% 8318 \noexpand\selectlanguage{\app@lang}%
8304 \unexpanded\expandafter{\ekdlr@alt}}}% 8319 \unexpanded\expandafter{\ekdlr@alt}}}%
@@ -8309,7 +8324,7 @@ Sample text with a \textcolor{red}{word} in red.
8309 \else 8324 \else
8310 \ifdefined\ekdlr@pre% 8325 \ifdefined\ekdlr@pre%
8311 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 8326 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
8312 \ltx@ifpackageloaded{babel}% 8327 \ifbool{ekd@lang@pkg}%
8313 {{\unexpanded\expandafter{\ekd@readingstyle}% 8328 {{\unexpanded\expandafter{\ekd@readingstyle}%
8314 \noexpand\selectlanguage{\app@lang}\unexpanded{#2}}}{% 8329 \noexpand\selectlanguage{\app@lang}\unexpanded{#2}}}{%
8315 {\unexpanded\expandafter{\ekd@readingstyle}\unexpanded{#2}}}% 8330 {\unexpanded\expandafter{\ekd@readingstyle}\unexpanded{#2}}}%
@@ -8361,6 +8376,7 @@ Sample text with a \textcolor{red}{word} in red.
8361 \leavevmode 8376 \leavevmode
8362 \bgroup% 8377 \bgroup%
8363 \ekvset{note}{#1}% 8378 \ekvset{note}{#1}%
8379 \ekd@test@lang
8364 \stepcounter{ekd@lab}% 8380 \stepcounter{ekd@lab}%
8365 \zlabel{ekd:\theekd@lab}% 8381 \zlabel{ekd:\theekd@lab}%
8366 \luadirect{ekdosis.storeabspg( 8382 \luadirect{ekdosis.storeabspg(
@@ -8409,7 +8425,7 @@ Sample text with a \textcolor{red}{word} in red.
8409 \fi% 8425 \fi%
8410 \current@ref@arg{\ekdn@labelb}{\ekdn@labele}%\hskip .25em 8426 \current@ref@arg{\ekdn@labelb}{\ekdn@labele}%\hskip .25em
8411 \ifdefined\ekdn@lem 8427 \ifdefined\ekdn@lem
8412 \ltx@ifpackageloaded{babel}% 8428 \ifbool{ekd@lang@pkg}%
8413 {{\unexpanded\expandafter{\ekd@lemmastyle}% 8429 {{\unexpanded\expandafter{\ekd@lemmastyle}%
8414 \noexpand\selectlanguage{\app@lang}% 8430 \noexpand\selectlanguage{\app@lang}%
8415 \unexpanded\expandafter{\ekdn@lem}}}% 8431 \unexpanded\expandafter{\ekdn@lem}}}%
@@ -8418,7 +8434,7 @@ Sample text with a \textcolor{red}{word} in red.
8418 \unless\ifekdn@nosep 8434 \unless\ifekdn@nosep
8419 \unexpanded\expandafter{\ekdn@sep}\fi 8435 \unexpanded\expandafter{\ekdn@sep}\fi
8420 \else\fi% 8436 \else\fi%
8421 \ltx@ifpackageloaded{babel}% 8437 \ifbool{ekd@lang@pkg}%
8422 {{\noexpand\selectlanguage{\app@lang}\unexpanded{#2}}}{% 8438 {{\noexpand\selectlanguage{\app@lang}\unexpanded{#2}}}{%
8423 {\unexpanded{#2}}}}}% 8439 {\unexpanded{#2}}}}}%
8424 \ifekd@mapps% 8440 \ifekd@mapps%