https://github.com/oelin/rune
Translate from Latin to Runic and visa-versa ๐.
https://github.com/oelin/rune
linguistics nodejs runes runic translation transliteration
Last synced: about 1 month ago
JSON representation
Translate from Latin to Runic and visa-versa ๐.
- Host: GitHub
- URL: https://github.com/oelin/rune
- Owner: oelin
- License: mit
- Created: 2023-01-14T11:02:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-18T22:49:39.000Z (over 3 years ago)
- Last Synced: 2025-07-09T05:41:50.354Z (12 months ago)
- Topics: linguistics, nodejs, runes, runic, translation, transliteration
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rune / แฑแขแพแ
Translate from Latin to Runic and visa-versa ๐.
```js
> const rune = require('rune')
> rune.encode('foo bar')
'แ แฉแฉ แแชแฑ'
```
## API
Translation from Latin to Runic.
```js
> rune.encode('hello world')
'แปแแแแฉ แนแฉแฑแแ'
```
Translation from Runic to Latin.
```js
> rune.decode('แปแแแแฉ แนแฉแฑแแ')
'hello world'
```
Note that casing is not preserved during translation.
### Runic Variants
The default form of runic used is "Anglo Saxon" with id `anglo_saxon`. However, this library supports several other types which can be specified using the `variant` parameter. For example:
```js
> rune.encode('hello world', variant=runes.variants.medieval)
'แผแแแแฎ'
```
Supported variants:
| Name | String | Code |
|------------------------------|---------------------------------|----------------------------------------------|
| Elder Futhark | `'elder_futhark'` | `rune.variants.elder_futhark` |
| Anglo Saxon | `'anglo_saxon'` | `rune.variants.anglo_saxon` |
| Yonger Futhark (Long Branch) | `'younger_futhark_long_branch'` | `rune.variants.younger_futhark_long_branch` |
| Yonger Futhark (Short Twig) | `'younger_futhark_short_twig'` | `rune.variants.younger_futhark_short_twig` |
| Medieval | `'medieval'` | `rune.variants.medieval` |
## Resources
* Wikipedia article: [Runes](https://en.wikipedia.org/wiki/Runes#Runic_alphabets)
* Runic transliteration tables: [xahlee.info](http://xahlee.info/comp/unicode_runic.js)