Transform a TEI-encoded critical edition into a print-ready file.
Project description
#About
tei_transformer is a Python script for transforming a TEI-encoded critical edition into a pdf file. There are plenty of XSLT stylesheets to do something like this already, but using Python instead gives a secret advantage: we don’t really lose out on anything, but it’s unbelievably easy to customise things.
So what we have here is conceptually as much a framework for your own changes as something immediately usable (although it is.)
# Installation
pip3 install tei_transformer
# Simple usage
from tei_transformer import transform
xmlpath = ‘example.xml’ transformer = transform.TransformToPDF() transformer.transform()
# Complete toolchain
tei_transformer –transform example.xml
# Interested?
[Read the docs](http://tei-transformer.readthedocs.org/en/latest/index.html) for more.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.