A fully implemented Beta Code parser.
Project description
betacode-parser
Introduction
betacode-parser is a Python package that allows one to convert to and from Beta Code for Greek, Coptic, and Hebrew. It is implemented according to the standard of Thesaurus Linguae Graecae (TLG) as seen in this manual. In addition, the Hebrew conversion also supports the older CCAT (Center for Computer Analysis of Text, University of Pennsylvania) standard as seen on this webpage. This project is inspired by the PyPI package betacode, which only implemented conversion for Greek.
Installation
To install, run pip install betacode-parser. Import in projects like this:
from betacode_parser import *
Alternatively, you can import the following functions separately: beta_to_coptic, coptic_to_beta, beta_to_greek, greek_to_beta, beta_to_hebrew, and hebrew_to_beta.
Usage
# Greek
print(beta_to_greek("*A)RIS1TOTE/LHS")) # Ἀριστοτέλης
print(greek_to_beta("Ἀριστοτέλης")) # *A)RIS1TOTE/LHS2
# Coptic
print(beta_to_coptic("*PTOLEMAIOS")) # Ⲡⲧⲟⲗⲉⲙⲁⲓⲟⲥ
print(coptic_to_beta("Ⲡⲧⲟⲗⲉⲙⲁⲓⲟⲥ")) # *PTOLEMAIOS
# Hebrew
# Modern (TLG) Standard
print(beta_to_hebrew("ysrAl")) # ישראל
print(hebrew_to_beta("ישראל")) # ysrAl
# Old (CCAT) Standard
print(beta_to_hebrew("Y&R)L", True)) # ישׂראל
print(hebrew_to_beta("ישראל", True)) # Y#R)L
You can see how to transcribe to and from Beta Code manually in the TLG manual and CCAT webpage.
Development
Contributions are welcome.
Project details
Release history Release notifications | RSS feed
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 betacode_parser-1.0.1.tar.gz.
File metadata
- Download URL: betacode_parser-1.0.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f972ad5d19af7b23fd500bcf0516cd811bfd42cbbbe994f25f95e5ad8e1de9c
|
|
| MD5 |
baebe4492622f344f762b64968cf484b
|
|
| BLAKE2b-256 |
acffe82388ff44070c71f8588ba7cf6aef9d4d67558a424057258a94ecf187e8
|
Provenance
The following attestation bundles were made for betacode_parser-1.0.1.tar.gz:
Publisher:
python-publish.yml on vedrane/betacode-parser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
betacode_parser-1.0.1.tar.gz -
Subject digest:
1f972ad5d19af7b23fd500bcf0516cd811bfd42cbbbe994f25f95e5ad8e1de9c - Sigstore transparency entry: 194661737
- Sigstore integration time:
-
Permalink:
vedrane/betacode-parser@8c0317b57c629c5fb881ce7187f35541d0cdefe3 -
Branch / Tag:
refs/tags/release - Owner: https://github.com/vedrane
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@8c0317b57c629c5fb881ce7187f35541d0cdefe3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file betacode_parser-1.0.1-py3-none-any.whl.
File metadata
- Download URL: betacode_parser-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4c037425a68cb8b40e15c97f91152923c4b4aed8c0f2888068cc917279a4798
|
|
| MD5 |
ab0b416990e791374317a451e01b5d9c
|
|
| BLAKE2b-256 |
fb4101420fd0c3c6f8639d8815368ecc357181e022771efbd48c104458626473
|
Provenance
The following attestation bundles were made for betacode_parser-1.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on vedrane/betacode-parser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
betacode_parser-1.0.1-py3-none-any.whl -
Subject digest:
d4c037425a68cb8b40e15c97f91152923c4b4aed8c0f2888068cc917279a4798 - Sigstore transparency entry: 194661739
- Sigstore integration time:
-
Permalink:
vedrane/betacode-parser@8c0317b57c629c5fb881ce7187f35541d0cdefe3 -
Branch / Tag:
refs/tags/release - Owner: https://github.com/vedrane
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@8c0317b57c629c5fb881ce7187f35541d0cdefe3 -
Trigger Event:
release
-
Statement type: