Skip to content
Permalink
bab08ad53e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

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.