aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2020-08-22 17:55:07 +0200
committerRobert Alessi <alessi@robertalessi.net>2020-08-22 17:55:07 +0200
commit1d9a30fcb6c09e12be510c344d5e3ff545363a7d (patch)
treea14411b425dc84bcb51d6a1d64d71f09c84b5ce3
parent73e4912d7cc2217ad0506269d855ff22f7d0894a (diff)
downloadekdosis-1d9a30fcb6c09e12be510c344d5e3ff545363a7d.tar.gz
\SetxmlBibResource renamed \AddxmlBibResource. done documenting the new features
-rw-r--r--ekdosis.dtx389
1 files changed, 344 insertions, 45 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index b30f7c0..13aa966 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -139,6 +139,15 @@ along with this program. If not, see
139 location = {Oxford} 139 location = {Oxford}
140} 140}
141 141
142@Book{West1973,
143 author = {West, Martin L.},
144 title = {Textual Criticism and Editorial Technique},
145 date = 1973,
146 titleaddon = {Applicable to Greek and Latin Texts},
147 publisher = {B. G. Teubner},
148 location = {Stuttgart}
149}
150
142@Online{DLL-TC, 151@Online{DLL-TC,
143 author = {{Digital Latin Library}}, 152 author = {{Digital Latin Library}},
144 title = {Textual Criticism}, 153 title = {Textual Criticism},
@@ -279,14 +288,18 @@ along with this program. If not, see
279% Hippocrates Epidemics, Book 2: 288% Hippocrates Epidemics, Book 2:
280\DeclareWitness{hV}{V}{\emph{Vaticanus Gr.} 276} 289\DeclareWitness{hV}{V}{\emph{Vaticanus Gr.} 276}
281\DeclareWitness{hI}{I}{\emph{Parisinus Gr.} 2140} 290\DeclareWitness{hI}{I}{\emph{Parisinus Gr.} 2140}
291\DeclareHand{hIac}{hI}{I\textsuperscript{ac}}[Lectio ante correctionem]
292\DeclareHand{hIpc}{hI}{I\textsuperscript{pc}}[Lectio post correctionem]
282\DeclareWitness{hR}{R}{\emph{Vaticanus Gr.} 277} 293\DeclareWitness{hR}{R}{\emph{Vaticanus Gr.} 277}
283\DeclareWitness{hH}{H}{\emph{Parisinus Gr.} 2142} 294\DeclareWitness{hH}{H}{\emph{Parisinus Gr.} 2142}
284\DeclareSource{Lit}{Littré} 295\DeclareSource{Lit}{Littré}
285\DeclareSource{Erm}{Ermerins} 296\DeclareSource{Erm}{Ermerins}
286\DeclareSource{Sm}{Smith} 297\DeclareSource{Sm}{Smith}
298\DeclareSource{Gal}{Gal.}
287\DeclareScholar{ego}{ego}[ 299\DeclareScholar{ego}{ego}[
288 forename=Robert, 300 forename=Robert,
289 surname=Alessi] 301 surname=Alessi]
302\DeclareShorthand{egomute}{\unskip}{ego}
290\DeclareShorthand{hcodd}{codd.}{hV,hI,hR,hH} 303\DeclareShorthand{hcodd}{codd.}{hV,hI,hR,hH}
291\DeclareShorthand{hedd}{edd.}{Lit,Erm,Sm} 304\DeclareShorthand{hedd}{edd.}{Lit,Erm,Sm}
292\DeclareShorthand{hegoscr}{\emph{scripsi}}{ego} 305\DeclareShorthand{hegoscr}{\emph{scripsi}}{ego}
@@ -330,7 +343,7 @@ along with this program. If not, see
330\usepackage{arabluatex} 343\usepackage{arabluatex}
331\usepackage[parnotes=roman,teiexport=tidy]{ekdosis} 344\usepackage[parnotes=roman,teiexport=tidy]{ekdosis}
332\input{ekdosis-cfg} 345\input{ekdosis-cfg}
333\SetxmlBibResource{bibdata} 346\AddxmlBibResource{bibdata.xml}
334\usepackage{booktabs} 347\usepackage{booktabs}
335\usepackage{xltabular} 348\usepackage{xltabular}
336\usepackage[prevent-all]{widows-and-orphans} 349\usepackage[prevent-all]{widows-and-orphans}
@@ -1613,6 +1626,8 @@ yesterday.
1613% \iffalse 1626% \iffalse
1614%</example> 1627%</example>
1615% \fi 1628% \fi
1629%
1630% \needspace{7\baselineskip}
1616% \resetlinenumber 1631% \resetlinenumber
1617% \begin{alignment}[flush,tcols=1,texts=specimen,apparatus=specimen] 1632% \begin{alignment}[flush,tcols=1,texts=specimen,apparatus=specimen]
1618% \begin{specimen} 1633% \begin{specimen}
@@ -2119,7 +2134,7 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
2119% scholars, not from manuscripts, they are naturally associated with 2134% scholars, not from manuscripts, they are naturally associated with
2120% |source| or |resp| attributes as described above 2135% |source| or |resp| attributes as described above
2121% \vpagerefrange{ref:lem-source}{ref:lem-resp},\footnote{See also 2136% \vpagerefrange{ref:lem-source}{ref:lem-resp},\footnote{See also
2122% \vpagerefrange{ref:declare-scholar}{ref:declare-source}.} and can be 2137% \vpagerefrange{ref:declare-source}{ref:declare-scholar}.} and can be
2123% distinguished from one another by the |type| attribute, eg.\ either 2138% distinguished from one another by the |type| attribute, eg.\ either
2124% |emendation| or |conjecture|. 2139% |emendation| or |conjecture|.
2125% 2140%
@@ -2134,6 +2149,8 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
2134% Witnesses: 2149% Witnesses:
2135\DeclareWitness{V}{V}{\emph{Vaticanus Gr.} 276} 2150\DeclareWitness{V}{V}{\emph{Vaticanus Gr.} 276}
2136\DeclareWitness{I}{I}{\emph{Parisinus Gr.} 2140} 2151\DeclareWitness{I}{I}{\emph{Parisinus Gr.} 2140}
2152\DeclareHand{Iac}{I}{I\textsuperscript{ac}}[Lectio ante correctionem]
2153\DeclareHand{Ipc}{I}{I\textsuperscript{pc}}[Lectio post correctionem]
2137\DeclareWitness{R}{R}{\emph{Vaticanus Gr.} 277} 2154\DeclareWitness{R}{R}{\emph{Vaticanus Gr.} 277}
2138\DeclareWitness{H}{H}{\emph{Parisinus Gr.} 2142} 2155\DeclareWitness{H}{H}{\emph{Parisinus Gr.} 2142}
2139% Sources (the first arguments below must refer to biblatex labels and 2156% Sources (the first arguments below must refer to biblatex labels and
@@ -2154,28 +2171,34 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
2154%</example> 2171%</example>
2155% \fi 2172% \fi
2156% 2173%
2157% As can be seen from lines~16--18, three useful shorthands have been 2174% As can be seen from lines~18--20, three useful shorthands have been
2158% defined: |codd| prints \enquote{codd.} for Latin pl.\ \emph{codices} 2175% defined: |codd| prints \enquote{codd.} for Latin pl.\ \emph{codices}
2159% viz.\ \enquote{all manuscripts} and refers to the three \texttt{xml} 2176% viz.\ \enquote{all manuscripts} and refers to the three \texttt{xml}
2160% identifiers |V|, |I|, |R| and |H| declared at ll.~2--5; |edd| prints 2177% identifiers |V|, |I|, |R| and |H| declared at ll.~2--3 and 6--7;
2161% \enquote{edd.} for Latin pl.\ \emph{editores} viz.\ \enquote{all 2178% |edd| prints \enquote{edd.} for Latin pl.\ \emph{editores} viz.\
2162% editors} and refers to the three \texttt{xml} identifiers |Lit|, 2179% \enquote{all editors} and refers to the three \texttt{xml}
2163% |Erm| and |Sm| declared at ll.~8--10;\footnote{For detailed 2180% identifiers |Lit|, |Erm| and |Sm| declared at
2164% information on how to use \cs{DeclareSource} and insert references 2181% ll.~10--12;\footnote{For detailed information on how to use
2165% to cited works, the reader is invited to refer to 2182% \cs{DeclareSource} and insert references to cited works, the reader
2166% \vref{sec:references-cited-works}.} finally, |egoscr| (l.~18) is 2183% is invited to refer to \vref{sec:references-cited-works}.} finally,
2167% used to print the technical Latin term \enquote{\emph{scripsi}}, 2184% |egoscr| (l.~20) is used to print the technical Latin term
2168% \enquote{I wrote}, to denote a personal conjecture. Then, the |.tex| 2185% \enquote{\emph{scripsi}}, \enquote{I wrote}, to denote a personal
2169% source file can be structured as follows:--- 2186% conjecture. Then, the |.tex| source file can be structured as
2187% follows:---
2170% 2188%
2171% \iffalse 2189% \iffalse
2172%<*example> 2190%<*example>
2173% \fi 2191% \fi
2174\begin{minted}[linenos=false]{latex} 2192\begin{minted}{latex}
2175\begin{ekdosis} 2193\begin{ekdosis}
2194 καὶ ἐγίνετο μᾶλλον \app{
2195 \lem[wit={V, Ipc,R,H}]{νότῳ}
2196 \rdg[wit=Iac]{νότου}
2197 \rdg[source=Erm, type=conjecture]{ἐν νώτῳ}}· [...] % conjecture
2198
2176 εἰ 2199 εἰ
2177 \app{ 2200 \app{
2178 \lem[resp=egoscr, type=emendation]{μὲν} 2201 \lem[resp=egoscr, type=emendation]{μὲν} % emendation
2179 \rdg[wit=codd, source=edd]{μὴ} 2202 \rdg[wit=codd, source=edd]{μὴ}
2180 } εἴη διὰ ταῦτα [...] 2203 } εἴη διὰ ταῦτα [...]
2181\end{ekdosis} 2204\end{ekdosis}
@@ -2183,7 +2206,42 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
2183% \iffalse 2206% \iffalse
2184%</example> 2207%</example>
2185% \fi 2208% \fi
2186% 2209%
2210% \begin{remarks}
2211% \item Line~5 introduces a \emph{conjecture} which has been annotated
2212% with |type=conjecture| to facilitate its identification. Other
2213% optional arguments could have been used, such as
2214% |prewit=|\texttt{coni.} or |prewit=|\texttt{falso coni.}, to print
2215% explanatory words in the apparatus criticus before the abridged
2216% name of the scholar.
2217% \item Conversely, line~9 introduces an \emph{emendation} for which
2218% the shorthand |egoscr| has been used to print the exact term
2219% \emph{scripsi} in the apparatus criticus while keeping |ego| as an
2220% |xml:id| for the \texttt{TEI xml} ouput file. Other strategies
2221% could have been used. For example, one could have defined a
2222% specific shorthand to print nothing in place of |ego| and leave
2223% the insertion of technical terms to the |post| optional argument
2224% of \cs{lem}, like so:---
2225% \iffalse
2226%<*example>
2227% \fi
2228\begin{minted}[linenos=false]{latex}
2229% Preamble:
2230% (\unskip is for removing the space left by the empty 2nd argument
2231% below.)
2232\DeclareShorthand{egomute}{\unskip}{ego}
2233
2234% Document:
2235 \app{
2236 \lem[resp=egomute, post=\emph{scripsi}, type=emendation]{μὲν}
2237 \rdg[wit=codd, source=edd]{μὴ}
2238 } εἴη διὰ ταῦτα [...]
2239\end{minted}
2240% \iffalse
2241%</example>
2242% \fi
2243% \end{remarks}
2244%
2187% PDF output:--- 2245% PDF output:---
2188% \medskip 2246% \medskip
2189% 2247%
@@ -2192,6 +2250,11 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
2192% \begin{alignment}[flush,tcols=1,texts=specimen,apparatus=specimen] 2250% \begin{alignment}[flush,tcols=1,texts=specimen,apparatus=specimen]
2193% \begin{specimen} 2251% \begin{specimen}
2194% \begin{ancientgreek} 2252% \begin{ancientgreek}
2253% καὶ ἐγίνετο μᾶλλον \app{
2254% \lem[wit={hV, hIpc,hR,hH}]{νότῳ}
2255% \rdg[wit=hIac]{νότου}
2256% \rdg[source=Erm, type=conjecture]{ἐν νώτῳ}}· [...]
2257%
2195% εἰ \app{ 2258% εἰ \app{
2196% \lem[resp=hegoscr, type=emendation]{μὲν} 2259% \lem[resp=hegoscr, type=emendation]{μὲν}
2197% \rdg[wit=hcodd, source=hedd]{μὴ} 2260% \rdg[wit=hcodd, source=hedd]{μὴ}
@@ -2206,16 +2269,248 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
2206%<*example> 2269%<*example>
2207% \fi 2270% \fi
2208\begin{minted}[linenos=false]{xml} 2271\begin{minted}[linenos=false]{xml}
2209<p xml:lang="grc">εἰ 2272<p xml:lang="grc">καὶ ἐγίνετο μᾶλλον
2273<app>
2274 <lem wit="#V #Ipc #R #H">νότῳ</lem>
2275 <rdg wit="#Iac">νότου</rdg>
2276 <rdg source="#Erm" type="conjecture">ἐν νώτῳ</rdg>
2277</app>· [...]</p>
2278<p>εἰ
2210<app> 2279<app>
2211 <lem resp="#ego" type="emendation">μὲν</lem> 2280 <lem resp="#ego" type="emendation">μὲν</lem>
2212 <rdg wit="#V #I #R #H" source="#Lit #Erm #Sm">μὴ</rdg> 2281 <rdg wit="#V #I #R #H" source="#Lit #Erm #Sm">
2282 μὴ</rdg>
2213</app>εἴη διὰ ταῦτα [...]</p> 2283</app>εἴη διὰ ταῦτα [...]</p>
2214\end{minted} 2284\end{minted}
2215% \iffalse 2285% \iffalse
2216%</example> 2286%</example>
2217% \fi 2287% \fi
2218% 2288%
2289% \subsection{Editorial Addition and Deletion}
2290% \label{sec:editorial-add-del}
2291% \pkg{ekdosis} provides a set of commands to indicate that text has
2292% been supplied or removed by conjecture. As regards critical
2293% symbols conventionally used for representing emendations, lacunae,
2294% omissions, gaps, editorial deletions or additions and the like,
2295% \pkg{ekdosis} follows the standards as described by
2296% \textcite[80--82]{West1973}:---
2297% \begin{description}[font=\ttfamily]
2298% \item[<>] text added by conjecture or from a parallel source.
2299% \item[***] lacuna in the whole textual tradition.
2300% \item[<***>] conjectured lacuna.
2301% \item[\{\}] editorial deletion.
2302% \item[\dag\dag] text juged by the editor to be corrupt. Note that if
2303% only one word is suspect, only one crux is needed.
2304% \end{description}
2305%
2306% \DescribeMacro{\SetCritSymbols} \cs{SetCritSymbols}\marg{csv list of
2307% options} can be used to change the critical symbols described
2308% above. This command accepts the following list of |key-value|
2309% optional arguments:---\\
2310% \DescribeOption{suppbegin}|suppbegin|$=$\meta{symbol}
2311% \hfill\tcboxverb{Default: <}\\
2312% The opening symbol used to mark the text that is supplied.\\
2313% \DescribeOption{suppend}|suppend|$=$\meta{symbol}
2314% \hfill\tcboxverb{Default: >}\\
2315% The closing symbol used to mark the text that is supplied.\\
2316% \DescribeOption{delbegin}|delbegin|$=$\meta{symbol}
2317% \hfill\tcboxverb|Default: {|\\
2318% The opening symbol used to mark the text that is deleted.\\
2319% \DescribeOption{delend}|delend|$=$\meta{symbol}
2320% \hfill\tcboxverb|Default: }|\\
2321% The closing symbol used to mark the text that is deleted.\\
2322% \DescribeOption{sicbegin}|sicbegin|$=$\meta{symbol}
2323% \hfill\tcboxverb{Default: †}\\
2324% The opening symbol used to mark the text that is deemed to be
2325% suspect.\\
2326% \DescribeOption{sicend}|sicend|$=$\meta{symbol}
2327% \hfill\tcboxverb{Default: †}\\
2328% The closing symbol used to mark the text that is deemed to be
2329% suspect.\\
2330% \DescribeOption{gapmark}|gapmark|$=$\meta{symbols}
2331% \hfill\tcboxverb{Default: ***}\\
2332% The symbols used to mark lacunae.\\
2333%
2334% As an example, what follows sets |[]| for deletions and |...| for
2335% lacunae:---
2336%
2337% \iffalse
2338%<*example>
2339% \fi
2340\begin{minted}[linenos=false]{latex}
2341\SetCritSymbols{
2342 delbegin = [,
2343 delend = ],
2344 gapmark = \dots
2345}
2346\end{minted}
2347% \iffalse
2348%</example>
2349% \fi
2350%
2351% \danger If modified, brackets can be adapted to languages that are
2352% written from right to left. To that effect, \pkg{ekdosis} provides a
2353% boolean expression |al@rlmode| which is evaluated as |true| if the
2354% writing direction is set from right to left and as |false|
2355% otherwise. As the \pkg{etoolbox} package is loaded by \pkg{ekdosis},
2356% \cs{ifboolean}|{al@rlmode}|\marg{rtl symbol}\marg{ltr symbol} can be
2357% used to perform the test.
2358%
2359% \paragraph{Editorial Addition}
2360% \DescribeMacro{\supplied} \cs{supplied}\marg{text} is used to mark
2361% \meta{text} that is by definition missing from the tradition as
2362% supplied by the editor or some other scholar. This command is
2363% normally expected in \cs{lem}|{}| or \cs{rdg}|{}|.
2364%
2365% \paragraph{Editorial Deletion}
2366% \DescribeMacro{\surplus} \cs{surplus}\marg{text} is used to mark
2367% \meta{text} that is deemed to be inauthentic, but nevertheless
2368% retained between braces in the edition text as it is transmitted by
2369% all witnesses. This command is normally expected in \cs{lem}|{}| or
2370% \cs{rdg}|{}|.
2371%
2372% \paragraph{Crux}
2373% \DescribeMacro{\sic} \cs{sic}\marg{text} takes as mandatory argument
2374% the text deemed by the editor to be readable but not
2375% understandable. \cs{sic} inserts \meta{text} between cruces while
2376% \cs{sic*} prints only one crux before \meta{text}.
2377%
2378% \paragraph{Lacuna}
2379% \DescribeMacro{\gap} \cs{gap}\marg{csv list of options} indicates
2380% that some amount of text has fallen away from the entire
2381% tradition. It takes as mandatory argument a comma-separated list of
2382% options that can be used to further specify the reason for omission,
2383% the unit of measurement, the quantity or the extent, as follows:---\\
2384% \DescribeOption{reason}|reason|$=$\meta{reason}\\
2385% |reason| gives the reason for omission.\\
2386% \DescribeOption{unit} |unit|$=$\meta{unit}\\
2387% |unit| provides some regularized measurement, such as |character|,
2388% |word|, |line| and the like.
2389% \DescribeOption{quantity} |quantity|$=$\meta{n}\\
2390% |quantity| specifies the number of the given unit that comprise the
2391% measurement.\\
2392% \DescribeOption{extent} |extent|$=$\meta{description}\\
2393% |extent| describes the size, including quantity and units in a
2394% single string of words.
2395%
2396% \paragraph{Conjectured Lacuna}
2397% Assumably, the conjectured lacuna should be enclosed by
2398% \cs{supplied} and as such contained by \cs{lem} with
2399% |type=emendation| to indicate that the lacuna has been accepted by
2400% the editor.
2401%
2402% Examples follow:---
2403%
2404% \iffalse
2405%<*example>
2406% \fi
2407\begin{minted}{latex}
2408% Preamble:
2409\DeclareShorthand{egomute}{\unskip}{ego}
2410
2411% Document:
2412\begin{ekdosis}
2413 σχεδὸν \app{
2414 \lem[resp=egomute, nosep, post={post σχεδὸν quattuor uerba
2415 excidisse uid.}, type=emendation]{\supplied{\gap{reason=lost,
2416 unit=word, quantity=4}}}
2417 } οὗτοι
2418
2419 subsidiis magnis \sic*{epicuri} constabilitas
2420
2421 declinare quis est qui \sic{possit cernere sese}.
2422
2423 \app{
2424 \lem[resp=egomute, type=emendation, nosep, post={ante
2425 ὑπογίν.}]{\surplus{καὶ}}
2426 \note{deleui e Gal.P}
2427 } ὑπογίνονται
2428
2429 Πάντων δὲ \app{
2430 \lem[resp=egomute, type=emendation, post={addidi (\arb{^gamI`a
2431 'l-.hummayAti} Gal.)}]{\supplied{τῶν πυρετῶν}}
2432 \rdg[nordg, source=Gal]{\arb{^gamI`a 'l-.hummayAti}}
2433 \rdg[wit=codd, source=edd, alt=om.]{}
2434 },
2435\end{ekdosis}
2436\end{minted}
2437% \iffalse
2438%</example>
2439% \fi
2440%
2441% PDF output:---
2442% \medskip
2443% \needspace{7\baselineskip}
2444% \resetlinenumber
2445% \begin{alignment}[flush,tcols=1,texts=specimen,apparatus=specimen]
2446% \begin{specimen}
2447% σχεδὸν \app{
2448% \lem[resp=egomute, nosep, post={post σχεδὸν quattuor uerba
2449% excidisse uid.}, type=emendation]{\supplied{\gap{reason=lost,
2450% unit=word, quantity=4}}}
2451% } οὗτοι
2452%
2453% subsidiis magnis \sic*{epicuri} constabilitas
2454%
2455% declinare quis est qui \sic{possit cernere sese}.
2456%
2457% \app{
2458% \lem[resp=egomute, type=emendation, nosep, post={ante
2459% ὑπογίν.}]{\surplus{καὶ}}
2460% \note{deleui e Gal.P}
2461% } ὑπογίνονται
2462%
2463%
2464% Πάντων δὲ \app{
2465% \lem[resp=egomute, type=emendation, post={addidi (\arb{^gamI`a
2466% 'l-.hummayAti} Gal.)}]{\supplied{τῶν πυρετῶν}}
2467% \rdg[nordg, source=Gal]{\arb{^gamI`a 'l-.hummayAti}}
2468% \rdg[wit=hcodd, source=hedd, alt=om.]{}
2469% },
2470% \end{specimen}
2471% \end{alignment}
2472%
2473% \texttt{TEI xml} ouput:---
2474%
2475% \iffalse
2476%<*example>
2477% \fi
2478\begin{minted}[linenos=false]{xml}
2479<p>σχεδὸν
2480<app>
2481 <lem resp="#ego" type="emendation">
2482 <supplied>
2483 <gap reason="lost" unit="word" quantity="4" />
2484 </supplied>
2485 </lem>
2486</app>οὗτοι</p>
2487<p>subsidiis magnis
2488<sic>epicuri</sic>constabilitas</p>
2489<p>declinare quis est qui
2490<sic>possit cernere sese</sic>.</p>
2491<p>
2492<app>
2493 <lem resp="#ego" type="emendation">
2494 <surplus>καὶ</surplus>
2495 </lem>
2496 <note>deleui e Gal.P</note>
2497</app>ὑπογίνονται</p>
2498<p>Πάντων δὲ
2499<app>
2500 <lem resp="#ego" type="emendation">
2501 <supplied>τῶν πυρετῶν</supplied>
2502 </lem>
2503 <rdg source="#Gal">
2504 <foreign xml:lang="ar-Latn" type="transliterated"
2505 subtype="arabtex">^gamI`a 'l-.hummayAti</foreign>
2506 </rdg>
2507 <rdg wit="#V #I #R #H" source="#Lit #Erm #Sm" />
2508</app>,</p>
2509\end{minted}
2510% \iffalse
2511%</example>
2512% \fi
2513%
2219% \section{Laying Out the Apparatus Criticus } 2514% \section{Laying Out the Apparatus Criticus }
2220% \label{sec:apparatus-layout} 2515% \label{sec:apparatus-layout}
2221% 2516%
@@ -4153,12 +4448,13 @@ Sample text with a \textcolor{red}{word} in red.
4153% the |<listWit>| element of the \texttt{TEI} header, whereas the 4448% the |<listWit>| element of the \texttt{TEI} header, whereas the
4154% latter is to be found within the |<listBibl>| element. 4449% latter is to be found within the |<listBibl>| element.
4155% 4450%
4156% \DescribeMacro{\SetxmlBibResource} 4451% \DescribeMacro{\AddxmlBibResource}
4157% \cs{SetxmlBibResource}\marg{basename} is a preamble-only command. If 4452% \cs{AddxmlBibResource}\marg{basename or name.xml} is a preamble-only
4158% a base name for a \texttt{TEI xml} compliant bibliographical 4453% command. If a base name (either suffixed with |.xml| or not) for a
4159% database be provided, \pkg{ekdosis} will use it and insert formatted 4454% \texttt{TEI xml} compliant bibliographical database be provided,
4160% data in the back matter section of its own \texttt{TEI xml} output 4455% \pkg{ekdosis} will use it and insert formatted data in the back
4161% file, as |<biblStruct>| elements within a |listBibl| section. 4456% matter section of its own \texttt{TEI xml} output file, as
4457% |<biblStruct>| elements within a |listBibl| section.
4162% 4458%
4163% As an example, the following Bib\hologo{(La)TeX} entry and its 4459% As an example, the following Bib\hologo{(La)TeX} entry and its
4164% \texttt{TEI} equivalent are provided:\footnote{\label{fn:zotero}To 4460% \texttt{TEI} equivalent are provided:\footnote{\label{fn:zotero}To
@@ -4225,7 +4521,7 @@ Sample text with a \textcolor{red}{word} in red.
4225% \fi 4521% \fi
4226\begin{minted}{latex} 4522\begin{minted}{latex}
4227% Use 'bibl.xml' as a TEI xml bibliographical database: 4523% Use 'bibl.xml' as a TEI xml bibliographical database:
4228\SetxmlBibResource{bibl} % 'bibl' is the basename of 'bibl.xml' 4524\AddxmlBibResource{bibdata.xml}
4229 4525
4230% Declare A. Drakenborch as source: 4526% Declare A. Drakenborch as source:
4231\DeclareSource{Drak}{\emph{Drakenborch}} 4527\DeclareSource{Drak}{\emph{Drakenborch}}
@@ -4245,12 +4541,12 @@ Sample text with a \textcolor{red}{word} in red.
4245\begin{minted}{latex} 4541\begin{minted}{latex}
4246% Preamble: 4542% Preamble:
4247\usepackage[style=oxnotes]{biblatex} 4543\usepackage[style=oxnotes]{biblatex}
4248\addbibresource{bibl.bib} 4544\addbibresource{bibdata.bib}
4249 4545
4250\usepackage[teiexport=tidy]{ekdosis} 4546\usepackage[teiexport=tidy]{ekdosis}
4251 4547
4252% basename of the .xml bibliographical database: 4548% basename of the .xml bibliographical database:
4253\SetxmlBibResource{bibl} % viz. "load bibl.xml" 4549\AddxmlBibResource{bibdata.xml}
4254 4550
4255% Witnesses: 4551% Witnesses:
4256\DeclareWitness{L}{L}{Laurentianus, plut, XXXVII, cod. 16}[ 4552\DeclareWitness{L}{L}{Laurentianus, plut, XXXVII, cod. 16}[
@@ -4364,7 +4660,7 @@ Sample text with a \textcolor{red}{word} in red.
4364% |<biblStruct>| elements.\footnote{See above n.~\vref{fn:zotero} for 4660% |<biblStruct>| elements.\footnote{See above n.~\vref{fn:zotero} for
4365% information on how to do this.} Finally, this |.xml| bibliographical 4661% information on how to do this.} Finally, this |.xml| bibliographical
4366% database must have been connected to the |.tex| source file by means 4662% database must have been connected to the |.tex| source file by means
4367% of \cs{SetxmlBibResource} described above in 4663% of \cs{AddxmlBibResource} described above in
4368% \vref{sec:references-cited-works}. 4664% \vref{sec:references-cited-works}.
4369% 4665%
4370% As an example, the following |sample.bib| file is used:--- 4666% As an example, the following |sample.bib| file is used:---
@@ -4433,8 +4729,7 @@ Sample text with a \textcolor{red}{word} in red.
4433\documentclass{article} 4729\documentclass{article}
4434 4730
4435\usepackage[teiexport=tidy]{ekdosis} 4731\usepackage[teiexport=tidy]{ekdosis}
4436\SetxmlBibResource{sample} % base name supplied here, without the 4732\AddxmlBibResource{sample.xml}
4437 % extension
4438 4733
4439\usepackage[style=oxnotes]{biblatex} 4734\usepackage[style=oxnotes]{biblatex}
4440\addbibresource{sample.bib} 4735\addbibresource{sample.bib}
@@ -4536,8 +4831,6 @@ Sample text with a \textcolor{red}{word} in red.
4536% \begin{enumerate} 4831% \begin{enumerate}
4537% \item Very short-term (weeks):--- 4832% \item Very short-term (weeks):---
4538% \begin{enumerate} 4833% \begin{enumerate}
4539% \item Editorial changes, for inserting corrections and
4540% conjectures.
4541% \item Text structure: milestone elements. 4834% \item Text structure: milestone elements.
4542% \end{enumerate} 4835% \end{enumerate}
4543% \item Short-term (months):--- 4836% \item Short-term (months):---
@@ -5514,18 +5807,18 @@ Sample text with a \textcolor{red}{word} in red.
5514\@onlypreamble\SetTEIFileName 5807\@onlypreamble\SetTEIFileName
5515% \end{macrocode} 5808% \end{macrocode}
5516% \end{macro} 5809% \end{macro}
5517% \begin{macro}{\SetxmlBibResource} This is a preamble-only command. 5810% \begin{macro}{\AddxmlBibResource} This is a preamble-only command.
5518% If a base name for a \texttt{TEI xml} compliant bibliographical 5811% If a base name (either suffixed with |.xml| or not) for a
5519% database file is provided with 5812% \texttt{TEI xml} compliant bibliographical database file be
5520% \cs{SetxmlBibResource}\marg{basename}, \pkg{ekdosis} will use it 5813% provided with \cs{AddxmlBibResource}\marg{basename or name.xml},
5521% and insert formatted data in the back matter section of its own 5814% \pkg{ekdosis} will use it and insert formatted data in the back
5522% \texttt{TEI xml} output file, as |<biblStruct>| elements within a 5815% matter section of its own \texttt{TEI xml} output file, as
5523% |<listBibl>| section. 5816% |<biblStruct>| elements within a |<listBibl>| section.
5524% \begin{macrocode} 5817% \begin{macrocode}
5525\NewDocumentCommand{\SetxmlBibResource}{m}{ 5818\NewDocumentCommand{\AddxmlBibResource}{m}{
5526 \luadirect{ekdosis.setxmlbibresource(\luastringN{#1})} 5819 \luadirect{ekdosis.addxmlbibresource(\luastringN{#1})}
5527} 5820}
5528\@onlypreamble\SetxmlBibResource 5821\@onlypreamble\AddxmlBibResource
5529% \end{macrocode} 5822% \end{macrocode}
5530% \end{macro} 5823% \end{macro}
5531% 5824%
@@ -5955,6 +6248,7 @@ Sample text with a \textcolor{red}{word} in red.
5955% \cs{rdg} or \cs{note}\meta{*}:--- 6248% \cs{rdg} or \cs{note}\meta{*}:---
5956% \begin{macrocode} 6249% \begin{macrocode}
5957\NewDocumentCommand{\app}{O{} > { \TrimSpaces } +m}{% 6250\NewDocumentCommand{\app}{O{} > { \TrimSpaces } +m}{%
6251 \leavevmode
5958 \begingroup 6252 \begingroup
5959 \ekvset{appnote}{#1}% 6253 \ekvset{appnote}{#1}%
5960 \ekd@isinapptrue% 6254 \ekd@isinapptrue%
@@ -6958,7 +7252,7 @@ local citecmds = lpeg.Cs(lpeg.P("icite")
6958local next = next 7252local next = next
6959 7253
6960-- General 7254-- General
6961xmlids = {} 7255local xmlids = {}
6962table.insert(xmlids, {xmlid = "scholars"} ) 7256table.insert(xmlids, {xmlid = "scholars"} )
6963 7257
6964local function xmlidfound(element) 7258local function xmlidfound(element)
@@ -7179,8 +7473,13 @@ end
7179 7473
7180local xmlbibresource = nil 7474local xmlbibresource = nil
7181 7475
7182function ekdosis.setxmlbibresource(str) 7476function ekdosis.addxmlbibresource(str)
7183 xmlbibresource = str..".xml" 7477 if string.find(str, "%.xml$")
7478 then
7479 xmlbibresource = str
7480 else
7481 xmlbibresource = str..".xml"
7482 end
7184 return true 7483 return true
7185end 7484end
7186 7485