aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2020-08-30 11:07:18 +0200
committerRobert Alessi <alessi@robertalessi.net>2020-08-30 11:07:18 +0200
commit312579a658b4570bd003e00c1d19e649a8177f28 (patch)
treeda8cf20bc18e52c5d68333412d4e777b4b27009b
parent05788d7a44b677587a5aa9fc1e423cc820ef98dc (diff)
downloadekdosis-312579a658b4570bd003e00c1d19e649a8177f28.tar.gz
documented \ekdsep. the set of options in \ekd@note was wrong. note_totei() needed to check whether 'right' opt is empty
-rw-r--r--ekdosis.dtx60
1 files changed, 41 insertions, 19 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index cf1db6c..302d537 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -1494,8 +1494,17 @@ yesterday.
1494% bracket (|]|)\\ 1494% bracket (|]|)\\
1495% \DescribeOption{nosep} |nosep|$=$\verb+true|false+\\ 1495% \DescribeOption{nosep} |nosep|$=$\verb+true|false+\\
1496% This named argument does not need a value as it defaults to |true| 1496% This named argument does not need a value as it defaults to |true|
1497% if it is used. Obviously, |nosep| removes the separator mentioned 1497% if it is used. |nosep| removes the separator mentioned
1498% above.\\ 1498% above. Obviously, |nosep| must be used when for some reason no
1499% \cs{rdg} command follows a \cs{lem} command that has just been
1500% used, as shown below in \vref{lst:emend-coni-corr}, l.~7.
1501% \danger \DescribeMacro{\ekdsep} If |nosep| has been used so as to
1502% insert an explanatory note after the lemma text with the \cs{note}
1503% command described below \vpageref{ref:editorial-notes}, then
1504% \cs{ekdsep} can be used\---for instance as value of the |post|
1505% optional argument of the note\---to put back in the separator. This
1506% technique is demonstrated below in
1507% \vref{lst:emend-coni-corr}, ll.~23--5.\\
1499% \DescribeOption{nolem} |nolem|$=$\verb+true|false+\\ 1508% \DescribeOption{nolem} |nolem|$=$\verb+true|false+\\
1500% This named argument does not need a value as it defaults to |true| 1509% This named argument does not need a value as it defaults to |true|
1501% if it is used. |nolem| completely removes the lemma text from the 1510% if it is used. |nolem| completely removes the lemma text from the
@@ -1996,6 +2005,8 @@ yesterday.
1996% Examples follow:\footnote{On the use of \texttt{egomute} (l.~2), see 2005% Examples follow:\footnote{On the use of \texttt{egomute} (l.~2), see
1997% above \vref{it:egomute}.}--- 2006% above \vref{it:egomute}.}---
1998% 2007%
2008% \captof{Emendations, conjectures and
2009% corrections}[\label{lst:emend-coni-corr}]
1999% \iffalse 2010% \iffalse
2000%<*example> 2011%<*example>
2001% \fi 2012% \fi
@@ -2022,8 +2033,9 @@ yesterday.
2022 } ὑπογίνονται 2033 } ὑπογίνονται
2023 2034
2024 Πάντων δὲ \app{ 2035 Πάντων δὲ \app{
2025 \lem[resp=egomute, type=emendation, post={addidi (\arb{^gamI`a 2036 \lem[resp=egomute, type=emendation, nosep]{\supplied{τῶν πυρετῶν}}
2026 'l-.hummayAti} Gal.)}]{\supplied{τῶν πυρετῶν}} 2037 \note[post=\ekdsep]{addidi (\arb{^gamI`a 'l-.hummayAti}
2038 \getsiglum{Gal})}
2027 \rdg[nordg, source=Gal]{\arb{^gamI`a 'l-.hummayAti}} 2039 \rdg[nordg, source=Gal]{\arb{^gamI`a 'l-.hummayAti}}
2028 \rdg[wit=codd, source=edd, alt=om.]{} 2040 \rdg[wit=codd, source=edd, alt=om.]{}
2029 }, 2041 },
@@ -2058,8 +2070,9 @@ yesterday.
2058% 2070%
2059% 2071%
2060% Πάντων δὲ \app{ 2072% Πάντων δὲ \app{
2061% \lem[resp=egomute, type=emendation, post={addidi (\arb{^gamI`a 2073% \lem[resp=egomute, type=emendation, nosep]{\supplied{τῶν πυρετῶν}}
2062% 'l-.hummayAti} Gal.)}]{\supplied{τῶν πυρετῶν}} 2074% \note[post=\ekdsep]{addidi (\arb{^gamI`a 'l-.hummayAti}
2075% \getsiglum{Gal})}
2063% \rdg[nordg, source=Gal]{\arb{^gamI`a 'l-.hummayAti}} 2076% \rdg[nordg, source=Gal]{\arb{^gamI`a 'l-.hummayAti}}
2064% \rdg[wit=hcodd, source=hedd, alt=om.]{} 2077% \rdg[wit=hcodd, source=hedd, alt=om.]{}
2065% }, 2078% },
@@ -2096,6 +2109,10 @@ yesterday.
2096 <lem resp="#ego" type="emendation"> 2109 <lem resp="#ego" type="emendation">
2097 <supplied>τῶν πυρετῶν</supplied> 2110 <supplied>τῶν πυρετῶν</supplied>
2098 </lem> 2111 </lem>
2112 <note>addidi (
2113 <foreign xml:lang="ar-Latn" type="transliterated"
2114 subtype="arabtex">^gamI`a 'l-.hummayAti</foreign>
2115 <ref target="#Gal">Gal.</ref>)</note>
2099 <rdg source="#Gal"> 2116 <rdg source="#Gal">
2100 <foreign xml:lang="ar-Latn" type="transliterated" 2117 <foreign xml:lang="ar-Latn" type="transliterated"
2101 subtype="arabtex">^gamI`a 'l-.hummayAti</foreign> 2118 subtype="arabtex">^gamI`a 'l-.hummayAti</foreign>
@@ -6771,10 +6788,10 @@ Sample text with a \textcolor{red}{word} in red.
6771 \bgroup% 6788 \bgroup%
6772 \ekvset{ekd@note}{#1}% 6789 \ekvset{ekd@note}{#1}%
6773 \edef\note@contents{% 6790 \edef\note@contents{%
6774 \ekvifdefinedNoVal{note}{pre}{}{% 6791 \ekvifdefinedNoVal{ekd@note}{pre}{}{%
6775 \unexpanded\expandafter{\pre@value}}% 6792 \unexpanded\expandafter{\pre@value}}%
6776 {\unexpanded{#2}}% 6793 {\unexpanded{#2}}%
6777 \ekvifdefinedNoVal{note}{post}{}{% 6794 \ekvifdefinedNoVal{ekd@note}{post}{}{%
6778 \unexpanded\expandafter{\post@value}}% 6795 \unexpanded\expandafter{\post@value}}%
6779 }% 6796 }%
6780 \append@app{\note@contents}% 6797 \append@app{\note@contents}%
@@ -6785,10 +6802,10 @@ Sample text with a \textcolor{red}{word} in red.
6785 \bgroup% 6802 \bgroup%
6786 \ekvset{ekd@note}{#1}% 6803 \ekvset{ekd@note}{#1}%
6787 \edef\note@contents{% 6804 \edef\note@contents{%
6788 \ekvifdefinedNoVal{note}{pre}{}{% 6805 \ekvifdefinedNoVal{ekd@note}{pre}{}{%
6789 \unexpanded\expandafter{\pre@value}}% 6806 \unexpanded\expandafter{\pre@value}}%
6790 \unskip\noexpand\parnote{\unexpanded{#2}}% 6807 \unskip\noexpand\parnote{\unexpanded{#2}}%
6791 \ekvifdefinedNoVal{note}{post}{}{% 6808 \ekvifdefinedNoVal{ekd@note}{post}{}{%
6792 \unexpanded\expandafter{\post@value}}% 6809 \unexpanded\expandafter{\post@value}}%
6793 }% 6810 }%
6794 \append@app{\note@contents}% 6811 \append@app{\note@contents}%
@@ -7722,16 +7739,21 @@ local function note_totei(str)
7722 if teitype ~= "" then teitype = " type=\""..teitype.."\"" else end 7739 if teitype ~= "" then teitype = " type=\""..teitype.."\"" else end
7723 right = get_attr_value(opt, "labelb") 7740 right = get_attr_value(opt, "labelb")
7724 left = get_attr_value(opt, "labele") 7741 left = get_attr_value(opt, "labele")
7725 if left ~= "" 7742 if right == ""
7726 then 7743 then
7727 return string.format( 7744 return string.format("<%s>%s</%s>", cmd, arg, cmd)
7728 "<%s%s target=\"#range(right(%s),left(%s))\">%s</%s><anchor xml:id=\"%s\"/>", 7745 else
7729 cmd, teitype, right, left, arg, cmd, right) 7746 if left ~= ""
7730 elseif left == "" 7747 then
7731 then 7748 return string.format(
7732 return string.format( 7749 "<%s%s target=\"#range(right(%s),left(%s))\">%s</%s><anchor xml:id=\"%s\"/>",
7733 "<%s%s target=\"#right(%s)\">%s</%s><anchor xml:id=\"%s\"/>", 7750 cmd, teitype, right, left, arg, cmd, right)
7734 cmd, teitype, right, arg, cmd, right) 7751 elseif left == ""
7752 then
7753 return string.format(
7754 "<%s%s target=\"#right(%s)\">%s</%s><anchor xml:id=\"%s\"/>",
7755 cmd, teitype, right, arg, cmd, right)
7756 end
7735 end 7757 end
7736 end) 7758 end)
7737 return str 7759 return str