Translate from Latin to Runic and visa-versa 🎄.
> const rune = require('rune')
> rune.encode('foo bar')
'ᚠᚩᚩ ᛒᚪᚱ'Translation from Latin to Runic.
> rune.encode('hello world')
'ᚻᛖᛚᛚᚩ ᚹᚩᚱᛚᛞ'Translation from Runic to Latin.
> rune.decode('ᚻᛖᛚᛚᚩ ᚹᚩᚱᛚᛞ')
'hello world'Note that casing is not preserved during translation.
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:
> 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 |
- Wikipedia article: Runes
- Runic transliteration tables: xahlee.info