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

Latest commit

 

History

History
22 lines (17 loc) · 1.26 KB

README.md

File metadata and controls

22 lines (17 loc) · 1.26 KB

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.