Documentation
This program converts a TEI-XML file to an intermediate XML file (extended Docbook format) so that it can be integrated into the current EOA Django workflow.
Steps performed in this script
Rendering of bibliography
The referenced bibtex file converted to a JSON version and rendered as an HTML document (through pandoc-citeproc
, using a CSL stylesheet).
Transformation of text body, assignment of IDs
Here, the TEI tags are converted to their counterparts which is mostly a 1:1 translation. Also, IDs are assigned to the relevant elements. Information about the document structure is added to tmp_files/dict.pickle
.
The resulting file is tmp_files/IntermediateXMLFile.xml
and can be picked up by the next scripts in the workflow, such as tralics2django.py
and tralics2epub.py
.