Skip to main content

Convert Ogham inscriptions to latin text & vice versa.

Project description

Ogham

Convert Ogham inscriptions to latin text & vice versa.

Python port of the original Node.js library.

Install

pip install ogham

Usage

You can either transform ogham to text, or text to ogham.

Latin text to ogham:

from ogham import letters_to_ogham

# "Netacari, nephew of Cagi", from Castletimon, Brittas Bay, Co Wicklow 
result = letters_to_ogham('netacarinetaccagi')

print(result) # ᚛ᚅᚓᚈᚐᚉᚐᚏᚔᚅᚓᚈᚐᚉᚉᚐᚌᚔ᚜

Ogham to latin text:

from ogham import ogham_to_letters

# "Nettasagri, Briaci", from Bridell, Pembrokeshire
result = ogham_to_letters('᚛ᚅᚓᚈᚈᚐᚄᚐᚌᚏᚔ ᚋᚐᚊᚔ ᚋᚒᚉᚑᚓ ᚁᚏᚔᚐᚉᚔ᚜')

print(result) # nettasagri maqi mucoe briaci

About Ogham

Ogham (or ogam) is an Early Medieval alphabet used primarily to write the early Irish language, and later the Old Irish language. Used roughly from 4th to 10th centuries AD.

Project details


Download files

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

Source Distribution

ogham-1.0.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

ogham-1.0.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

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