aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ekdosis.dtx211
1 files changed, 147 insertions, 64 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 54293c5..736b7b9 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -961,13 +961,27 @@ along with this program. If not, see
961%</example> 961%</example>
962% \fi 962% \fi
963% 963%
964% \subsection{Witnesses, Hands, Shorthands, Scholars \& Sources} 964% \subsection{Witnesses, Hands, Sources, Scholars \& Shorthands}
965% \label{sec:declarations} 965% \label{sec:declarations}
966% \paragraph{Terminology}
967% \label{sec:terminology}
968% Strictly speaking, the term \enquote{witness} should apply to any
969% manuscript evidence dating back to the Middle Ages used by the
970% editor to establish the edition text. That said, editors often
971% consult many other types of documents, such as modern editions,
972% articles, notes, correspondence and the like, all of which fall into
973% the category of \enquote{sources}. Furthermore, unpublished
974% conjectures are also taken into account, not to mention the
975% corrections and emendations that are proposed in many places by the
976% editor of the text. As it is necessary to refer to scholars as
977% individuals, \enquote{scholars} naturally emerges as a third
978% category.
979%
966% Any reference that is to be used in the apparatus criticus must be 980% Any reference that is to be used in the apparatus criticus must be
967% \enquote{declared} in the preamble beforehand, namely: manuscript 981% \enquote{declared} in the preamble beforehand, namely: manuscript
968% sigla (either for single manuscripts or manuscript families, primary 982% sigla (either for single manuscripts or manuscript families, primary
969% or later hands, \emph{\&c.}), abbreviated last names of scholars 983% or later hands, \emph{\&c.}), abbreviated last names of sources
970% and sources. To that effect, \pkg{ekdosis} provides the following 984% and scholars. To that effect, \pkg{ekdosis} provides the following
971% preamble-only commands:--- 985% preamble-only commands:---
972% 986%
973% \paragraph{Witnesses} 987% \paragraph{Witnesses}
@@ -1117,40 +1131,45 @@ along with this program. If not, see
1117% \fi 1131% \fi
1118% \label{ref:marcianus-e} 1132% \label{ref:marcianus-e}
1119% 1133%
1120% \paragraph{Shorthands} 1134% \paragraph{Sources}
1121% \DescribeMacro{\DeclareShorthand} \cs{DeclareShorthand}\marg{unique 1135% \label{ref:declare-source}
1122% id}\marg{rendition}\marg{csv list of witnesses}\\ 1136% \DescribeMacro{\DeclareSource} \cs{DeclareSource}\marg{unique
1123% This command provides a convenient way to declare \emph{families} of 1137% label}\marg{rendition}\newfeature[v1.1]\\
1124% witnesses. It takes three mandatory arguments used to specify 1138% The \emph{Conspectus Siglorum} that is placed ahead of the edition
1125% consecutively:--- 1139% text is traditionally divided into two parts: a)~\emph{Codices},
1140% which provides the list of sigla used in the apparatus,
1141% b)~\emph{Editiones uel Studia}, which provides references to
1142% sources, either published or unpublished, which contain conjectures
1143% used in the apparatus criticus. \cs{DeclareSource} takes two
1144% mandatory arguments used to specify consecutively:---
1126% \begin{enumerate} 1145% \begin{enumerate}
1127% \item The unique identifier of the family to be used in the |.tex| 1146% \item A unique label used in the |.tex| source file to refer to the
1128% source file. 1147% work where the conjecture is found.
1129% \item The rendition to be used in the printed apparatus criticus. 1148% \item The rendition to be used in the printed apparatus criticus.
1130% \item A comma-separated list of previously declared witnesses.
1131% \end{enumerate} 1149% \end{enumerate}
1132% 1150%
1133% As an example, the manuscripts of Caesar's \emph{Gallic War} are 1151% \danger As \pkg{ekdosis} can include and use \texttt{TEI xml}
1134% divided into two families: α, which includes mss.\ A, M, B, R, S, L 1152% compliant lists of references,\footnote{See below
1135% and N, and β, which includes mss.\ T, f, U and l. Therefore, 1153% \vref{sec:references-cited-works}.} it is advisable to use
1136% provided that all these witnesses have been already declared, here 1154% Bib\hologo{(La)TeX} labels in the first argument of
1137% is how the two families α and β could be 1155% \cs{DeclareSource}. Otherwise, the unique label used to declare the
1138% declared:---\footnote{These witnesses are used in the example 1156% source would point to no |xml:id| and the \texttt{TEI xml} would not
1139% provided below in \vref{lst:caesar-bg}.} 1157% be valid. Likewise, shorthands fields from the bibliographical
1140% \label{ref:caesar-bg-sigla} 1158% database can be recalled from within the second argument of
1159% \cs{DeclareSource}:---
1160%
1141% \iffalse 1161% \iffalse
1142%<*example> 1162%<*example>
1143% \fi 1163% \fi
1144\begin{minted}[linenos=false]{latex} 1164\begin{minted}[linenos=false]{latex}
1145\DeclareShorthand{a}{α}{A,M,B,R,S,L,N} 1165\DeclareSource{Wil}{Wilamowitz}
1146\DeclareShorthand{b}{β}{T,f,U,l} 1166% or for example:
1167\DeclareSource{Wil}{\citename{Wil}{shorteditor}}
1147\end{minted} 1168\end{minted}
1148% \iffalse 1169% \iffalse
1149%</example> 1170%</example>
1150% \fi 1171% \fi
1151% 1172% \label{sec:declarations-end}
1152% Then, symbols |a| and |b| can be used in the |.tex| source file in
1153% place of manuscripts that belong to either family.
1154% 1173%
1155% \paragraph{Scholars} 1174% \paragraph{Scholars}
1156% \label{ref:declare-scholar} 1175% \label{ref:declare-scholar}
@@ -1194,45 +1213,67 @@ along with this program. If not, see
1194% been found as marginal notes by the hand of the scholar in some 1213% been found as marginal notes by the hand of the scholar in some
1195% edition in print. 1214% edition in print.
1196% 1215%
1197% \paragraph{Sources} 1216% \paragraph{Shorthands}
1198% \label{ref:declare-source} 1217% \DescribeMacro{\DeclareShorthand} \cs{DeclareShorthand}\marg{unique
1199% \DescribeMacro{\DeclareSource} \cs{DeclareSource}\marg{unique 1218% id}\marg{rendition}\marg{csv list of identifiers}\\
1200% label}\marg{rendition}\newfeature[v1.1]\\ 1219% This command provides a convenient way to declare \emph{families} of
1201% The \emph{Conspectus Siglorum} that is placed ahead of the edition 1220% witnesses. It takes three mandatory arguments used to specify
1202% text is traditionally divided into two parts: a)~\emph{Codices}, 1221% consecutively:---
1203% which provides the list of sigla used in the apparatus,
1204% b)~\emph{Editiones uel Studia}, which provides references to
1205% sources, either published or unpublished, which contain conjectures
1206% used in the apparatus criticus. \cs{DeclareSource} takes two
1207% mandatory arguments used to specify consecutively:---
1208% \begin{enumerate} 1222% \begin{enumerate}
1209% \item A unique label used in the |.tex| source file to refer to the 1223% \item The unique identifier of the family to be used in the |.tex|
1210% work where the conjecture is found. 1224% source file.
1211% \item The rendition to be used in the printed apparatus criticus. 1225% \item The rendition to be used in the printed apparatus criticus.
1226% \item A comma-separated list of previously declared witnesses.
1212% \end{enumerate} 1227% \end{enumerate}
1213% 1228%
1214% \danger As \pkg{ekdosis} can include and use \texttt{TEI xml} 1229% As an example, the manuscripts of Caesar's \emph{Gallic War} are
1215% compliant lists of references,\footnote{See below 1230% divided into two families: α, which includes mss.\ A, M, B, R, S, L
1216% \vref{sec:references-cited-works}.} it is advisable to use 1231% and N, and β, which includes mss.\ T, f, U and l. Therefore,
1217% Bib\hologo{(La)TeX} labels in the first argument of 1232% provided that all these witnesses have been already declared, here
1218% \cs{DeclareSource}. Otherwise, the unique label used to declare the 1233% is how the two families α and β could be
1219% source would point to no |xml:id| and the \texttt{TEI xml} would not 1234% declared:---\footnote{These witnesses are used in the example
1220% be valid. Likewise, shorthands fields from the bibliographical 1235% provided below in \vref{lst:caesar-bg}.}
1221% database can be recalled from within the second argument of 1236% \label{ref:caesar-bg-sigla}
1222% \cs{DeclareSource}:---
1223%
1224% \iffalse 1237% \iffalse
1225%<*example> 1238%<*example>
1226% \fi 1239% \fi
1227\begin{minted}[linenos=false]{latex} 1240\begin{minted}[linenos=false]{latex}
1228\DeclareSource{Wil}{Wilamowitz} 1241\DeclareShorthand{a}{α}{A,M,B,R,S,L,N}
1229% or for example: 1242\DeclareShorthand{b}{β}{T,f,U,l}
1230\DeclareSource{Wil}{\citename{Wil}{shorteditor}}
1231\end{minted} 1243\end{minted}
1232% \iffalse 1244% \iffalse
1233%</example> 1245%</example>
1234% \fi 1246% \fi
1235% \label{sec:declarations-end} 1247%
1248% Then, symbols |a| and |b| can be used in the |.tex| source file in
1249% place of manuscripts that belong to either family.
1250%
1251% That said, \cs{DeclareShorthand} is not meant to be restricted to
1252% declared witnesses. On the contrary, it also applies to any declared
1253% sources and scholars by means of \cs{DeclareSource} and
1254% \cs{DeclareScholar}. As an example, assuming that a self-reference
1255% to the person responsible for the edition has been set in the
1256% preamble, an associated shorthand can be defined like so:---
1257%
1258% \iffalse
1259%<*example>
1260% \fi
1261\begin{minted}{latex}
1262\DeclareScholar{ego}{ego}[
1263 forename=John,
1264 surname=Smith,
1265 note=Main editor of the text]
1266\DeclareShorthand{egoscr}{ego}{\emph{scripsi}}
1267\end{minted}
1268% \iffalse
1269%</example>
1270% \fi
1271%
1272% Then, the shorthand |egoscr| (l.~5) can be used to print in the
1273% apparatus criticus the technical term \emph{scripsi} and use at the
1274% same time the pointer |#ego| that is expected in the \texttt{TEI
1275% xml} output file. Detailed examples of this technique will be
1276% provided below in \vref{sec:emendations-conjectures}.
1236% 1277%
1237% \subsubsection{Printing Formatted Witnesses 1278% \subsubsection{Printing Formatted Witnesses
1238% --- Conspectus Siglorum} 1279% --- Conspectus Siglorum}
@@ -1372,6 +1413,10 @@ yesterday.
1372% \emph{reading}, which contains deviant readings rejected by the 1413% \emph{reading}, which contains deviant readings rejected by the
1373% editor. 1414% editor.
1374% 1415%
1416% \danger What follows refers to the notions of \enquote{witness},
1417% \enquote{source} and \enquote{scholar} as defined above
1418% \vpageref{sec:terminology}.
1419%
1375% \paragraph{Lemmata} \DescribeMacro{\lem} 1420% \paragraph{Lemmata} \DescribeMacro{\lem}
1376% \cs{lem}\oarg{options}\marg{lemma text}\\ 1421% \cs{lem}\oarg{options}\marg{lemma text}\\
1377% As \meta{lemma text} is a word or a phrase judged by the editor to 1422% As \meta{lemma text} is a word or a phrase judged by the editor to
@@ -1389,12 +1434,24 @@ yesterday.
1389% enclosed in curly braces, like so: 1434% enclosed in curly braces, like so:
1390% |wit={A,B,C}|. \label{ref:mss-sep-families}It must be noted that 1435% |wit={A,B,C}|. \label{ref:mss-sep-families}It must be noted that
1391% witnesses can be grouped by using spaces as separators, like so: 1436% witnesses can be grouped by using spaces as separators, like so:
1392% \verb*|wit={A,B,C, D,E,F}|. Of course, any unique identifiers or 1437% \verb*|wit={A,B,C, D,E,F}|. Although any unique identifiers or
1393% labels used to \enquote{declare} scholars and sources as described 1438% labels used to \enquote{declare} sources and scholars as described
1394% above \vpagerefrange{ref:declare-scholar}{ref:declare-source} can 1439% above \vpagerefrange{ref:declare-scholar}{ref:declare-source} can
1395% also be used as values of the |wit| optional argument.\footnote{For 1440% also be used as values of the |wit| optional argument, it is
1396% an example of an edition text used as a witness, 1441% recommended to use |sources| and |resp| to refer to either category
1397% see below in \vref{sec:references-cited-works}.}\\ 1442% respectively as described below.\\
1443% \DescribeOption{source} |source|$=$\meta{csv list of
1444% sources}\label{ref:lem-source}\newfeature[v1.1]\\
1445% A \enquote{source} refers to any type of document consulted by the
1446% editor to establish the edition text. Most commonly, corrections and
1447% emendations from previous editions are cited in the apparatus
1448% criticus.\footnote{For an example of an edition text used as a
1449% source, see below in \vref{sec:references-cited-works}.}\\
1450% \DescribeOption{resp} |resp|$=$\meta{csv list of
1451% scholars}\label{ref:lem-resp}\newfeature[v1.1]\\
1452% |resp| refers to scholars responsible for the emendations,
1453% conjectures and corrections that are cited in the apparatus
1454% criticus.\\
1398% \DescribeOption{alt} |alt|$=$\meta{alternate lemma}\\ 1455% \DescribeOption{alt} |alt|$=$\meta{alternate lemma}\\
1399% While the mandatory argument of \cs{lem}, \meta{lemma text}, is 1456% While the mandatory argument of \cs{lem}, \meta{lemma text}, is
1400% always used to print the edition text in the upper part of the page, 1457% always used to print the edition text in the upper part of the page,
@@ -1424,7 +1481,9 @@ yesterday.
1424% edition in print, but it is used in the \texttt{TEI xml} ouput to 1481% edition in print, but it is used in the \texttt{TEI xml} ouput to
1425% classify the variation recorded in the entry according to some 1482% classify the variation recorded in the entry according to some
1426% convenient typology. Categories such as lexical, morphological, 1483% convenient typology. Categories such as lexical, morphological,
1427% orthographical and the like may apply. 1484% orthographical and the like may apply. Obviously, |type=emendation|
1485% should be restricted to lemma texts and |type=conjecture| to variant
1486% readings recorded by means of \cs{rdg} described below.
1428% 1487%
1429% \needspace{11\baselineskip} 1488% \needspace{11\baselineskip}
1430% Finally, four named arguments can be used to insert words at the 1489% Finally, four named arguments can be used to insert words at the
@@ -1459,12 +1518,17 @@ yesterday.
1459% more detailed information:---\\ 1518% more detailed information:---\\
1460% \DescribeOption{wit} |wit|$=$\meta{csv list of 1519% \DescribeOption{wit} |wit|$=$\meta{csv list of
1461% witnesses}\label{ref:rdg-wit}\\ 1520% witnesses}\label{ref:rdg-wit}\\
1521% \DescribeOption{source} |source|$=$\meta{csv list of sources}\\
1522% \DescribeOption{resp} |resp|$=$\meta{csv list of scholars}\\
1462% \DescribeOption{alt} |alt|$=$\meta{alternate reading}\\ 1523% \DescribeOption{alt} |alt|$=$\meta{alternate reading}\\
1463% \DescribeOption{nordg} |nordg|$=$\verb+true|false+\\ 1524% \DescribeOption{nordg} |nordg|$=$\verb+true|false+\\
1464% This named argument does not need a value as it defaults to |true| 1525% This named argument does not need a value as it defaults to |true|
1465% if it is used. |nordg| completely removes the variant reading from 1526% if it is used. |nordg| completely removes the variant reading from
1466% the related entry in the apparatus criticus.\\ 1527% the related entry in the apparatus criticus.\\
1467% \DescribeOption{type} |type|$=$\meta{value}\\ 1528% \DescribeOption{type} |type|$=$\meta{value}\\
1529% Obviously, |type=conjecture| should be restricted to variant
1530% readings and |type=emendation| to lemma texts recorded by means of
1531% \cs{lem} described above.\\
1468% \DescribeOption{pre} |pre|$=$\meta{words}\\ 1532% \DescribeOption{pre} |pre|$=$\meta{words}\\
1469% \DescribeOption{post} |post|$=$\meta{words}\\ 1533% \DescribeOption{post} |post|$=$\meta{words}\\
1470% \DescribeOption{prewit} |prewit|$=$\meta{words}\\ 1534% \DescribeOption{prewit} |prewit|$=$\meta{words}\\
@@ -2033,6 +2097,9 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
2033%</example> 2097%</example>
2034% \fi 2098% \fi
2035% 2099%
2100% \section{Emendations and Conjectures}
2101% \label{sec:emendations-conjectures}
2102%
2036% \section{Laying Out the Apparatus Criticus } 2103% \section{Laying Out the Apparatus Criticus }
2037% \label{sec:apparatus-layout} 2104% \label{sec:apparatus-layout}
2038% 2105%
@@ -4042,7 +4109,7 @@ Sample text with a \textcolor{red}{word} in red.
4042% Use 'bibl.xml' as a TEI xml bibliographical database: 4109% Use 'bibl.xml' as a TEI xml bibliographical database:
4043\SetxmlBibResource{bibl} % 'bibl' is the basename of 'bibl.xml' 4110\SetxmlBibResource{bibl} % 'bibl' is the basename of 'bibl.xml'
4044 4111
4045% Declare A. Drakenborch as scholar: 4112% Declare A. Drakenborch as source:
4046\DeclareSource{Drak}{\emph{Drakenborch}} 4113\DeclareSource{Drak}{\emph{Drakenborch}}
4047\end{minted} 4114\end{minted}
4048% \iffalse 4115% \iffalse
@@ -4084,7 +4151,7 @@ Sample text with a \textcolor{red}{word} in red.
4084 Sed uos, quorum oculos atque ora humentia uidi,\\ 4151 Sed uos, quorum oculos atque ora humentia uidi,\\
4085 uertere cum consul terga et remeare iuberet,\\ 4152 uertere cum consul terga et remeare iuberet,\\
4086 \app{ 4153 \app{
4087 \lem[wit=Drak]{ne morem} 4154 \lem[source=Drak, type=emendation]{ne morem}
4088 \rdg[wit={L, F}]{me morem} 4155 \rdg[wit={L, F}]{me morem}
4089 \rdg[wit={O, V}]{memorem} 4156 \rdg[wit={O, V}]{memorem}
4090 } et pugnae signum exspectate petendae: 4157 } et pugnae signum exspectate petendae:
@@ -4107,7 +4174,7 @@ Sample text with a \textcolor{red}{word} in red.
4107% Sed uos, quorum oculos atque ora humentia uidi,\\ 4174% Sed uos, quorum oculos atque ora humentia uidi,\\
4108% uertere cum consul terga et remeare iuberet,\\ 4175% uertere cum consul terga et remeare iuberet,\\
4109% \app{ 4176% \app{
4110% \lem[wit=sDrak]{ne morem} 4177% \lem[source=sDrak, type=emendation]{ne morem}
4111% \rdg[wit={sL, sF}]{me morem} 4178% \rdg[wit={sL, sF}]{me morem}
4112% \rdg[wit={sO, sV}]{memorem} 4179% \rdg[wit={sO, sV}]{memorem}
4113% } et pugnae signum exspectate petendae: 4180% } et pugnae signum exspectate petendae:
@@ -4129,7 +4196,7 @@ Sample text with a \textcolor{red}{word} in red.
4129 <l>uertere cum consul terga et remeare iuberet,</l> 4196 <l>uertere cum consul terga et remeare iuberet,</l>
4130 <l> 4197 <l>
4131 <app> 4198 <app>
4132 <lem wit="#Drak">ne morem</lem> 4199 <lem source="#Drak" type="emendation">ne morem</lem>
4133 <rdg wit="#L #F">me morem</rdg> 4200 <rdg wit="#L #F">me morem</rdg>
4134 <rdg wit="#O #V">memorem</rdg> 4201 <rdg wit="#O #V">memorem</rdg>
4135 </app>et pugnae signum exspectate petendae:</l> 4202 </app>et pugnae signum exspectate petendae:</l>
@@ -5900,6 +5967,8 @@ Sample text with a \textcolor{red}{word} in red.
5900% \begin{macrocode} 5967% \begin{macrocode}
5901\ekvdefinekeys{lem}{ 5968\ekvdefinekeys{lem}{
5902 code wit = \def\ekdlr@wit{#1}, 5969 code wit = \def\ekdlr@wit{#1},
5970 code source = \def\ekdlr@source{#1},
5971 code resp = \def\ekdlr@resp{#1},
5903 code alt = \def\ekdlr@alt{#1}, 5972 code alt = \def\ekdlr@alt{#1},
5904 code pre = \def\ekdlr@pre{#1}, 5973 code pre = \def\ekdlr@pre{#1},
5905 code post = \def\ekdlr@post{#1}, 5974 code post = \def\ekdlr@post{#1},
@@ -5913,6 +5982,8 @@ Sample text with a \textcolor{red}{word} in red.
5913} 5982}
5914\ekvdefinekeys{rdg}{ 5983\ekvdefinekeys{rdg}{
5915 code wit = \def\ekdlr@wit{#1}, 5984 code wit = \def\ekdlr@wit{#1},
5985 code source = \def\ekdlr@source{#1},
5986 code resp = \def\ekdlr@resp{#1},
5916 code alt = \def\ekdlr@alt{#1}, 5987 code alt = \def\ekdlr@alt{#1},
5917 code pre = \def\ekdlr@pre{#1}, 5988 code pre = \def\ekdlr@pre{#1},
5918 code post = \def\ekdlr@post{#1}, 5989 code post = \def\ekdlr@post{#1},
@@ -5981,6 +6052,8 @@ Sample text with a \textcolor{red}{word} in red.
5981 \fi 6052 \fi
5982 \ifdefined\ekdlr@postwit% 6053 \ifdefined\ekdlr@postwit%
5983 \space\unexpanded\expandafter{\ekdlr@postwit}\else\fi 6054 \space\unexpanded\expandafter{\ekdlr@postwit}\else\fi
6055 \ifdefined\ekdlr@resp\space\getsiglum{\ekdlr@resp}\else\fi
6056 \ifdefined\ekdlr@source\space\getsiglum{\ekdlr@source}\else\fi
5984 \ifdefined\ekdlr@wit\space\getsiglum{\ekdlr@wit}\else\fi 6057 \ifdefined\ekdlr@wit\space\getsiglum{\ekdlr@wit}\else\fi
5985 \ifdefined\ekdlr@prewit% 6058 \ifdefined\ekdlr@prewit%
5986 \space\unexpanded\expandafter{\ekdlr@prewit}\space\else\fi 6059 \space\unexpanded\expandafter{\ekdlr@prewit}\space\else\fi
@@ -6018,6 +6091,8 @@ Sample text with a \textcolor{red}{word} in red.
6018 \ifdefined\ekdlr@prewit% 6091 \ifdefined\ekdlr@prewit%
6019 \space\unexpanded\expandafter{\ekdlr@prewit}\space\else\fi 6092 \space\unexpanded\expandafter{\ekdlr@prewit}\space\else\fi
6020 \ifdefined\ekdlr@wit\space\getsiglum{\ekdlr@wit}\else\fi 6093 \ifdefined\ekdlr@wit\space\getsiglum{\ekdlr@wit}\else\fi
6094 \ifdefined\ekdlr@source\space\getsiglum{\ekdlr@source}\else\fi
6095 \ifdefined\ekdlr@resp\space\getsiglum{\ekdlr@resp}\else\fi
6021 \ifdefined\ekdlr@postwit% 6096 \ifdefined\ekdlr@postwit%
6022 \space\unexpanded\expandafter{\ekdlr@postwit}\else\fi 6097 \space\unexpanded\expandafter{\ekdlr@postwit}\else\fi
6023 \ifekdl@nosep\else\unexpanded\expandafter{\ekdl@sep}\fi 6098 \ifekdl@nosep\else\unexpanded\expandafter{\ekdl@sep}\fi
@@ -6071,6 +6146,8 @@ Sample text with a \textcolor{red}{word} in red.
6071 \fi 6146 \fi
6072 \ifdefined\ekdlr@postwit% 6147 \ifdefined\ekdlr@postwit%
6073 \space\unexpanded\expandafter{\ekdlr@postwit}\else\fi 6148 \space\unexpanded\expandafter{\ekdlr@postwit}\else\fi
6149 \ifdefined\ekdlr@resp\space\getsiglum{\ekdlr@resp}\else\fi
6150 \ifdefined\ekdlr@source\space\getsiglum{\ekdlr@source}\else\fi
6074 \ifdefined\ekdlr@wit\space\getsiglum{\ekdlr@wit}\else\fi 6151 \ifdefined\ekdlr@wit\space\getsiglum{\ekdlr@wit}\else\fi
6075 \ifdefined\ekdlr@prewit% 6152 \ifdefined\ekdlr@prewit%
6076 \space\unexpanded\expandafter{\ekdlr@prewit}\space\else\fi 6153 \space\unexpanded\expandafter{\ekdlr@prewit}\space\else\fi
@@ -6099,6 +6176,8 @@ Sample text with a \textcolor{red}{word} in red.
6099 \ifdefined\ekdlr@prewit% 6176 \ifdefined\ekdlr@prewit%
6100 \space\unexpanded\expandafter{\ekdlr@prewit}\space\else\fi 6177 \space\unexpanded\expandafter{\ekdlr@prewit}\space\else\fi
6101 \ifdefined\ekdlr@wit\space\getsiglum{\ekdlr@wit}\else\fi 6178 \ifdefined\ekdlr@wit\space\getsiglum{\ekdlr@wit}\else\fi
6179 \ifdefined\ekdlr@source\space\getsiglum{\ekdlr@source}\else\fi
6180 \ifdefined\ekdlr@resp\space\getsiglum{\ekdlr@resp}\else\fi
6102 \ifdefined\ekdlr@postwit% 6181 \ifdefined\ekdlr@postwit%
6103 \space\unexpanded\expandafter{\ekdlr@postwit}\else\fi 6182 \space\unexpanded\expandafter{\ekdlr@postwit}\else\fi
6104 }% 6183 }%
@@ -7123,6 +7202,10 @@ local function lem_rdg_totei(str)
7123 -- 7202 --
7124 teiwit = get_attr_value(opt, "wit") 7203 teiwit = get_attr_value(opt, "wit")
7125 if teiwit ~= "" then teiwit = " wit=\""..ekdosis.getsiglum(teiwit, "tei").."\"" else end 7204 if teiwit ~= "" then teiwit = " wit=\""..ekdosis.getsiglum(teiwit, "tei").."\"" else end
7205 teisource = get_attr_value(opt, "source")
7206 if teisource ~= "" then teisource = " source=\""..ekdosis.getsiglum(teisource, "tei").."\"" else end
7207 teiresp = get_attr_value(opt, "resp")
7208 if teiresp ~= "" then teiresp = " resp=\""..ekdosis.getsiglum(teiresp, "tei").."\"" else end
7126 teitype = get_attr_value(opt, "type") 7209 teitype = get_attr_value(opt, "type")
7127 if teitype ~= "" then teitype = " type=\""..teitype.."\"" else end 7210 if teitype ~= "" then teitype = " type=\""..teitype.."\"" else end
7128 -- 7211 --
@@ -7132,8 +7215,8 @@ local function lem_rdg_totei(str)
7132 cmd, arg, cmd)) 7215 cmd, arg, cmd))
7133 else 7216 else
7134 -- opt = ekdosis.getsiglum(opt, "tei") 7217 -- opt = ekdosis.getsiglum(opt, "tei")
7135 return lem_rdg_totei(string.format("<%s%s%s>%s</%s>", 7218 return lem_rdg_totei(string.format("<%s%s%s%s%s>%s</%s>",
7136 cmd, teiwit, teitype, arg, cmd)) 7219 cmd, teiwit, teisource, teiresp, teitype, arg, cmd))
7137 end 7220 end
7138 end) 7221 end)
7139 str = gsub(str, spcenc^-0 * dblbkslash * lemrdg * spcenc^-1 * bcbraces * spcenc^-1, 7222 str = gsub(str, spcenc^-0 * dblbkslash * lemrdg * spcenc^-1 * bcbraces * spcenc^-1,