Permalink
Cannot retrieve contributors at this time
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?
EOASkripts/doc/tei2imxml.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
13 lines (8 sloc)
819 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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`. |