A Python package for bi-directional translation and substitution, particularly useful for working with Voynich manuscript transcriptions.
Overview
PyVoynich is a Python implementation of the bitrans.c tool, which performs bi-directional translation/substitution based on a set of rules. The package is designed to be easy to use and integrate into Python applications. All the original C code and .bit files were written by René Zandbergen. For access to the original data and codebase, please visit René Zandbergen's site.
Key features:
- Bi-directional translation (forward and reverse)
- Support for complex rule sets with multiple characters
- Loading rules from files
- Saving rules to files
- Processing text files
Installation
# Clone the repository
git clone https://github.com/wjbmattingly/pyvoynich.git
cd pyvoynich
# Install the package
pip install -e .
Usage
Basic Usage
from pyvoynich.bitrans import Bitrans
from pyvoynich.data import STA_Eva_def, STA_Eva_Bint, Eva_Cuva, Curr_Eva_def
input_text = "tchor. ckhoiin. daiin. cphchar-"
bitrans1 = Bitrans(STA_Eva_def, direction=2)
output1 = bitrans1.translate(input_text)
print(f"Output: {output1}")
input_text_sta = "Q2K1A1C1.U1A3G1.B1A3G1.T1K1A3C1"
bitrans2 = Bitrans(STA_Eva_def, direction=1)
output2 = bitrans2.translate(input_text_sta)
print(f"Output: {output2}")
Available Rule Sets
The package includes several predefined rule sets:
STA_Eva_def: Standard EVA transliterationSTA_Eva_Bint: EVA to Beinecke transliterationEva_Cuva: EVA to Currier transliterationSTA_FSG_def: FSG transliterationSTA_Curr_def: Currier transliteration
Acknowledgements
This package is a Python implementation of the bitrans.c tool, originally developed for transliteration of the Voynich manuscript.
Metadata
Release files for pyvoynich 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyvoynich-0.1.0.tar.gz | 11.2 kB | Without provenance | Details for pyvoynich-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyvoynich-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyvoynich-0.1.0-py3-none-any.whl |
Total release size: 21.8 kB
Release files / pyvoynich-0.1.0.tar.gz
| Download URL | pyvoynich-0.1.0.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afaefe92458b8d42a7859dfa931318479aa6389eea3f0ffb45a5776495c2d0da
|
|
BLAKE2b-256 checksum How to use checksums |
0135b6a3d2808fd7b1e91d13a8fd2daa0bb628f024aee69737118ab5ec2392f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / pyvoynich-0.1.0-py3-none-any.whl
| Download URL | pyvoynich-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e5da4b4fe7000607c969842f503d9475b7e41220599623a1b218aa01abbbec9
|
|
BLAKE2b-256 checksum How to use checksums |
c30f0d73cebc02fe02ad3d25124d59b9cad09d5fc8662639b729681e25df00e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Security for pyvoynich 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.