Skip to main content
Hexapla: read between the columns

PyPI Tests Docs Python versions Licence: Apache 2.0

Hexapla builds static websites for reading and exploring word-aligned manuscript texts.

It takes a project’s TEI transcriptions, CoNLL-U parses and word-alignment links and builds a site with:

  • verse-by-verse reading, with dependency trees, an interlinear and an alignment matrix for each verse;

  • a bilingual lexicon of every lemma and its translation equivalents;

  • translation insights: how grammar carries over between the languages, and what each text leaves out;

  • a review queue of the least confident links and parses;

  • a page for each manuscript, described from its TEI header.

The name comes from Origen’s Hexapla, which set versions of the Old Testament side by side in columns.

Documentation: https://rbturnbull.github.io/hexapla/

Example

The Bilingual Navigator

The Bilingual Navigator is a Hexapla site of bilingual New Testament manuscripts from the BICROSS project: Greek, Latin, Coptic, Arabic and Gothic. Its project, with the config, TEI transcriptions, parses and alignments it is built from, is at https://github.com/rbturnbull/bilingual-navigator.

Installation

Hexapla needs Python 3.11 or later. Install it from PyPI:

pip install hexapla

or the latest version from GitHub:

pip install git+https://github.com/rbturnbull/hexapla

With uv, install it as a command-line tool, or run it without installing:

uv tool install hexapla
uvx hexapla build project-config.yaml --output site

Check that it works with hexapla --version.

Usage

A project is a folder, usually its own repository, with a config file. Paths in the config are relative to the config file:

theme:
  name: BICROSS Navigator
  logo: theme/logo.svg            # optional: the Hexapla logo by default
  variables: theme/variables.scss # optional: Bootstrap variables (.scss) or extra CSS (.css)
  about: theme/about.md           # optional: an about page (Markdown)
  assets: theme/assets            # optional: images and files for the about page
  licence: CC-BY-NC-SA-4.0        # SPDX id: the site, parses and links

manuscripts:
  bezae-greek:
    tei: bezae/Bezae-Greek.xml
    parsing: bezae/Bezae-Greek-John20.conllu
  bezae-latin:
    tei: bezae/Bezae-Latin.xml
    parsing: bezae/Bezae-Latin-John20.conllu
    parsing_licence: CC-BY-4.0    # optional: overrides the site licence for this parse

alignments:
  bezae:
    name: Codex Bezae             # optional: from the TEI's <msName> by default
    manuscripts: [bezae-greek, bezae-latin]   # the links file's source, then target
    links: bezae/Bezae-John20-aligned.jsonl
    licence: CC-BY-4.0            # optional: overrides the site licence for these links

Everything about a manuscript comes from the TEI header of its transcription (TEI P5, chapter 10): the language (<text xml:lang>, required), msName, the shelfmark, altIdentifier numbers (GA, VL, TM for Trismegistos), origDate, the msContents/summary, the transcribers and the licence. A TEI file’s own licence overrides the site’s for that transcription.

Check the project, then build the site:

hexapla validate project-config.yaml
hexapla build project-config.yaml --output site
python -m http.server --directory site 8000     # then open http://localhost:8000

GitHub Pages

Build and deploy a project’s site on every push with the Hexapla GitHub Action:

name: pages
on: { push: { branches: [main] }, workflow_dispatch: {} }
permissions: { contents: read, pages: write, id-token: write }
concurrency: { group: pages, cancel-in-progress: false }
jobs:
  deploy:
    runs-on: ubuntu-latest
    environment: { name: github-pages, url: "${{ steps.site.outputs.page_url }}" }
    steps:
      - uses: actions/checkout@v4
      - id: site
        uses: rbturnbull/hexapla@main
        with:
          config: project-config.yaml

Set the repository’s Pages source to “GitHub Actions”. The action installs Hexapla from its own checkout, builds the site and deploys it. With deploy: "false" it only builds the site, for example to check a pull request.

Development

Hexapla uses uv:

git clone https://github.com/rbturnbull/hexapla.git
cd hexapla
uv sync --all-groups                                  # the package, and the dev and docs dependencies
uv run pytest                                         # 100% coverage is required
uv run sphinx-build -W docs docs/_build/html          # the documentation
uv run hexapla build tests/data/project/project.yaml --output site    # the test project's site

Acknowledgements

Hexapla was developed as part of the BICROSS project (‘The Significance of Bilingual Manuscripts for Detecting Cross-Language Interaction in the New Testament Tradition’), which has received funding from the European Research Council (ERC) under the European Union’s Horizon Europe Research and Innovation Programme (Grant Agreement No. 101043730 – BICROSS – ERC-2021-COG). Funded by the European Union. Views and opinions expressed are however those of the author only and do not necessarily reflect those of the European Union or the European Education and Culture Executive Agency (EACEA). Neither the European Union nor EACEA can be held responsible for them.

European Research Council

Author

Robert Turnbull (Melbourne Data Analytics Platform, University of Melbourne)

Metadata

Release files for hexapla 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hexapla 0.1.0
File Size Uploaded Provenance Actions
hexapla-0.1.0.tar.gz 401.0 kB Without provenance Details for hexapla-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hexapla 0.1.0
File Interpreter ABI Platform Actions
hexapla-0.1.0-py3-none-any.whl Python 3 none any Details for hexapla-0.1.0-py3-none-any.whl

Total release size: 722.0 kB

Release files / hexapla-0.1.0.tar.gz

Download URL hexapla-0.1.0.tar.gz
Size 401.0 kB
Tags Source
SHA-256 checksum
How to use checksums
68b3cd463a9a2d8ce684afd2ccffe8a8ed9744e88b4ae2cf73254def8a26a1ad
BLAKE2b-256 checksum
How to use checksums
05f2cf194f5e6c7a154b214937d7c8ce403495ef074fbbc8ef7861f3276ba5b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / hexapla-0.1.0-py3-none-any.whl

Download URL hexapla-0.1.0-py3-none-any.whl
Size 321.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35157af5c055eed0ab90d5346aa0998dad56d1a7f9dba99caa25807b97a620d7
BLAKE2b-256 checksum
How to use checksums
db8a321a7da373ef1bb04ea1f34bc6f068b10aecafb2015491fcee9ff77e2930
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for hexapla 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page