Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/ogham
Transform Ogham inscriptions to latin text & vice versa
https://github.com/stscoundrel/ogham
ogham old-irish transform typescript
Last synced: 19 days ago
JSON representation
Transform Ogham inscriptions to latin text & vice versa
- Host: GitHub
- URL: https://github.com/stscoundrel/ogham
- Owner: stscoundrel
- License: mit
- Created: 2021-09-05T16:47:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-02T14:51:06.000Z (5 months ago)
- Last Synced: 2024-09-04T17:54:24.648Z (2 months ago)
- Topics: ogham, old-irish, transform, typescript
- Language: TypeScript
- Homepage:
- Size: 732 KB
- Stars: 0
- 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.
### Install
`yarn add ogham-inscriptions`
#### Usage
You can either transform ogham to text, or text to ogham.
Latin text to ogham:
```javascript
import { lettersToOgham } from 'ogham-inscriptions'// "Netacari, nephew of Cagi", from Castletimon, Brittas Bay, Co Wicklow
const result = lettersToOgham('netacarinetaccagi')console.log(result) // ᚛ᚅᚓᚈᚐᚉᚐᚏᚔᚅᚓᚈᚐᚉᚉᚐᚌᚔ᚜
```Ogham to latin text:
```javascript
import { oghamToLetters } from 'ogham-inscriptions'// "Nettasagri, Briaci", from Bridell, Pembrokeshire
const result = oghamToLetters('᚛ᚅᚓᚈᚈᚐᚄᚐᚌᚏᚔ ᚋᚐᚊᚔ ᚋᚒᚉᚑᚓ ᚁᚏᚔᚐᚉᚔ᚜')console.log(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.