From dbdae0e7bb9aa82c7d021400b033d5812189afc3 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Mon, 24 May 2021 21:54:20 +0200
Subject: have citation commands use bibl and biblScope

---
 ekdosis.dtx | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

(limited to 'ekdosis.dtx')

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
 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
 %<package>\ProvidesPackage{ekdosis}
 %<*package>
-    [2021/05/22 v1.3-dev Typesetting TEI xml-compliant critical editions]
+    [2021/05/24 v1.3-dev Typesetting TEI xml-compliant critical editions]
 %</package>
 %<*driver>
 \begin{filecontents}[noheader,overwrite]{bibdata.xml}
@@ -6364,8 +6364,8 @@ Sample text with a \textcolor{red}{word} in red.
 % \pkg{ekdosis} can also convert into \texttt{TEI xml} references to
 % cited works. Depending on the optional arguments used in the
 % citation command, references will be converted into |<ptr>| or
-% |<ref>| elements with the appropriate identifier supplied by means
-% of the |target| attribute.
+% |<bibl>| elements with the appropriate identifier supplied by means
+% of the |target| or |corresp| attributes.
 %
 % Of course, for this mechanism to work, Bib\TeX\ or Bib\LaTeX\ must
 % be used and connected to some |.bib| bibliographical database
@@ -6481,7 +6481,9 @@ Sample text with a \textcolor{red}{word} in red.
 <text>
   <body>
     <p>On textual criticism, see 
-    <ref target="#ReynoldsWilson1991">207--241</ref>.</p>
+    <bibl corresp="#ReynoldsWilson1991">
+      <biblScope>207--241</biblScope>
+    </bibl>.</p>
   </body>
   <back>
     <listBibl>
@@ -7505,7 +7507,7 @@ Sample text with a \textcolor{red}{word} in red.
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\teidirect}
-% \changes{v1.3}{2021/05/22}{direct insertion of elements in the
+% \changes{v1.3}{2021/05/24}{direct insertion of elements in the
 % \texttt{TEI xml} file}
 % \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code}
 % 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.
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\SetApparatusNoteLanguage}
-% \changes{v1.3}{2021/05/22}{defines an alternate language to be
+% \changes{v1.3}{2021/05/24}{defines an alternate language to be
 % applied in note apparatus entries}
 % \cs{SetApparatusNoteLang}\marg{languagename} can be used when
 % it is needed to apply in entries introduced by the \cs{note} command
@@ -10176,7 +10178,8 @@ local function icitetotei(str)
 				 "Please pick another id.}}")
 		 else
 		 end
-		 return string.format("%s <ref target=\"#%s\">%s</ref>", pre, body, post)
+		 return string.format("%s <bibl corresp=\"#%s\"><biblScope>%s</biblScope></bibl>",
+				      pre, body, post)
    end)
    str = gsub(str, lpeg.P("\\")
 		 * citecmds
@@ -10196,7 +10199,7 @@ local function icitetotei(str)
 				 "Please pick another id.}}")
 		 else
 		 end
-		 return string.format("<ref target=\"#%s\">%s</ref>", body, post)
+		 return string.format("<bibl corresp=\"#%s\"><biblScope>%s</biblScope></bibl>", body, post)
    end)
    str = gsub(str, lpeg.P("\\")
 		 * citecmds
-- 
cgit v1.2.3

