An open API service indexing awesome lists of open source software.

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 ๐ŸŽ„.

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)