diff options
-rw-r--r-- | ekdosis.dtx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index 7ff76a2..2be331a 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -7757,6 +7757,7 @@ Sample text with a \textcolor{red}{word} in red. | |||
7757 | store appfontsize = \ekd@appfontsize, | 7757 | store appfontsize = \ekd@appfontsize, |
7758 | store refnumstyle = \ekd@refnumstyle, | 7758 | store refnumstyle = \ekd@refnumstyle, |
7759 | store postrefnum = \ekd@postrefnum, | 7759 | store postrefnum = \ekd@postrefnum, |
7760 | code siglumsep = \luadirect{ekdosis.setsiglumsep(\luastringN{#1})}, | ||
7760 | store lemmastyle = \ekd@lemmastyle, | 7761 | store lemmastyle = \ekd@lemmastyle, |
7761 | store readingstyle = \ekd@readingstyle, | 7762 | store readingstyle = \ekd@readingstyle, |
7762 | code keyparopts = \if@pkg@keyfloat\ekd@keyparopts{#1}\fi, | 7763 | code keyparopts = \if@pkg@keyfloat\ekd@keyparopts{#1}\fi, |
@@ -10367,6 +10368,18 @@ function ekdosis.newsource(id, siglum) | |||
10367 | return true | 10368 | return true |
10368 | end | 10369 | end |
10369 | 10370 | ||
10371 | local siglumsep = nil | ||
10372 | |||
10373 | function ekdosis.setsiglumsep(str) | ||
10374 | if str == "reset" | ||
10375 | then | ||
10376 | siglumsep = nil | ||
10377 | else | ||
10378 | siglumsep = str | ||
10379 | end | ||
10380 | return true | ||
10381 | end | ||
10382 | |||
10370 | function ekdosis.getsiglum(str, opt) | 10383 | function ekdosis.getsiglum(str, opt) |
10371 | str = str.."," | 10384 | str = str.."," |
10372 | str = string.gsub(str, "%s-(%,)", "%1") | 10385 | str = string.gsub(str, "%s-(%,)", "%1") |
@@ -10388,6 +10401,10 @@ function ekdosis.getsiglum(str, opt) | |||
10388 | for i = 1,#idsRend do | 10401 | for i = 1,#idsRend do |
10389 | local tempc = string.gsub(idsRend[i].xmlid, "([%-%.%_])", "%%%1") | 10402 | local tempc = string.gsub(idsRend[i].xmlid, "([%-%.%_])", "%%%1") |
10390 | str = string.gsub(str, tempc.."%,", idsRend[i].abbr) | 10403 | str = string.gsub(str, tempc.."%,", idsRend[i].abbr) |
10404 | if siglumsep ~= nil | ||
10405 | then | ||
10406 | str = string.gsub(str, "%s", siglumsep) | ||
10407 | end | ||
10391 | ctrl = string.gsub(ctrl, tempc.."%,", "") | 10408 | ctrl = string.gsub(ctrl, tempc.."%,", "") |
10392 | end | 10409 | end |
10393 | end | 10410 | end |