/rune

Translate from Latin to Runic and visa-versa 🎄.

Primary LanguageJavaScriptMIT LicenseMIT

Rune / ᚱᚢᚾᛖ

Translate from Latin to Runic and visa-versa 🎄.

> const rune = require('rune')

> rune.encode('foo bar')

'ᚠᚩᚩ ᛒᚪᚱ'

API

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.

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:

> 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