View on GitHub

NEH Institute Working With Text In a Digital Age

Digital Edition Demonstration and Sample Code

Download this project as a .zip file Download this project as a tar.gz file

NEH Institute Working With Text In a Digital Age

Digital Edition Demonstration and Sample Code

Tufts University, July 2012


The goal of this demo/sample code is to provide a platform which institute participants can use to complete an exercise to create a miniature digital edition. We will use these editions as concrete examples for discussion of decisions and issues to consider when creating digital editions from TEI XML, annotations and other related resources.

Some specific items for consideration and discussion through this exercise :


We have selected two sample texts for the exercise, one Greek and one Latin. The Greek is a fragment of Hegesippus from the Greek Anthology and the Latin is a poem of Sidonius.

The data for the samples can be found in the src/data directory of the repository and contain the following for each text:




Markup Guidelines

We are using the TEI-Analytics subset of TEI P5. This schema is in the src/schemas directory.

The scripts which prepare the digital edition require the following specific applications of this standard:

Preparing the Digital Edition

  1. Download and extract the zip file to a local directory, preserving folders; or clone the project github repository using Git.
  2. Select one of the two sample texts to work with, either the Hegesippus or the Sidonius. Each has a transcription and a translation you will be working with.


(Note: the source data from which the templates were created can be found in the src/data directory.)


Align Translation

Annotate Syntax

Merge Standoff Markup with TEI to create Digital Editions

A set of pre-prepared transformation scenarios can be used to transform the TEI transcription, translation, alignment and syntax annotations. These will work on the pre-prepared demo XML files in the xml-demo directory, or ones you prepare and put in the xml directory as described above.



The following resources may be helpful in understanding the exercise and for working with digital editions:

Created for the NEH Institute for Advanced Technology in the Digital Humanities by Bridget Almas, The Perseus Project, Tufts University July 2012

This free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.