diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-05-12 11:59:12 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-05-12 11:59:12 +0200 |
commit | 58fdd08bfa8baada5b565e1afd974e926888b06a (patch) | |
tree | 8ed094daaccb906d83d42eab2251363d9b2f6ef1 /ekdosis.dtx | |
parent | 6ef04a783a099997d4f46d8e26b49bfc2f8292da (diff) | |
download | ekdosis-58fdd08bfa8baada5b565e1afd974e926888b06a.tar.gz |
each hand should go into one single <handDesc> element with an additional attribute to record the total number of hands
Diffstat (limited to 'ekdosis.dtx')
-rw-r--r-- | ekdosis.dtx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index dc5d439..1d46f1d 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -793,7 +793,7 @@ function ekdosis.newhand(id, witid, siglum, description) | |||
793 | else | 793 | else |
794 | end | 794 | end |
795 | table.insert(listWit[indexwit].handDesc, | 795 | table.insert(listWit[indexwit].handDesc, |
796 | {xmlid = id, abbr = siglum, handNote = description}) | 796 | {xmlid = id, abbr = siglum, detailsDesc = description}) |
797 | end | 797 | end |
798 | return true | 798 | return true |
799 | end | 799 | end |
@@ -872,9 +872,9 @@ end | |||
872 | -- begin totei functions | 872 | -- begin totei functions |
873 | 873 | ||
874 | local cmdtotags = { | 874 | local cmdtotags = { |
875 | {a="footnote", b="note", c=" place=\"bottom\""}, | ||
876 | {a="textsuperscript", b="hi", c=" rend=\"sup\""}, | 875 | {a="textsuperscript", b="hi", c=" rend=\"sup\""}, |
877 | {a="textsubscript", b="hi", c=" rend=\"sub\""}, | 876 | {a="textsubscript", b="hi", c=" rend=\"sub\""}, |
877 | {a="footnote", b="note", c=" place=\"bottom\""}, | ||
878 | {a="textbf", b="hi", c=" rend=\"bold\""}, | 878 | {a="textbf", b="hi", c=" rend=\"bold\""}, |
879 | {a="textit", b="hi", c=" rend=\"italic\""}, | 879 | {a="textit", b="hi", c=" rend=\"italic\""}, |
880 | {a="textsc", b="hi", c=" rend=\"smallcaps\""}, | 880 | {a="textsc", b="hi", c=" rend=\"smallcaps\""}, |
@@ -1118,24 +1118,24 @@ function ekdosis.openteistream() | |||
1118 | end | 1118 | end |
1119 | if listWit[i].handDesc ~= nil then | 1119 | if listWit[i].handDesc ~= nil then |
1120 | f:write("<physDesc>", "\n") | 1120 | f:write("<physDesc>", "\n") |
1121 | f:write("<handDesc hands=\"", #listWit[i].handDesc, "\">", "\n") | ||
1121 | local j = 1 | 1122 | local j = 1 |
1122 | while listWit[i].handDesc[j] | 1123 | while listWit[i].handDesc[j] |
1123 | do | 1124 | do |
1124 | f:write("<handDesc xml:id=\"", listWit[i].handDesc[j].xmlid, "\">", "\n") | ||
1125 | -- f:write('<p><abbr type="siglum">', textotei(listWit[i].handDesc[j].abbr), "</abbr></p>", "\n") | 1125 | -- f:write('<p><abbr type="siglum">', textotei(listWit[i].handDesc[j].abbr), "</abbr></p>", "\n") |
1126 | if listWit[i].handDesc[j].handNote == "" | 1126 | -- if listWit[i].handDesc[j].handNote == "" |
1127 | then | 1127 | -- then |
1128 | f:write('<handNote><abbr type="siglum">', textotei(listWit[i].handDesc[j].abbr), "</abbr></handNote>", "\n") | 1128 | -- f:write('<handNote><abbr type="siglum">', textotei(listWit[i].handDesc[j].abbr), "</abbr></handNote>", "\n") |
1129 | else | 1129 | -- else |
1130 | f:write("<handNote>", "\n") | 1130 | f:write("<handNote xml:id=\"", listWit[i].handDesc[j].xmlid, "\">", "\n") |
1131 | f:write('<abbr type="siglum">', textotei(listWit[i].handDesc[j].abbr), "</abbr>", "\n") | 1131 | f:write('<abbr type="siglum">', textotei(listWit[i].handDesc[j].abbr), "</abbr>", "\n") |
1132 | f:write("<p>", textotei(listWit[i].handDesc[j].handNote), "</p>", "\n") | 1132 | f:write("<p>", textotei(listWit[i].handDesc[j].detailsDesc), "</p>", "\n") |
1133 | f:write("</handNote>", "\n") | 1133 | f:write("</handNote>", "\n") |
1134 | -- f:write("<handNote>\n<p>", textotei(listWit[i].handDesc[j].handNote), "</p>\n</handNote>", "\n") | 1134 | -- f:write("<handNote>\n<p>", textotei(listWit[i].handDesc[j].handNote), "</p>\n</handNote>", "\n") |
1135 | end | 1135 | -- end |
1136 | j = j + 1 | 1136 | j = j + 1 |
1137 | f:write("</handDesc>", "\n") | ||
1138 | end | 1137 | end |
1138 | f:write("</handDesc>", "\n") | ||
1139 | f:write("</physDesc>", "\n") | 1139 | f:write("</physDesc>", "\n") |
1140 | else end | 1140 | else end |
1141 | if listWit[i].history ~= nil then | 1141 | if listWit[i].history ~= nil then |