Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/ogham-py
Transform Ogham inscriptions to latin text & vice versa in Python.
https://github.com/stscoundrel/ogham-py
convert ogham old-irish python
Last synced: 19 days ago
JSON representation
Transform Ogham inscriptions to latin text & vice versa in Python.
- Host: GitHub
- URL: https://github.com/stscoundrel/ogham-py
- Owner: stscoundrel
- License: mit
- Created: 2021-11-01T07:40:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-02T14:25:45.000Z (5 months ago)
- Last Synced: 2024-08-08T17:43:05.341Z (3 months ago)
- Topics: convert, ogham, old-irish, python
- Language: Python
- Homepage: https://pypi.org/project/ogham/
- Size: 130 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ogham
Convert Ogham inscriptions to latin text & vice versa.
Python port of the original [Node.js library](https://github.com/stscoundrel/ogham).
### Install
`pip install ogham`
#### Usage
You can either transform ogham to text, or text to ogham.
Latin text to ogham:
```python
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:
```python
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.