Skip to main content

pyvoynich logo

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 transliteration
  • STA_Eva_Bint: EVA to Beinecke transliteration
  • Eva_Cuva: EVA to Currier transliteration
  • STA_FSG_def: FSG transliteration
  • STA_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)

Source distribution for pyvoynich 0.1.0
File Size Uploaded
pyvoynich-0.1.0.tar.gz 11.2 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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