diff options
-rw-r--r-- | ekdosis.dtx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index 48d8551..01d9b60 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -5329,6 +5329,7 @@ subtype="arabtex">'inna 'abI kAna mina | |||
5329 | % \paragraph{Conditional page breaks} | 5329 | % \paragraph{Conditional page breaks} |
5330 | % \phts\label{ref:ekdpb} \DescribeMacro{\ekdpb}\DescribeMacro{\ekdpb*} | 5330 | % \phts\label{ref:ekdpb} \DescribeMacro{\ekdpb}\DescribeMacro{\ekdpb*} |
5331 | % \cs{ekdpb}\oarg{page no}\marg{line no} | 5331 | % \cs{ekdpb}\oarg{page no}\marg{line no} |
5332 | % \cs{ekdpb*}|{}| \cs{ekdpb*}|\| | ||
5332 | % \newfeature[v1.2]\\ | 5333 | % \newfeature[v1.2]\\ |
5333 | % One way to avoid this inconvenience is to use \cs{ekdpb} instead of | 5334 | % One way to avoid this inconvenience is to use \cs{ekdpb} instead of |
5334 | % the standard \cs{pagebreak} command provided by \LaTeX\ to insert | 5335 | % the standard \cs{pagebreak} command provided by \LaTeX\ to insert |
@@ -9801,19 +9802,22 @@ function ekdosis.getsiglum(str, opt) | |||
9801 | ctrl = str | 9802 | ctrl = str |
9802 | if opt == "tei" then | 9803 | if opt == "tei" then |
9803 | for i = 1,#shorthands do | 9804 | for i = 1,#shorthands do |
9804 | str = string.gsub(str, shorthands[i].a, shorthands[i].c) | 9805 | local tempa = string.gsub(shorthands[i].a, "([%-%.%_])", "%%%1") |
9806 | str = string.gsub(str, tempa, shorthands[i].c) | ||
9805 | end | 9807 | end |
9806 | for i = 1,#idsRend do | 9808 | for i = 1,#idsRend do |
9807 | str = string.gsub(str, "(%f[%w%.%-%_])"..idsRend[i].xmlid.."(%,)", | 9809 | local tempb = string.gsub(idsRend[i].xmlid, "([%-%.%_])", "%%%1") |
9810 | str = string.gsub(str, "(%f[%w%-%.%_])"..tempb.."(%,)", | ||
9808 | "%1#"..idsRend[i].xmlid.."%2") | 9811 | "%1#"..idsRend[i].xmlid.."%2") |
9809 | ctrl = string.gsub(ctrl, idsRend[i].xmlid.."%,", "") | 9812 | ctrl = string.gsub(ctrl, tempb.."%,", "") |
9810 | end | 9813 | end |
9811 | str = string.gsub(str, "%,(%s-)([%#])", " %2") | 9814 | str = string.gsub(str, "%,(%s-)([%#])", " %2") |
9812 | str = string.gsub(str, "%,$", "") | 9815 | str = string.gsub(str, "%,$", "") |
9813 | else | 9816 | else |
9814 | for i = 1,#idsRend do | 9817 | for i = 1,#idsRend do |
9815 | str = string.gsub(str, idsRend[i].xmlid.."%,", idsRend[i].abbr) | 9818 | local tempc = string.gsub(idsRend[i].xmlid, "([%-%.%_])", "%%%1") |
9816 | ctrl = string.gsub(ctrl, idsRend[i].xmlid.."%,", "") | 9819 | str = string.gsub(str, tempc.."%,", idsRend[i].abbr) |
9820 | ctrl = string.gsub(ctrl, tempc.."%,", "") | ||
9817 | end | 9821 | end |
9818 | end | 9822 | end |
9819 | -- if string.find(ctrl, "[A-Za-z0-9]") | 9823 | -- if string.find(ctrl, "[A-Za-z0-9]") |