aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2021-12-14 07:39:11 +0100
committerRobert Alessi <alessi@robertalessi.net>2021-12-14 07:39:11 +0100
commitd1cf12490114037341ffbad3ccd6defedea911a5 (patch)
tree5bdfe17252552956a20e60f6d7bd1642d9db19e8
parent98989868a186dfb00cc97024f46c7cbf40126197 (diff)
downloadekdosis-d1cf12490114037341ffbad3ccd6defedea911a5.tar.gz
remove_extra_anchors() needs tostring()
-rw-r--r--ekdosis.dtx8
1 files changed, 4 insertions, 4 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 1117273..f1a59e9 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/12/11 v1.5-dev Typesetting TEI xml-compliant critical editions] 64 [2021/12/14 v1.5-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}
@@ -7758,7 +7758,7 @@ Sample text with a \textcolor{red}{word} in red.
7758% \end{macrocode} 7758% \end{macrocode}
7759% \paragraph{\textsf{ekdosis} Symbol} 7759% \paragraph{\textsf{ekdosis} Symbol}
7760% \begin{macro}{\eKd} 7760% \begin{macro}{\eKd}
7761% \changes{v1.5}{2021/12/11}{Prints \textsf{ekdosis} indentifying 7761% \changes{v1.5}{2021/12/14}{Prints \textsf{ekdosis} indentifying
7762% symbol} As of v1.5, \pkg{ekdosis} has its own indentifying 7762% symbol} As of v1.5, \pkg{ekdosis} has its own indentifying
7763% symbol. It is produced by \cs{eKd} and best printed with the Old 7763% symbol. It is produced by \cs{eKd} and best printed with the Old
7764% Standard Greek font. 7764% Standard Greek font.
@@ -10696,9 +10696,9 @@ end
10696local function remove_extra_anchors(str) 10696local function remove_extra_anchors(str)
10697 str = gsub(str, lpeg.Cs("</note>") * inanchor * inopeningnote, function(enote, anchor, bnote) 10697 str = gsub(str, lpeg.Cs("</note>") * inanchor * inopeningnote, function(enote, anchor, bnote)
10698 local id_one = string.gsub(anchor, "(%<anchor )(.-)(/%>)", "%2") 10698 local id_one = string.gsub(anchor, "(%<anchor )(.-)(/%>)", "%2")
10699 id_one = string.sub(get_attr_value(id_one, "xml:id"), 2, -2) 10699 id_one = string.sub(get_attr_value(tostring(id_one), "xml:id"), 2, -2)
10700 local id_two = string.match(bnote, "target%=.-right%((.-)%)") 10700 local id_two = string.match(bnote, "target%=.-right%((.-)%)")
10701 id_two = string.gsub(id_two, ".-right%((.-)%)", "%1") 10701 id_two = string.gsub(tostring(id_two), ".-right%((.-)%)", "%1")
10702 if id_one == id_two 10702 if id_one == id_two
10703 then 10703 then
10704 return string.format("%s%s", enote, bnote) 10704 return string.format("%s%s", enote, bnote)