aboutsummaryrefslogtreecommitdiff
path: root/ekdosis.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'ekdosis.dtx')
-rw-r--r--ekdosis.dtx43
1 files changed, 23 insertions, 20 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 70b30ad..3ea05ca 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -710,7 +710,7 @@ along with this program. If not, see
710% \fi 710% \fi
711% 711%
712% As can be seen from \vref{lst:pj1}, the edition text is inserted in 712% As can be seen from \vref{lst:pj1}, the edition text is inserted in
713% the \env{ekdosis} environment (l.~1 to 13). Then two 713% the \env{ekdosis} environment (l.~1 to 8). Then two
714% \cs{app}\marg{apparatus entry} commands (ll.~3 and 7) contain the 714% \cs{app}\marg{apparatus entry} commands (ll.~3 and 7) contain the
715% lemma (\cs{lem}\marg{lemma}), namely the reading that is accepted by 715% lemma (\cs{lem}\marg{lemma}), namely the reading that is accepted by
716% the editor, and at least one variant reading 716% the editor, and at least one variant reading
@@ -729,7 +729,7 @@ along with this program. If not, see
729% square bracket is used inside entries to distinguish the lemma from 729% square bracket is used inside entries to distinguish the lemma from
730% the variant readings. 730% the variant readings.
731% 731%
732% Furthermore, as said above, if a \texttt{TEI xml} output is 732% Furthermore, as said above, if a \texttt{TEI xml} output be
733% required, \pkg{ekdosis} compiles an additional |.xml| file an 733% required, \pkg{ekdosis} compiles an additional |.xml| file an
734% excerpt of which is provided above. 734% excerpt of which is provided above.
735% 735%
@@ -774,11 +774,11 @@ along with this program. If not, see
774% the specific requirements of classical and literary texts, the 774% the specific requirements of classical and literary texts, the
775% divisions of which may depend on many different received 775% divisions of which may depend on many different received
776% traditions. \pkg{ekdosis} provides a flexible mechanism in which 776% traditions. \pkg{ekdosis} provides a flexible mechanism in which
777% format and presentation have been carefully separated. It is 777% format and presentation have been carefully separated from
778% designed to build un-numbered \texttt{TEI} divisions allowed to nest 778% content. It is designed to build un-numbered \texttt{TEI} divisions
779% recursively. However, if |divs| be set to |latex|, \LaTeX{} standard 779% allowed to nest recursively. However, if |divs| be set to |latex|,
780% textual divisions can be used and will be translated into 780% \LaTeX{} standard textual divisions can be used and will be
781% \texttt{TEI} numbered |<div>| elements. 781% translated into \texttt{TEI} numbered |<div>| elements.
782% 782%
783% \danger It must be noted that the two styles are mutually exclusive. 783% \danger It must be noted that the two styles are mutually exclusive.
784% \vskip\baselineskip 784% \vskip\baselineskip
@@ -907,7 +907,7 @@ along with this program. If not, see
907% |.tex| source file and as an |xml:id| in the \texttt{TEI xml} output 907% |.tex| source file and as an |xml:id| in the \texttt{TEI xml} output
908% if any. 908% if any.
909% \item The unique idendifier of the witness the hand is related 909% \item The unique idendifier of the witness the hand is related
910% to. Of course, this witness must have been previously declared. 910% to. Of course, this witness must have been declared beforehand.
911% \item The rendition to be used in the printed apparatus criticus, 911% \item The rendition to be used in the printed apparatus criticus,
912% which also will be found within the |<handNote>| element of the 912% which also will be found within the |<handNote>| element of the
913% \texttt{TEI} header where the description of the hand occurs, within 913% \texttt{TEI} header where the description of the hand occurs, within
@@ -999,7 +999,7 @@ along with this program. If not, see
999% As an example, the manuscripts of Caesar's \emph{Gallic War} are 999% As an example, the manuscripts of Caesar's \emph{Gallic War} are
1000% divided into two families: α, which includes mss.\ A, M, B, R, S, L 1000% divided into two families: α, which includes mss.\ A, M, B, R, S, L
1001% and N, and β, which includes mss.\ T, f, U and l. Therefore, 1001% and N, and β, which includes mss.\ T, f, U and l. Therefore,
1002% provided that all theses witnesses have been already declared, here 1002% provided that all these witnesses have been already declared, here
1003% is how the two families α and β could be 1003% is how the two families α and β could be
1004% declared:---\footnote{These witnesses are used in the example 1004% declared:---\footnote{These witnesses are used in the example
1005% provided below in \vref{lst:caesar-bg}.} 1005% provided below in \vref{lst:caesar-bg}.}
@@ -1508,7 +1508,7 @@ yesterday.
1508% \item As can be seen from the apparatus entry related to l.~4 above, 1508% \item As can be seen from the apparatus entry related to l.~4 above,
1509% a subvariant has been inserted in the lemma part: \enquote{(aut et 1509% a subvariant has been inserted in the lemma part: \enquote{(aut et
1510% \getsiglum{cA1})}. This was done by using |alt| in 1510% \getsiglum{cA1})}. This was done by using |alt| in
1511% \vref{lst:caesar-bg}, l.~9. But as this variant is already 1511% \vref{lst:caesar-bg}, ll.~9--10. But as this variant is already
1512% recorded\---and printed\---in the lemma part, it was necessary to 1512% recorded\---and printed\---in the lemma part, it was necessary to
1513% remove the entire otherwise redundant variant from the apparatus 1513% remove the entire otherwise redundant variant from the apparatus
1514% criticus in print. Hence the use of |nordg| at l.~11. 1514% criticus in print. Hence the use of |nordg| at l.~11.
@@ -3671,6 +3671,7 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
3671% \iffalse 3671% \iffalse
3672%<*lua> 3672%<*lua>
3673% \fi 3673% \fi
3674% \begin{comment}
3674% \begin{ekdlua} 3675% \begin{ekdlua}
3675-- `' 3676-- `'
3676-- This table will hold the functions: 3677-- This table will hold the functions:
@@ -3919,8 +3920,8 @@ local cmdtotags = {
3919 {a="textsubscript", b="hi", c=" rend=\"sub\""}, 3920 {a="textsubscript", b="hi", c=" rend=\"sub\""},
3920 {a="LRfootnote", b="note", c=" place=\"bottom\""}, 3921 {a="LRfootnote", b="note", c=" place=\"bottom\""},
3921 {a="RLfootnote", b="note", c=" place=\"bottom\""}, 3922 {a="RLfootnote", b="note", c=" place=\"bottom\""},
3922 {a="footnote", b="note", c=" place=\"bottom\""},
3923 {a="enquote *", b="quote", c=""}, 3923 {a="enquote *", b="quote", c=""},
3924 {a="footnote", b="note", c=" place=\"bottom\""},
3924 {a="enquote", b="quote", c=""}, 3925 {a="enquote", b="quote", c=""},
3925 {a="txtrans", b="s", c=" xml:lang=\"ar-Latn\" type=\"transliterated\""}, 3926 {a="txtrans", b="s", c=" xml:lang=\"ar-Latn\" type=\"transliterated\""},
3926 {a="textbf", b="hi", c=" rend=\"bold\""}, 3927 {a="textbf", b="hi", c=" rend=\"bold\""},
@@ -3929,21 +3930,28 @@ local cmdtotags = {
3929 {a="textsf", b="hi", c=" rend=\"sf\""}, 3930 {a="textsf", b="hi", c=" rend=\"sf\""},
3930 {a="arbup", b="hi", c=" rend=\"sup\""}, 3931 {a="arbup", b="hi", c=" rend=\"sup\""},
3931 {a="txarb", b="s", c=" xml:lang=\"arb\""}, 3932 {a="txarb", b="s", c=" xml:lang=\"arb\""},
3932 {a="arb", b="s", 3933 {a="arb", b="foreign",
3933 c=" xml:lang=\"ar-Latn\" type=\"transliterated\" subtype=\"arabtex\""} 3934 c=" xml:lang=\"ar-Latn\" type=\"transliterated\" subtype=\"arabtex\""}
3934} 3935}
3935 3936
3936local texpatttotags = { 3937local texpatttotags = {
3937 {a="\\icite%s?%[(.-)%]%[(.-)%]{(.-)}", b="%1 <ref target=\"#%3\">%2</ref>"}, 3938 {a="\\icite%s?%[(.-)%]%[(.-)%]{(.-)}", b="%1 <ref target=\"#%3\">%2</ref>"},
3938 {a="\\icite%s?%[(.-)%]{(.-)}", b="<ref target=\"#%2\">%1</ref>"}, 3939 {a="\\icite%s?%[(.-)%]{(.-)}", b="<ref target=\"#%2\">%1</ref>"},
3939 {a="\\icite%s?{(.-)}", b="<ptr target=\"#%1\"/>"} 3940 {a="\\icite%s?{(.-)}", b="<ptr target=\"#%1\"/>"},
3941 {a="\\linelabel%s?{(.-)}", b="<anchor xml:id=\"%1\"/>"},
3942 {a="\\label%s?{(.-)}", b="<anchor xml:id=\"%1\"/>"},
3943 {a="\\v?pageref%s?{(.-)}", b="<ptr target=\"#%1\"/>"},
3944 {a="\\v?ref%s?{(.-)}", b="<ptr target=\"#%1\"/>"}
3940} 3945}
3941 3946
3942local envtotags = { 3947local envtotags = {
3948 {a="flushright", b="p", c=" rend=\"align(right)\""},
3949 {a="flushleft", b="p", c=" rend=\"align(left)\""},
3950 {a="quotation", b="quote", c=""},
3943 {a="ekdverse", b="lg", c=""}, 3951 {a="ekdverse", b="lg", c=""},
3944 {a="txarabtr", b="p", c=" xml:lang=\"ar-Latn\" type=\"transliterated\""}, 3952 {a="txarabtr", b="p", c=" xml:lang=\"ar-Latn\" type=\"transliterated\""},
3945 {a="txarab", b="p", c=" xml:lang=\"arb\""}, 3953 {a="txarab", b="p", c=" xml:lang=\"arb\""},
3946 {a="center", b="p", c=" rend=\"centered\""}, 3954 {a="center", b="p", c=" rend=\"align(center)\""},
3947 {a="verse", b="lg", c=""}, 3955 {a="verse", b="lg", c=""},
3948 {a="arab", b="p", 3956 {a="arab", b="p",
3949 c=" xml:lang=\"ar-Latn\" type=\"transliterated\" subtype=\"arabtex\""} 3957 c=" xml:lang=\"ar-Latn\" type=\"transliterated\" subtype=\"arabtex\""}
@@ -4222,12 +4230,6 @@ local function cmdtotei(str)
4222 end) 4230 end)
4223 end 4231 end
4224 -- temporarily: 4232 -- temporarily:
4225 str = string.gsub(str, "\\(linelabel)%s?(%b{})",
4226 function(cmd, body)
4227 body = string.sub(body, 2, -2)
4228 -- body = cmdtotei(body)
4229 return string.format("<anchor xml:id=\"%s\"/>", body)
4230 end)
4231 str = string.gsub(str, "\\(getsiglum)%s?(%b{})", 4233 str = string.gsub(str, "\\(getsiglum)%s?(%b{})",
4232 function(cmd, body) 4234 function(cmd, body)
4233 body = string.sub(body, 2, -2) 4235 body = string.sub(body, 2, -2)
@@ -5343,6 +5345,7 @@ function ekdosis.mdvappend(str, teitype)
5343end 5345end
5344 5346
5345% \end{ekdlua} 5347% \end{ekdlua}
5348% \end{comment}
5346% \iffalse 5349% \iffalse
5347%</lua> 5350%</lua>
5348% \fi 5351% \fi