As promised, I've now updated my little tutorial on pure ODD. A PDF
version is attached, and you can find the source in the repo at
https://github.com/TEIC/TEI/blob/dev/Documents/pureODD/pureODDtutorial.xml
: I am wondering if it needs a section on "how to convert your existing
odd", which would however be much easier to write with input from some
early adopters... (that's you chaps)
If you sniff around in that bit of the repo, you'll also find a more
ambitious document by Sebastian called "The TEI Customisation
Handbook" (
https://github.com/TEIC/TEI/blob/dev/Documents/oddmanual/oddmanual.xml)
This was written some time ago and doesn't therefore discuss pure odd. I
haven't yet had the heart to bring it up to date.
See <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/2002/changes>
Changes:
[James Cummings] adding noreledmac option to eledmac since eledmac is deprecated. This
------------------------------------------
[...truncated 338 lines...]
Convert test-pure2.odd to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/test-pure2.rnc> (tei to rnc) using profile default
[echo] Do ODD expand processing (schema )
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 9 seconds
../bin/teitohtml --odd test-pure2.odd test-pure2.odd.html
Convert test-pure2.odd to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/test-pure2.odd.html> (tei to html) using profile default
[echo] Do ODD expand processing and conversion to TEI Lite (schema )
Warning: XML resolver not found; external catalogs will be ignored
Warning: XML resolver not found; external catalogs will be ignored
[echo] XSLT generate HTML files (language en)
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 14 seconds
xmllint --noout --dtdvalid test-pure2.dtd test-pure2.xml
xmllint --encode utf-8 --format test-pure2.odd.html | perl cleanup.pl> test.temp ; mv test.temp test-pure2.odd.html
perl -p -i -e 's/generated from ODD source .*//' test-pure2.dtd
perl -i -pe 'BEGIN{undef $/;} s/<!--\nDTD[^>]*-->\n//smg' test-pure2.dtd
perl -p -i -e 's/generated from ODD source .*//' test-pure2.rnc
perl -i -pe 'BEGIN{undef $/;} s/# ?Schema[^#]+#[^#]+#[^#]+#[^#]+#\n//smg' test-pure2.rnc
if [ 0 -ne 1 ]; \
then diff test-pure2.rnc expected-results/test-pure2.rnc; fi
if [ 0 -ne 1 ]; \
then diff test-pure2.dtd expected-results/test-pure2.dtd; fi
if [ 0 -ne 1 ]; \
then diff test-pure2.odd.html expected-results/test-pure2.odd.html; fi
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar test.odd ../odds/odd2odd.xsl > test.odd2odd
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar test.odd2odd ../odds/odd2dtd.xsl > test.odd2dtd
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar test.odd2odd ../odds/odd2html.xsl > test.odd2html
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar test.odd2odd ../odds/odd2json.xsl > test.odd2json
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar test.odd2odd ../odds/odd2lite.xsl > test.odd2lite
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar test.odd2odd ../odds/odd2relax.xsl > test.odd2relax
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar test.odd2odd ../odds/odd2xslstripspace.xsl > test.odd2xslstripspace
rm test.odd2odd
rm test.odd2dtd
rm test.odd2html
rm test.odd2json
rm test.odd2lite
rm test.odd2relax
rm test.odd2xslstripspace
for i in teitobibtex teitodocbook teitodocx teitoepub teitoepub3 teitofo teitohtml teitohtml5 teitojson teitolatex teitoodt teitopdf teitordf teitotxt; do ../bin/$i maria.xml $i.result && rm $i.result; done
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitobibtex.result> (tei to bibtex) using profile default
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 2 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitodocbook.result> (tei to docbook) using profile default
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 3 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitodocx.result> (tei to docx) using profile default
Warning: XML resolver not found; external catalogs will be ignored
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 11 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitoepub.result> (tei to epub) using profile default
BUILD SUCCESSFUL
Total time: 8 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitoepub3.result> (tei to epub3) using profile default
BUILD SUCCESSFUL
Total time: 8 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitofo.result> (tei to fo) using profile default
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 6 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitohtml.result> (tei to html) using profile default
[echo] XSLT generate HTML files (language en)
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 40 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitohtml5.result> (tei to html5) using profile default
[echo] XSLT generate HTML files (language en)
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 1 minute 5 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitojson.result> (tei to json) using profile default
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 37 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitolatex.result> (tei to latex) using profile default
Warning: XML resolver not found; external catalogs will be ignored
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 1 minute 49 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitoodt.result> (tei to odt) using profile default
Warning: XML resolver not found; external catalogs will be ignored
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 1 minute 34 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitopdf.result> (tei to pdf) using profile default
Warning: XML resolver not found; external catalogs will be ignored
Warning: XML resolver not found; external catalogs will be ignored
[echo] Running XeLaTeX on <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitopdf.result.tex> in <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test>
[echo] Rename <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitopdf.result.pdf> to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitopdf.result,> and delete <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitopdf.result.tex>
BUILD SUCCESSFUL
Total time: 2 minutes 25 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitordf.result> (tei to rdf) using profile default
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 42 seconds
Convert maria.xml to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitotxt.result> (tei to txt) using profile default
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 49 seconds
../bin/teitoodd test16.odd temp.odd
Convert test16.odd to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/temp.odd> (tei to odd) using profile default
[echo] Do ODD expand processing (schema )
BUILD SUCCESSFUL
Total time: 1 minute 22 seconds
for i in teitornc teitorelaxng teitoxsd teitodtd ; do ../bin/$i temp.odd $i.result && rm $i.result; done
Convert temp.odd to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitornc.result> (tei to rnc) using profile default
[echo] Do ODD expand processing (schema )
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 1 minute 56 seconds
Convert temp.odd to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitorelaxng.result> (tei to relaxng) using profile default
[echo] Do ODD expand processing (schema )
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 1 minute 24 seconds
Convert temp.odd to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitoxsd.result> (tei to xsd) using profile default
[echo] Do ODD expand processing (schema )
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 1 minute 28 seconds
Convert temp.odd to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/teitodtd.result> (tei to dtd) using profile default
[echo] Do ODD expand processing (schema )
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 1 minute 2 seconds
rm temp.odd
BUILD: testing namespaces
../bin/teitornc test33.odd test33.rnc
Convert test33.odd to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/test33.rnc> (tei to rnc) using profile default
[echo] Do ODD expand processing (schema )
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 1 minute 11 seconds
perl -p -i -e 's/generated from ODD source .*//' test33.rnc
perl -i -pe 'BEGIN{undef $/;} s/# ?Schema[^#]+#[^#]+#[^#]+#[^#]+#\n//smg' test33.rnc
if [ 0 -ne 1 ]; \
then diff test33.rnc expected-results/test33.rnc; fi
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar test33.odd ../odds/odd2json.xsl > test33.json
perl -p -i -e 's/"date":"\d+-\d+\-\d+T\d+:\d+:\d+Z",//' test33.json
if [ 0 -ne 1 ]; \
then diff test33.json expected-results/test33.json; fi
../bin/teitornc test34.odd test34.rnc
Convert test34.odd to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/test34.rnc> (tei to rnc) using profile default
[echo] Do ODD expand processing (schema )
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 57 seconds
perl -p -i -e 's/generated from ODD source .*//' test34.rnc
perl -i -pe 'BEGIN{undef $/;} s/# ?Schema[^#]+#[^#]+#[^#]+#[^#]+#\n//smg' test34.rnc
if [ 0 -ne 1 ]; \
then diff test34.rnc expected-results/test34.rnc; fi
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar test34.odd ../odds/odd2json.xsl > test34.json
perl -p -i -e 's/"date":"\d+-\d+\-\d+T\d+:\d+:\d+Z",//' test34.json
if [ 0 -ne 1 ]; \
then diff test34.json expected-results/test34.json; fi
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar test34.odd ../odds/odd2odd.xsl > test34.combined.odd
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar test34.combined.odd ../odds/odd2json.xsl > test34.combined.json
perl -p -i -e 's/"date":"\d+-\d+\-\d+T\d+:\d+:\d+Z",//' test34.combined.json
if [ 0 -ne 1 ]; \
then diff test34.combined.json expected-results/test34.combined.json; fi
../bin/teitohtml --odd --summaryDoc test34.odd test34.odd.html
Convert test34.odd to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/test34.odd.html> (tei to html) using profile default
[echo] Do ODD expand processing and conversion to TEI Lite (schema )
Warning: XML resolver not found; external catalogs will be ignored
Warning: XML resolver not found; external catalogs will be ignored
[echo] XSLT generate HTML files (language en)
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 1 minute 15 seconds
xmllint --encode utf-8 --format test34.odd.html | perl cleanup.pl> test.temp ; mv test.temp test34.odd.html
if [ 0 -ne 1 ]; \
then diff test34.odd.html expected-results/test34.odd.html; fi
../bin/teitornc test35.odd test35.rnc
Convert test35.odd to <http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test/test35.rnc> (tei to rnc) using profile default
[echo] Do ODD expand processing (schema )
Warning: XML resolver not found; external catalogs will be ignored
BUILD SUCCESSFUL
Total time: 50 seconds
perl -p -i -e 's/generated from ODD source .*//' test35.rnc
perl -i -pe 'BEGIN{undef $/;} s/# ?Schema[^#]+#[^#]+#[^#]+#[^#]+#\n//smg' test35.rnc
if [ 0 -ne 1 ]; \
then diff test35.rnc expected-results/test35.rnc; fi
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar test38.htm ../html/html2tei.xsl useFixedDate=true | xmllint --format - > test38.xml
UNTRANSLATED TAG noscript
UNTRANSLATED TAG header
UNTRANSLATED TAG hgroup
UNTRANSLATED TAG nav
UNTRANSLATED TAG header
UNTRANSLATED TAG header
UNTRANSLATED TAG form
UNTRANSLATED TAG fieldset
UNTRANSLATED TAG legend
UNTRANSLATED TAG label
UNTRANSLATED TAG input
UNTRANSLATED TAG button
UNTRANSLATED TAG select
UNTRANSLATED TAG optgroup
UNTRANSLATED TAG option
UNTRANSLATED TAG option
UNTRANSLATED TAG option
UNTRANSLATED TAG textarea
UNTRANSLATED TAG dfn
UNTRANSLATED TAG mark
UNTRANSLATED TAG meter
UNTRANSLATED TAG time
UNTRANSLATED TAG details
UNTRANSLATED TAG nav
if [ 0 -ne 1 ]; \
then diff test38.xml expected-results/test38.xml; fi
BUILD: testing latex
java -Djava.awt.headless=true -jar ../lib/saxon9he.jar -o:test.tex test.xml ../latex/latex.xsl useFixedDate=true
if [ 0 -ne 1 ]; \
then diff test.tex expected-results/test.tex; fi
136d135
<
make[1]: *** [test-latex] Error 1
make[1]: Leaving directory `<http://teijenkins.hcmc.uvic.ca/job/Stylesheets/ws/Test'>
make: *** [test] Error 2
Build step 'Execute shell' marked build as failure
Archiving artifacts
If I don't hear anything soon confirming/challenging
https://github.com/TEIC/TEI/issues/564
then I'll be adding an @odd attribute with a data.pointer datatype.
-James
--
Dr James Cummings, James.Cummings(a)it.ox.ac.uk
Academic IT Services, University of Oxford
Hi all - i just got a green light for the council meeting at Brown.
Details to be arranged. I'll send you all travel information later today so
you can work on tickets. However, if you can hold off a bit, it would be
great if we could plan some activities around this event.
Who has a talk in them, wants to spend an extra day on either end or
consult with people or?
thanks, --elli
[Elli Mylonas
Senior Digital Humanities Librarian
and
Center for Digital Scholarship
University Library
Brown University
library.brown.edu/cds]
Sent from my Honor Mobile
-------- Original Message --------
Subject: Re: Report abuse: linuxlovell
From: "Matt Hartley (GitHub Support)"
To: Lou Burnard
CC:
Hi Lou,
Thanks for the report! Our team is investigating.
Cheers,
Matt
I dunno who or what "linuxlovell" is but I've blocked it and sent a
complaint about its spamming to github this morning
-------- Forwarded Message --------
Subject: Re: [TEI] What's this all about (#569)
Date: Tue, 23 Feb 2016 22:39:40 -0800
From: linuxlovell <notifications(a)github.com>
Reply-To: TEIC/TEI
<reply+000a14f49db243fa1777183e3f1f56b2d3ce2c6cd17f3f7892cf0000000112e5122c92a169ce0687732a(a)reply.github.com>
To: TEIC/TEI <TEI(a)noreply.github.com>
thanks www.movied.org <http://www.movied.org>
—
Reply to this email directly or view it on GitHub
<https://github.com/TEIC/TEI/issues/569#issuecomment-188104455>.