aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2021-05-24 21:54:20 +0200
committerRobert Alessi <alessi@robertalessi.net>2021-05-24 21:54:20 +0200
commitdbdae0e7bb9aa82c7d021400b033d5812189afc3 (patch)
tree9a4681d9e60c84d9246618906771130ff42023a2
parentdf61c4b717995c3828019580e1da325d0870e8ca (diff)
downloadekdosis-dbdae0e7bb9aa82c7d021400b033d5812189afc3.tar.gz
have citation commands use bibl and biblScope
-rw-r--r--ekdosis.dtx19
1 files changed, 11 insertions, 8 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 7aa05cf..d1edd77 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/22 v1.3-dev Typesetting TEI xml-compliant critical editions] 64 [2021/05/24 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}
@@ -6364,8 +6364,8 @@ Sample text with a \textcolor{red}{word} in red.
6364% \pkg{ekdosis} can also convert into \texttt{TEI xml} references to 6364% \pkg{ekdosis} can also convert into \texttt{TEI xml} references to
6365% cited works. Depending on the optional arguments used in the 6365% cited works. Depending on the optional arguments used in the
6366% citation command, references will be converted into |<ptr>| or 6366% citation command, references will be converted into |<ptr>| or
6367% |<ref>| elements with the appropriate identifier supplied by means 6367% |<bibl>| elements with the appropriate identifier supplied by means
6368% of the |target| attribute. 6368% of the |target| or |corresp| attributes.
6369% 6369%
6370% Of course, for this mechanism to work, Bib\TeX\ or Bib\LaTeX\ must 6370% Of course, for this mechanism to work, Bib\TeX\ or Bib\LaTeX\ must
6371% be used and connected to some |.bib| bibliographical database 6371% be used and connected to some |.bib| bibliographical database
@@ -6481,7 +6481,9 @@ Sample text with a \textcolor{red}{word} in red.
6481<text> 6481<text>
6482 <body> 6482 <body>
6483 <p>On textual criticism, see 6483 <p>On textual criticism, see
6484 <ref target="#ReynoldsWilson1991">207--241</ref>.</p> 6484 <bibl corresp="#ReynoldsWilson1991">
6485 <biblScope>207--241</biblScope>
6486 </bibl>.</p>
6485 </body> 6487 </body>
6486 <back> 6488 <back>
6487 <listBibl> 6489 <listBibl>
@@ -7505,7 +7507,7 @@ Sample text with a \textcolor{red}{word} in red.
7505% \end{macrocode} 7507% \end{macrocode}
7506% \end{macro} 7508% \end{macro}
7507% \begin{macro}{\teidirect} 7509% \begin{macro}{\teidirect}
7508% \changes{v1.3}{2021/05/22}{direct insertion of elements in the 7510% \changes{v1.3}{2021/05/24}{direct insertion of elements in the
7509% \texttt{TEI xml} file} 7511% \texttt{TEI xml} file}
7510% \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code} 7512% \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code}
7511% does nothing in \LaTeX. Its only use is to insert elements in the 7513% does nothing in \LaTeX. Its only use is to insert elements in the
@@ -7864,7 +7866,7 @@ Sample text with a \textcolor{red}{word} in red.
7864% \end{macrocode} 7866% \end{macrocode}
7865% \end{macro} 7867% \end{macro}
7866% \begin{macro}{\SetApparatusNoteLanguage} 7868% \begin{macro}{\SetApparatusNoteLanguage}
7867% \changes{v1.3}{2021/05/22}{defines an alternate language to be 7869% \changes{v1.3}{2021/05/24}{defines an alternate language to be
7868% applied in note apparatus entries} 7870% applied in note apparatus entries}
7869% \cs{SetApparatusNoteLang}\marg{languagename} can be used when 7871% \cs{SetApparatusNoteLang}\marg{languagename} can be used when
7870% it is needed to apply in entries introduced by the \cs{note} command 7872% it is needed to apply in entries introduced by the \cs{note} command
@@ -10176,7 +10178,8 @@ local function icitetotei(str)
10176 "Please pick another id.}}") 10178 "Please pick another id.}}")
10177 else 10179 else
10178 end 10180 end
10179 return string.format("%s <ref target=\"#%s\">%s</ref>", pre, body, post) 10181 return string.format("%s <bibl corresp=\"#%s\"><biblScope>%s</biblScope></bibl>",
10182 pre, body, post)
10180 end) 10183 end)
10181 str = gsub(str, lpeg.P("\\") 10184 str = gsub(str, lpeg.P("\\")
10182 * citecmds 10185 * citecmds
@@ -10196,7 +10199,7 @@ local function icitetotei(str)
10196 "Please pick another id.}}") 10199 "Please pick another id.}}")
10197 else 10200 else
10198 end 10201 end
10199 return string.format("<ref target=\"#%s\">%s</ref>", body, post) 10202 return string.format("<bibl corresp=\"#%s\"><biblScope>%s</biblScope></bibl>", body, post)
10200 end) 10203 end)
10201 str = gsub(str, lpeg.P("\\") 10204 str = gsub(str, lpeg.P("\\")
10202 * citecmds 10205 * citecmds