No description
Find a file
dependabot[bot] 86c29a5cbb Bump jiro4989/setup-nim-action from 1 to 2
Bumps [jiro4989/setup-nim-action](https://github.com/jiro4989/setup-nim-action) from 1 to 2.
- [Release notes](https://github.com/jiro4989/setup-nim-action/releases)
- [Commits](https://github.com/jiro4989/setup-nim-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: jiro4989/setup-nim-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-02 10:00:39 +03:00
.github Bump jiro4989/setup-nim-action from 1 to 2 2024-08-02 10:00:39 +03:00
src Add text to ogham 2021-12-25 18:41:34 +02:00
tests Add text to ogham 2021-12-25 18:41:34 +02:00
.gitignore Add text to ogham 2021-12-25 18:41:34 +02:00
LICENSE Initial commit 2021-12-25 17:30:52 +02:00
ogham.nimble Add readme & nimble desc 2021-12-25 17:33:56 +02:00
README.md Readme: add nimble install cmd 2021-12-26 11:42:30 +02:00

Ogham

Convert Ogham inscriptions to latin text & vice versa. Nim version.

Also available in TypeScript and Python

Install

nimble install https://github.com/stscoundrel/ogham-nim

Usage

Text to ogham:


import ogham

# 'Nettasagri, Briaci', from Bridell, Pembrokeshire
const content = "nettasagri maqi mucoe briaci"
let oghamText = ogham.lettersToOgham(content)

echo oghamText) # "᚛ᚅᚓᚈᚈᚐᚄᚐᚌᚏᚔ ᚋᚐᚊᚔ ᚋᚒᚉᚑᚓ ᚁᚏᚔᚐᚉᚔ᚜"

Ogham to text:

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.