aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2021-05-30 21:46:16 +0200
committerRobert Alessi <alessi@robertalessi.net>2021-05-30 21:46:16 +0200
commitfde1eee531f211fb7707a4c0452a52db353eff3e (patch)
treef77a4540dca11486fc99fdc6ddace3979da2ef16
parente24fd7fcf465ef7b3042f2c7c4abd9420d1c9d74 (diff)
downloadekdosis-fde1eee531f211fb7707a4c0452a52db353eff3e.tar.gz
[6f3b36f] needed more work: fixed
-rw-r--r--ekdosis.dtx34
1 files changed, 17 insertions, 17 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 85b7af7..9f50ec5 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -61,7 +61,7 @@ along with this program. If not, see
61%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] 61%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
62%<package>\ProvidesPackage{ekdosis} 62%<package>\ProvidesPackage{ekdosis}
63%<*package> 63%<*package>
64 [2021/05/28 v1.3-dev Typesetting TEI xml-compliant critical editions] 64 [2021/05/30 v1.3-dev Typesetting TEI xml-compliant critical editions]
65%</package> 65%</package>
66%<*driver> 66%<*driver>
67\begin{filecontents}[noheader,overwrite]{bibdata.xml} 67\begin{filecontents}[noheader,overwrite]{bibdata.xml}
@@ -5610,16 +5610,16 @@ subtype="arabtex">'inna 'abI kAna mina
5610% \phts\label{ref:xmlid} As a general rule, the |xml:id| global 5610% \phts\label{ref:xmlid} As a general rule, the |xml:id| global
5611% attribute must be unique for the element that bears the 5611% attribute must be unique for the element that bears the
5612% attribute. Furthermore, it must begin with a letter or an underscore 5612% attribute. Furthermore, it must begin with a letter or an underscore
5613% and contain no characters other than letters of the Latin alphabet 5613% and contain no characters other than letters of the Latin
5614% either upper or lower case from |a| to |z|, digits, hyphens, 5614% alphabet\--- from |a| to |z|, either upper or lower case\---digits,
5615% underscores and full stops. \pkg{ekdosis} issues a warning when it 5615% hyphens, underscores and full stops. \pkg{ekdosis} issues a warning
5616% finds that any \meta{unique id} of \meta{unique label} expected in 5616% when it finds that any \meta{unique id} of \meta{unique label}
5617% the first argument of \cs{DeclareWitness}, \cs{DeclareHand}, 5617% expected in the first argument of \cs{DeclareWitness},
5618% \cs{DeclareSource} or \cs{DeclareScholar} is not unique or breaks 5618% \cs{DeclareHand}, \cs{DeclareSource} or \cs{DeclareScholar} is not
5619% the rules just described, but does not prevent the |.tex| source 5619% unique or breaks the rules just described, but does not prevent the
5620% file from compiling. Instead, it prints the string |<??>| in place 5620% |.tex| source file from compiling. Instead, it prints the string
5621% of the expected formatted siglum so that the error in the |.tex| 5621% |<??>| in place of the expected formatted siglum so that the error
5622% source file can be easily spotted and corrected. 5622% in the |.tex| source file can be easily spotted and corrected.
5623% 5623%
5624% \danger As the \meta{unique id} declared with \cs{DeclareShorthand} 5624% \danger As the \meta{unique id} declared with \cs{DeclareShorthand}
5625% is not to be exported in the \texttt{TEI xml} output file, 5625% is not to be exported in the \texttt{TEI xml} output file,
@@ -7509,7 +7509,7 @@ Sample text with a \textcolor{red}{word} in red.
7509% \end{macrocode} 7509% \end{macrocode}
7510% \end{macro} 7510% \end{macro}
7511% \begin{macro}{\teidirect} 7511% \begin{macro}{\teidirect}
7512% \changes{v1.3}{2021/05/28}{direct insertion of elements in the 7512% \changes{v1.3}{2021/05/30}{direct insertion of elements in the
7513% \texttt{TEI xml} file} 7513% \texttt{TEI xml} file}
7514% \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code} 7514% \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code}
7515% does nothing in \LaTeX. Its only use is to insert elements in the 7515% does nothing in \LaTeX. Its only use is to insert elements in the
@@ -7868,7 +7868,7 @@ Sample text with a \textcolor{red}{word} in red.
7868% \end{macrocode} 7868% \end{macrocode}
7869% \end{macro} 7869% \end{macro}
7870% \begin{macro}{\SetApparatusNoteLanguage} 7870% \begin{macro}{\SetApparatusNoteLanguage}
7871% \changes{v1.3}{2021/05/28}{defines an alternate language to be 7871% \changes{v1.3}{2021/05/30}{defines an alternate language to be
7872% applied in note apparatus entries} 7872% applied in note apparatus entries}
7873% \cs{SetApparatusNoteLang}\marg{languagename} can be used when 7873% \cs{SetApparatusNoteLang}\marg{languagename} can be used when
7874% it is needed to apply in entries introduced by the \cs{note} command 7874% it is needed to apply in entries introduced by the \cs{note} command
@@ -7952,7 +7952,7 @@ Sample text with a \textcolor{red}{word} in red.
7952% apparatus criticus, a conditional is first defined. 7952% apparatus criticus, a conditional is first defined.
7953% \begin{macrocode} 7953% \begin{macrocode}
7954\if@pkg@float 7954\if@pkg@float
7955\trivfloat{ekdapparatus} 7955 \trivfloat{ekdapparatus}
7956\fi 7956\fi
7957\newif\ifekd@inside@app 7957\newif\ifekd@inside@app
7958\def\add@@apparatus{% 7958\def\add@@apparatus{%
@@ -9750,7 +9750,7 @@ local cmdtotags = {
9750 {a="textsc", b="hi", c=" rend=\"smallcaps\""}, 9750 {a="textsc", b="hi", c=" rend=\"smallcaps\""},
9751 {a="textsf", b="hi", c=" rend=\"sf\""}, 9751 {a="textsf", b="hi", c=" rend=\"sf\""},
9752 {a="arbup", b="hi", c=" rend=\"sup\""}, 9752 {a="arbup", b="hi", c=" rend=\"sup\""},
9753 {a="txarb", b="s", c=" xml:lang=\"arb\""}, 9753 {a="txarb", b="foreign", c=" xml:lang=\"arb\""},
9754 {a="arb", b="span", 9754 {a="arb", b="span",
9755 c=" xml:lang=\"ar-Latn\" type=\"transliterated\" subtype=\"arabtex\""} 9755 c=" xml:lang=\"ar-Latn\" type=\"transliterated\" subtype=\"arabtex\""}
9756} 9756}
@@ -10585,7 +10585,7 @@ end
10585 10585
10586local function close_ekddivs_in_between(str) 10586local function close_ekddivs_in_between(str)
10587 local maxdepth = 1 10587 local maxdepth = 1
10588 for i in string.gmatch(str, "<div.-depth=\"(%d)\".->", "%1") 10588 for i in string.gmatch(str, "<div.-[Dd]epth=\"(%d)\".->", "%1")
10589 do 10589 do
10590 if tonumber(i) > tonumber(maxdepth) 10590 if tonumber(i) > tonumber(maxdepth)
10591 then 10591 then
@@ -10610,9 +10610,9 @@ local function close_ekddivs_in_between(str)
10610 do 10610 do
10611 closedivs = closedivs.."</div>" 10611 closedivs = closedivs.."</div>"
10612 firstdivindex = firstdivindex - 1 10612 firstdivindex = firstdivindex - 1
10613 bdivii = string.gsub(bdivii, "depth", "Depth")
10613 end 10614 end
10614 end 10615 end
10615 bdivii = string.gsub(bdivii, "depth", "Depth")
10616 return string.format("%s%s%s%s%s%s%s%s", 10616 return string.format("%s%s%s%s%s%s%s%s",
10617 bdivi, ndivi, edivi, between, 10617 bdivi, ndivi, edivi, between,
10618 closedivs, bdivii, ndivii, edivii) 10618 closedivs, bdivii, ndivii, edivii)