Skip to main content

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

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transbeta-0.2.tar.gz (32.2 kB view details)

Uploaded Source

File details

Details for the file transbeta-0.2.tar.gz.

File metadata

  • Download URL: transbeta-0.2.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for transbeta-0.2.tar.gz
Algorithm Hash digest
SHA256 eb1fcc692776d5e09c466e95f066cd5c3854479bd01630778a31f06552d4cbbf
MD5 f15cc32e10885f78bcd5102ee2f11418
BLAKE2b-256 9ef38d2d4202b140073d7108d3bf45a6f9a051df5f35b325a62733c1d75cf09d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page