Critical edition enhancements for CollateX with footnote apparatus and transliterations
Project description
collatex-critical
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
-
Java - Java Runtime Environment (JRE) version 8 or higher is needed to run Collatex jar file.
-
CollateX (1.7.1 or later) Download here. Example: collatex-tools-1.7.1.jar
-
Pandoc Install from https://pandoc.org/installing.html
-
Indic Transliteration
pip install indic-transliteration
Provides
indic_transliterationPython library andsanscriptCLI 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
-
Place witness texts in
input/projectName/devanagari. -
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…
- Less than 10 witnesses:
-
File order indicates descending precedence (first file = highest authority).
-
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.htmlare generated inoutput/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
- Majority Rule: Reading preferred by the majority appears in the main text; others appear in footnotes.
- 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
HTML
Contributing
Contributions are welcome:
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature - Commit your changes:
git commit -m "Add feature" - Push your branch:
git push origin feature/my-feature - Open a pull request
License
GNU GPL v3.0. See LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file collatex_critical-0.2.0.tar.gz.
File metadata
- Download URL: collatex_critical-0.2.0.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
069914c9df64a38ebad332c11955e2b780fdce51e3560ac14fdfca197af8d8d1
|
|
| MD5 |
28200909eb9c1a9da5825f4e85644dae
|
|
| BLAKE2b-256 |
44d4dde6ba4359f162a4f05c02dd8ea1de74c51f75ccdb8a7e51e77c9a85063e
|
File details
Details for the file collatex_critical-0.2.0-py3-none-any.whl.
File metadata
- Download URL: collatex_critical-0.2.0-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c51e1a981b477507905602f31b3c6e7e3b0c382adb401e14710e6ae347ab42fc
|
|
| MD5 |
86abfc5824ddae68c4bcf6cc65da3c29
|
|
| BLAKE2b-256 |
cee42e71524d46df0baa8eb39381031aa82a17e334e09b2219743b5b63d8b221
|