Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
/ TEI-to-JSON Public archive

Convert full document TEI transcriptions to single-verse JSON files that are compatible with the ITSEE Collation Editor

Notifications You must be signed in to change notification settings

d-flood/TEI-to-JSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project has been entirely moved to be incorporated in Criticus. Consider this repo depricated.

TEI to JSON

Convert TEI XML transcriptions to the format required by the ITSEE Collation Editor.

  • This is not designed to convert every valid TEI encoding, nor will it yet properly convert any deeply tested encodings (e.g. an unclear abbreviated number). When the text of an element is more deeply nested than I have have anticipated so far, it is usually skipped.
  • One JSON file per verse is created.
  • An appropriate metadata.json file is also created.
  • This is a new attempt from scratch; pre-release

Requirements

Usage

  • To convert the example transcription and write the output files to the working directory, run python tei_to_json.py example.xml
  • use the -o flag for designating the output directory. Filenames are assigned to the verse as it is encoded in the TEI file.

Near Future

  • Finish writing tests.
  • Anticipate and support more complex arrangements of encodings.
  • Incorporate this utility and MarkdownTEI into a standalone distributable GUI.

About

Convert full document TEI transcriptions to single-verse JSON files that are compatible with the ITSEE Collation Editor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages