aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2020-10-07 14:33:30 +0200
committerRobert Alessi <alessi@robertalessi.net>2020-10-07 14:33:30 +0200
commit554560246500a2f7188be20c3be408ff5852ca77 (patch)
treeb99205c77b94303c4fbba107907437fbb7cc3d14
parent5f0be4a846c6df990032c3a7f8e0f9a845127963 (diff)
downloadekdosis-554560246500a2f7188be20c3be408ff5852ca77.tar.gz
done documenting subvariation
-rw-r--r--ekdosis.dtx109
1 files changed, 91 insertions, 18 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 7531487..bdc87a5 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -1442,7 +1442,7 @@ yesterday.
1442% \enquote{source} and \enquote{scholar} as defined above 1442% \enquote{source} and \enquote{scholar} as defined above
1443% \vpageref{sec:terminology}. 1443% \vpageref{sec:terminology}.
1444% 1444%
1445% \paragraph{Lemmata} \DescribeMacro{\lem} 1445% \paragraph{Lemmata} \label{ref:lemmata}\DescribeMacro{\lem}
1446% \cs{lem}\oarg{options}\marg{lemma text}\\ 1446% \cs{lem}\oarg{options}\marg{lemma text}\\
1447% As \meta{lemma text} is a word or a phrase judged by the editor to 1447% As \meta{lemma text} is a word or a phrase judged by the editor to
1448% be authentic or authoritative, \cs{lem} prints it by default both in 1448% be authentic or authoritative, \cs{lem} prints it by default both in
@@ -1571,7 +1571,7 @@ yesterday.
1571% \DescribeOption{postwit} |postwit|$=$\meta{words}\\ 1571% \DescribeOption{postwit} |postwit|$=$\meta{words}\\
1572% 1572%
1573% \paragraph{Notes} 1573% \paragraph{Notes}
1574% \DescribeMacro{\note}\DescribeMacro{\note*} 1574% \DescribeMacro{\note}\label{ref:notes-b}\DescribeMacro{\note*}
1575% \cs{note}\oarg{options}\marg{text} or 1575% \cs{note}\oarg{options}\marg{text} or
1576% \cs{note*}\oarg{options}\marg{text}\label{ref:editorial-notes}\\ 1576% \cs{note*}\oarg{options}\marg{text}\label{ref:editorial-notes}\\
1577% It may happen that editorial notes be needed to record short 1577% It may happen that editorial notes be needed to record short
@@ -1723,6 +1723,7 @@ yesterday.
1723% \iffalse 1723% \iffalse
1724%</example> 1724%</example>
1725% \fi 1725% \fi
1726% \label{ref:notes-e}
1726% 1727%
1727% \subsection{Indicating Subvariation in Apparatus Entries} 1728% \subsection{Indicating Subvariation in Apparatus Entries}
1728% \label{sec:indic-subv-appar} 1729% \label{sec:indic-subv-appar}
@@ -1735,8 +1736,8 @@ yesterday.
1735% apparatus. \pkg{ekdosis} provides two ways of expressing 1736% apparatus. \pkg{ekdosis} provides two ways of expressing
1736% subvariation. 1737% subvariation.
1737% 1738%
1738% \subsubsection{Implicit Grouping by Nesting Entries} 1739% \subsubsection{Implicit Grouping}
1739% \label{sec:impl-group-nest} 1740% \label{sec:implicit-grouping}
1740% Because apparatus entries may nest recursively, the \cs{app} command 1741% Because apparatus entries may nest recursively, the \cs{app} command
1741% may be used to group similar readings. 1742% may be used to group similar readings.
1742% 1743%
@@ -1754,10 +1755,11 @@ As I was walking home through Times Square, I saw my friend
1754 \lem[wit={A,B}, alt={Peter\---yesterday}]{Peter at the 1755 \lem[wit={A,B}, alt={Peter\---yesterday}]{Peter at the
1755 \app{ 1756 \app{
1756 \lem[wit=A, alt=station]{station} 1757 \lem[wit=A, alt=station]{station}
1757 \rdg[wit=B, alt=pub]{bookstore}} 1758 \rdg[wit=B, alt=bookstore]{bookstore}
1759 }
1758 yesterday} 1760 yesterday}
1759 \rdg[wit=C, alt={John at the bookstore this evening}]{John at the 1761 \rdg[wit=C, alt={John this evening}]{John this evening}
1760 bookstore this evening}}. 1762}.
1761\end{minted} 1763\end{minted}
1762% \iffalse 1764% \iffalse
1763%</example> 1765%</example>
@@ -1775,10 +1777,9 @@ As I was walking home through Times Square, I saw my friend
1775% \lem[wit={pjA,pjB}, alt={Peter\---yesterday}]{Peter at the 1777% \lem[wit={pjA,pjB}, alt={Peter\---yesterday}]{Peter at the
1776% \app{ 1778% \app{
1777% \lem[wit=pjA, alt=station]{station} 1779% \lem[wit=pjA, alt=station]{station}
1778% \rdg[wit=pjB, alt=pub]{bookstore}} 1780% \rdg[wit=pjB, alt=bookstore]{bookstore}}
1779% yesterday} 1781% yesterday}
1780% \rdg[wit=pjC, alt={John at the bookstore this evening}]{John at 1782% \rdg[wit=pjC, alt={John this evening}]{John this evening}}.
1781% the bookstore this evening}}.
1782% \end{specimen} 1783% \end{specimen}
1783% \end{alignment} 1784% \end{alignment}
1784% 1785%
@@ -1796,12 +1797,90 @@ friend
1796 <lem wit="#A">station</lem> 1797 <lem wit="#A">station</lem>
1797 <rdg wit="#B">bookstore</rdg> 1798 <rdg wit="#B">bookstore</rdg>
1798 </app>yesterday</lem> 1799 </app>yesterday</lem>
1799 <rdg wit="#C">John at the bookstore this evening</rdg> 1800 <rdg wit="#C">John this evening</rdg>
1801</app>.</p>
1802\end{minted}
1803% \iffalse
1804%</example>
1805% \fi
1806%
1807% \subsubsection{Explicit Grouping}
1808% \label{sec:explicit-grouping}
1809% \DescribeMacro{\rdgGrp} \cs{rdgGrp}\oarg{options}\marg{lemma text
1810% \textbar\ readings}\newfeature[v1.1]\\
1811% Explicit grouping of readings can be achieved by means of the
1812% \cs{rdgGrp} command. It takes as mandatory argument the commands
1813% used for inserting lemma texts, readings and notes that are
1814% described \vpagerefrange{ref:lemmata}{ref:notes-e}, viz.\ \cs{lem},
1815% \cs{rdg} and \cs{note}. \cs{rdgGrp} accepts one further optional
1816% argument:---\\
1817% \DescribeOption{type} |type|$=$\meta{value}\\
1818% This named argument is used in the \texttt{TEI xml} output to
1819% define an attribute common to all elements representing the
1820% variation.
1821%
1822% Here follows how the technique of explicit grouping would apply to
1823% the same passage as above:---
1824%
1825% \iffalse
1826%<*example>
1827% \fi
1828\begin{minted}[linenos=false]{latex}
1829As I was walking home through Times Square, I saw my friend
1830\app{
1831 \rdgGrp[type=subvariation]{
1832 \lem[wit=A, alt={Peter\---yesterday}]{Peter at the station
1833 yesterday}
1834 \rdg[wit=B, alt={bookstore \emph{pro} station}]{Peter at the
1835 bookstore yesterday}
1836 }
1837 \rdg[wit=C]{John this evening}
1838}.
1839\end{minted}
1840% \iffalse
1841%</example>
1842% \fi
1843%
1844% PDF output:---
1845% \medskip
1846%
1847% \needspace{7\baselineskip}
1848% \resetlinenumber
1849% \begin{alignment}[flush,tcols=1,texts=specimen,apparatus=specimen]
1850% \begin{specimen}
1851% As I was walking home through Times Square, I saw my friend
1852% \app{
1853% \rdgGrp[type=subvariation]{
1854% \lem[wit=pjA, alt={Peter\---yesterday}]{Peter at the station
1855% yesterday}
1856% \rdg[wit=pjB, alt={bookstore \emph{pro} station}]{Peter at the
1857% bookstore yesterday}
1858% }
1859% \rdg[wit=pjC]{John this evening}
1860% }.
1861% \end{specimen}
1862% \end{alignment}
1863%
1864% \texttt{TEI xml} output:---
1865%
1866% \iffalse
1867%<*example>
1868% \fi
1869\begin{minted}[linenos=false]{xml}
1870<p>As I was walking home through Times Square, I saw my
1871friend
1872<app>
1873 <rdgGrp type="subvariation">
1874 <lem wit="#A">Peter at the station yesterday</lem>
1875 <rdg wit="#B">Peter at the bookstore yesterday</rdg>
1876 </rdgGrp>
1877 <rdg wit="#C">John this evening</rdg>
1800</app>.</p> 1878</app>.</p>
1801\end{minted} 1879\end{minted}
1802% \iffalse 1880% \iffalse
1803%</example> 1881%</example>
1804% \fi 1882% \fi
1883%
1805% \section{Emendations and Conjectures} 1884% \section{Emendations and Conjectures}
1806% \label{sec:emendations-conjectures} 1885% \label{sec:emendations-conjectures}
1807% From a technical standpoint, \enquote{conjectures} are readings that 1886% From a technical standpoint, \enquote{conjectures} are readings that
@@ -7987,12 +8066,6 @@ local function rdgGrp_totei(str)
7987 function(bkslash, cmd, opt, arg) 8066 function(bkslash, cmd, opt, arg)
7988 opt = string.sub(opt, 2, -2) 8067 opt = string.sub(opt, 2, -2)
7989 arg = string.sub(arg, 2, -2) 8068 arg = string.sub(arg, 2, -2)
7990 teiwit = get_attr_value(opt, "wit")
7991 if teiwit ~= "" then teiwit = " wit=\""..ekdosis.getsiglum(teiwit, "tei").."\"" else end
7992 teisource = get_attr_value(opt, "source")
7993 if teisource ~= "" then teisource = " source=\""..ekdosis.getsiglum(teisource, "tei").."\"" else end
7994 teiresp = get_attr_value(opt, "resp")
7995 if teiresp ~= "" then teiresp = " resp=\""..ekdosis.getsiglum(teiresp, "tei").."\"" else end
7996 teitype = get_attr_value(opt, "type") 8069 teitype = get_attr_value(opt, "type")
7997 if teitype ~= "" then teitype = " type=\""..teitype.."\"" else end 8070 if teitype ~= "" then teitype = " type=\""..teitype.."\"" else end
7998 if opt == "" 8071 if opt == ""
@@ -8001,7 +8074,7 @@ local function rdgGrp_totei(str)
8001 cmd, arg, cmd)) 8074 cmd, arg, cmd))
8002 else 8075 else
8003 return rdgGrp_totei(string.format("<%s%s%s%s%s>%s</%s>", 8076 return rdgGrp_totei(string.format("<%s%s%s%s%s>%s</%s>",
8004 cmd, teiwit, teisource, teiresp, teitype, arg, cmd)) 8077 cmd, teitype, arg, cmd))
8005 end 8078 end
8006 end) 8079 end)
8007 return str 8080 return str