Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/ogham-nim
Convert Ogham inscriptions to latin text & vice versa. Nim version.
https://github.com/stscoundrel/ogham-nim
alphabet convert nim ogham old-irish transform
Last synced: 22 days ago
JSON representation
Convert Ogham inscriptions to latin text & vice versa. Nim version.
- Host: GitHub
- URL: https://github.com/stscoundrel/ogham-nim
- Owner: stscoundrel
- License: mit
- Created: 2021-12-25T15:30:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T07:00:42.000Z (5 months ago)
- Last Synced: 2024-08-02T08:27:18.870Z (5 months ago)
- Topics: alphabet, convert, nim, ogham, old-irish, transform
- Language: Nim
- Homepage: https://nimble.directory/pkg/ogham
- Size: 16.6 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. Nim version.
Also available in [TypeScript](https://github.com/stscoundrel/ogham) and [Python](https://github.com/stscoundrel/ogham-py)
## Install
`nimble install https://github.com/stscoundrel/ogham-nim`
## Usage
Text to ogham:
```nimimport ogham
# 'Nettasagri, Briaci', from Bridell, Pembrokeshire
const content = "nettasagri maqi mucoe briaci"
let oghamText = ogham.lettersToOgham(content)echo oghamText) # "᚛ᚅᚓᚈᚈᚐᚄᚐᚌᚏᚔ ᚋᚐᚊᚔ ᚋᚒᚉᚑᚓ ᚁᚏᚔᚐᚉᚔ᚜"
```
Ogham to text:
```nim
import ogham# 'Cunalegi, descendant of Qunacanos', from Island, Costello, Co Mayo
const content = "᚛ᚉᚒᚅᚐᚂᚓᚌᚔ ᚐᚃᚔ ᚊᚒᚅᚐᚉᚐᚅᚑᚄ᚜"
let result = ogham.oghamToLetters(content)echo result # "cunalegi avi qunacanos"
```### 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.