Skip to content
The conversion workflow scripts for creating epub and Django XML input files
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
bibformat fix non-ascii problems with bibliography representing them as xml ent… Apr 24, 2019
config executables must be in $PATH, fixed, changed dir stru… Mar 28, 2019
data Scientific board Jul 19, 2019
doc Updated script inventory Jun 12, 2019
tei2html_utils in chapter view: fix links to sections in the "Overview" part Mar 25, 2019
utils Translation helper function Jun 12, 2019
.gitignore Merge TEI2EOADjango Mar 8, 2018 further fixing and updating docu Mar 28, 2019
LICENSE Merge TEI2EOADjango Mar 8, 2018 further fixing and updating docu Mar 28, 2019 Lint Oct 18, 2018 New functionality if no citekeys are available Oct 17, 2018 Handle bibliography entries without keywords May 15, 2019 Copied file needs suffix May 14, 2019 Using toc file instead of aux Mar 29, 2019 Fix paths Jul 18, 2019 New script Jul 18, 2019 Made elements and chapters configurable Jul 24, 2019 Hyperimage figure handling, mostly collages Jul 31, 2019 Remove only if present Jul 19, 2019 IntermediateXML file is stored in top level of imxml directory May 14, 2019 Subtitles can be wrapped, as well Apr 29, 2019 New tool added: parsezotero Jun 12, 2019
requirements.txt depend on later version of python "lxml" library Apr 10, 2019
tei2eoatex.xsl Linebreak into if Jun 19, 2019 wrapper script for tei->html. flexible output redir when running exec… Apr 8, 2019
tei2html.xsl Remove dummy entry Jun 12, 2019 Hyperimage figure handling Jul 31, 2019


This is a set of scripts which forms the central part of the conversion workflow in the Edition Open Access.

We currently accept and support manuscripts in two different formats: LaTeX and DocX (as used in Microsoft Word).

The EOA workflow

The LaTeX workflow

The LaTeX workflow is based on a reduced set of LaTeX commands which are defined in a preambel and help keeping the book production workflow consistent. A sample project is found at

The PDF version is created directly with xelatex.

For the creation of the other format, tralics is used to convert the TeX source to XML. The original DocBook output is enriched by various EOA-specific elements.

This intermediate XML file is subsequently used by three additional programs which turn it into TEI-XML, EPUB and Django-XML, respectively. The Django-XML format is ingested into the database of the EOA site where it will show up as an online publication.

The EPUB files can be put together to form an ebook. The script data/misc/ performs the required steps.

The conversion to TEI is still work in progress.

The DocX workflow

This workflow is based on Microsoft Word documents which are created following the Guidelines of a template found at Currently, the webservice at is used to convert it into TEI P5.

Similar to the LaTeX workflow we require the authors to hand in their bibliographic references in a database format, such as BibTeX. The Word template explains in detail how citations should be entered.

The script fix_tei corrects some artifacts of the oxgarage conversion and expands the shorthand codes for references and figures to XML tags.

After that, a PDF document can be obtained by using an XSL script to create a LaTeX file, or the TEI file can be converted into the customized DocBook format from above workflow so that the existing tools can be used.

See doc/ for a documentation of the XSL workflow.

Examplary workflow

To install the whole toolchain, clone at least this repository as well as the 'advanced' branch of EOA sample project. Follow the installation instructions in

In eoa_sample_project, run xelatex, biber (the version included in your TeX distribution) and xelatex two more times. This will give you the PDF version of the document.

Next, comment line 9 in EOASample.tex (the EOA preambel) and uncomment line 10 (the XML preambel) and run -f EOASample

If everything went well, you can also try and run

These scripts don't take any arguments and will produce output in the CONVERT directory.

External dependencies

See for details.

You can’t perform that action at this time.