Skip to main content

transliteratemodule

Python module written in C++ to convert transliterated representation of ancient languages to unicode (TLG's beta code and LaTeX cjhebrew markup)

This library converts “transliterated” representations of non-English languages, like TLG's Beta Code, to unicode. Supported transliterations are:

o The Thesaurus Linguae Graecae’s Beta Code for Polytonic Greek, Hebrew and Coptic. o cjhebrew transliteration from the LaTeX package by that name

I don’t know much about Coptic, so the functions for that language remain untested. The Beta Code representation for Hebrew does not support vowel and diacritical marks by design, cjhebrew does.

I’m only using the cjhebrew implementation with some earnest. None of the other codecs see production use here.

Function definitions in Python would look like:

def betacode_greek_to_unicode(source, precombined=False, asterisk_syntax=False):
    """
    If `precombined` is True, output unicode codepoints that have 
        diacritical characters in them. 
    If `asterisk_syntax` is used, upper case Greek letters are marked by a “*”, 
        otherwise upper case Latin is mapped to upper case Greek.
    
    """"

def cjhebrew_to_unicode(source):
    pass
    
def betacode_hebrew_to_unicode(source):
    # Untested!
    pass
    
def betacode_coptic_to_unicode(source):
    # Untested!
    pass
    

If anyone finds this useful, please let me know your milage!

Diedrich Vorberg diedrich@tux4web.de

Metadata

Release files for transbeta 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for transbeta 0.2
File Size Uploaded
transbeta-0.2.tar.gz 32.2 kB Details

Release files / transbeta-0.2.tar.gz

Download URL transbeta-0.2.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eb1fcc692776d5e09c466e95f066cd5c3854479bd01630778a31f06552d4cbbf
BLAKE2b-256 checksum
How to use checksums
9ef38d2d4202b140073d7108d3bf45a6f9a051df5f35b325a62733c1d75cf09d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

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