diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-04-21 12:55:23 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-04-21 12:55:23 +0200 |
commit | 10a48a2cfa89285e5f1648d1241fe1019d0d56a2 (patch) | |
tree | 82f584e7952bfc005a43b8702f9df2e98fa498f1 | |
parent | d743bceaac74eb0475655088ef8c88a47013158f (diff) | |
download | ekdosis-10a48a2cfa89285e5f1648d1241fe1019d0d56a2.tar.gz |
specify the variant encoding method. pass '--output-xml yes' to tidy
-rw-r--r-- | ekdosis.dtx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index 5cae271..8a6cbb7 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -912,6 +912,9 @@ function ekdosis.openteistream() | |||
912 | f:write('<?xml version="1.0" encoding="utf-8"?>', "\n") | 912 | f:write('<?xml version="1.0" encoding="utf-8"?>', "\n") |
913 | f:write("<TEI xmlns=\"http://www.tei-c.org/ns/1.0\">", "\n") | 913 | f:write("<TEI xmlns=\"http://www.tei-c.org/ns/1.0\">", "\n") |
914 | f:write("<teiHeader>", "\n") | 914 | f:write("<teiHeader>", "\n") |
915 | f:write("<encodingDesc>", "\n") | ||
916 | f:write('<variantEncoding method="parallel-segmentation" location="internal"/>', "\n") | ||
917 | f:write("</encodingDesc>", "\n") | ||
915 | f:write("<listWit>", "\n") | 918 | f:write("<listWit>", "\n") |
916 | for i = 1,#listWit do | 919 | for i = 1,#listWit do |
917 | f:write("<msDesc xml:id=\"", listWit[i].xmlid, "\">", "\n") | 920 | f:write("<msDesc xml:id=\"", listWit[i].xmlid, "\">", "\n") |
@@ -999,7 +1002,7 @@ function ekdosis.closeteistream(opt) | |||
999 | os.remove(teifilename..".xml") | 1002 | os.remove(teifilename..".xml") |
1000 | os.rename(teifilename.."_tmp.xml", teifilename..".xml") | 1003 | os.rename(teifilename.."_tmp.xml", teifilename..".xml") |
1001 | if opt == "tidy" then | 1004 | if opt == "tidy" then |
1002 | os.execute("tidy -qmi -xml "..teifilename..".xml") | 1005 | os.execute("tidy -qmi -xml --output-xml yes "..teifilename..".xml") |
1003 | else | 1006 | else |
1004 | end | 1007 | end |
1005 | return true | 1008 | return true |