Skip to main content

collatex-critical

PyPI Python

collatex-critical helps scholars prepare critical editions from multiple textual witnesses, producing outputs suitable for publication.

Unlike python-collatex, which focuses on column-based difference visualization in XML, SVG, or HTML, collatex-critical produces Markdown, PDF, HTML, and LaTeX outputs where the majority reading appears in the main text, and variant readings are recorded in footnotes or endnotes.


Features

  • Multi-witness collation with clear footnote apparatus
  • Output in Markdown, PDF, HTML, and LaTeX
  • Supports multiple transliteration schemes: Devanagari, IAST, SLP1
  • Integrates seamlessly with CollateX
  • Designed specifically for critical editions and scholarly texts

Installation

From PyPI

pip install collatex-critical

From GitHub (development version)

pip install git+https://github.com/drdhaval2785/collatex-critical.git

Dependencies

  1. Java - Java Runtime Environment (JRE) version 8 or higher is needed to run Collatex jar file.

  2. CollateX (1.7.1 or later) Download here. Example: collatex-tools-1.7.1.jar

  3. Pandoc Install from https://pandoc.org/installing.html

  4. Indic Transliteration

    pip install indic-transliteration
    

    Provides indic_transliteration Python library and sanscript CLI tool.


Project Structure

input/projectName/devanagari
input/projectName/iast
input/projectName/slp1

output/projectName/devanagari
output/projectName/iast
output/projectName/slp1

Setting Up a Project

  1. Place witness texts in input/projectName/devanagari.

  2. Name witness files according to precedence:

    • Less than 10 witnesses: 1.txt, 2.txt, 3.txt …
    • 10 or more witnesses: 01.txt, 02.txt, 03.txt …
  3. File order indicates descending precedence (first file = highest authority).

  4. Make sure that collatex-tools/1.7.1/collatex-tools-1.7.1.jar is in the same folder as generate.sh file.


Running the Project

collatex-critical generate projectId

It generates output MD files for slp1, devanagari and iast transliteration.

  • projectName.md, projectName.pdf, projectName.tex, projectName.html are generated in output/projectName/devanagari/ and also similar files in iast and slp1 folders.

collatex-critical generate projectId -t telugu,tamil,slp1

comma separated transliteration schemes for specific transliterations. Supported ones are devanagari, telugu, tamil, kannada, bengali, gurmukhi, velthuis, wx, itrans, slp1, iast.


Collation Logic

  1. Majority Rule: Reading preferred by the majority appears in the main text; others appear in footnotes.
  2. Tie-Breaker: If no clear majority, the order of precedence determines the main reading (01.txt > 02.txt > …).

The choice of the most faithful witness is left to the editor’s discretion (e.g., oldest, most accurate, or scholarly judgment).


Example output

PDF

image

HTML

Screenshot_2025-09-27_12-12-57

Contributing

Contributions are welcome:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -m "Add feature"
  4. Push your branch: git push origin feature/my-feature
  5. Open a pull request

License

GNU GPL v3.0. See LICENSE for details.


Metadata

Release files for collatex-critical 0.2.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 collatex-critical 0.2.0
File Size Uploaded Provenance Actions
collatex_critical-0.2.0.tar.gz 23.5 kB Without provenance Details for collatex_critical-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for collatex-critical 0.2.0
File Interpreter ABI Platform Actions
collatex_critical-0.2.0-py3-none-any.whl Python 3 none any Details for collatex_critical-0.2.0-py3-none-any.whl

Total release size: 46.9 kB

Release files / collatex_critical-0.2.0.tar.gz

Download URL collatex_critical-0.2.0.tar.gz
Size 23.5 kB
Tags Source
SHA-256 checksum
How to use checksums
069914c9df64a38ebad332c11955e2b780fdce51e3560ac14fdfca197af8d8d1
BLAKE2b-256 checksum
How to use checksums
44d4dde6ba4359f162a4f05c02dd8ea1de74c51f75ccdb8a7e51e77c9a85063e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / collatex_critical-0.2.0-py3-none-any.whl

Download URL collatex_critical-0.2.0-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c51e1a981b477507905602f31b3c6e7e3b0c382adb401e14710e6ae347ab42fc
BLAKE2b-256 checksum
How to use checksums
cee42e71524d46df0baa8eb39381031aa82a17e334e09b2219743b5b63d8b221
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for collatex-critical 0.2.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.

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