https://github.com/stscoundrel/riimut-go
Transform latin letters to runes & vice versa. Go version.
https://github.com/stscoundrel/riimut-go
futhark futhark-runes futhorc futhorc-runes futhork futhork-runes go golang-library golang-package runes staveless-runes
Last synced: 2 months ago
JSON representation
Transform latin letters to runes & vice versa. Go version.
- Host: GitHub
- URL: https://github.com/stscoundrel/riimut-go
- Owner: stscoundrel
- License: mit
- Created: 2021-11-27T15:23:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T08:17:54.000Z (over 1 year ago)
- Last Synced: 2025-03-25T07:38:24.002Z (2 months ago)
- Topics: futhark, futhark-runes, futhorc, futhorc-runes, futhork, futhork-runes, go, golang-library, golang-package, runes, staveless-runes
- Language: Go
- Homepage: https://pkg.go.dev/github.com/stscoundrel/riimut-go
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Riimut
Transform latin letters to runes & vice versa. Go version.
Includes transformers for four main runic alphabets:
- Elder Futhark
- Younger Futhark
- Medieval Futhork
- Futhorc (Anglo-Frisian runes)## Install
`go get -d github.com/stscoundrel/riimut-go`
## Usage
Text to runes:
```go
package main// Ships four runic dialects under riimut module.
import (
"fmt""github.com/stscoundrel/riimut-go/elderfuthark"
"github.com/stscoundrel/riimut-go/futhorc"
"github.com/stscoundrel/riimut-go/medievalfuthork"
"github.com/stscoundrel/riimut-go/youngerfuthark"
)func main() {
// From Old Groms runestone.
const content := "auk tani karþi kristna"
youngerFuthark := youngerfuthark.LettersToRunes(content)
fmt.Println(youngerFuthark) // ᛅᚢᚴ:ᛏᛅᚾᛁ:ᚴᛅᚱᚦᛁ:ᚴᚱᛁᛋᛏᚾᛅ// From 4th century axe in Jutland
const content := "wagagastiz alu wihgu sikijaz aiþalataz"
elderFuthark := elderfuthark.LettersToRunes(content)
fmt.Println(elderFuthark) // ᚹᚨᚷᚨᚷᚨᛋᛏᛁᛉ:ᚨᛚᚢ:ᚹᛁᚻᚷᚢ:ᛋᛁᚲᛁᛃᚨᛉ:ᚨᛁᚦᚨᛚᚨᛏᚨᛉ// From Lord's Prayer, in Old Norse.
const content := "Faðer uor som ast i himlüm, halgað warðe þit nama"
medievalFuthork := medievalfuthork.LettersToRunes(content)
fmt.Println(medievalFuthork) // ᚠᛆᚦᚽᚱ:ᚢᚮᚱ:ᛋᚮᛘ:ᛆᛋᛏ:ᛁ:ᚼᛁᛘᛚᚢᛘ,:ᚼᛆᛚᚵᛆᚦ:ᚠᛆᚱᚦᚽ:ᚦᛁᛏ:ᚿᛆᛘᛆ// From 8th century Franks Casket, in late West Saxon.
const content := "fisc.flodu.ahofonferg | enberig |"
futhorc := futhorc.LettersToRunes(content)
fmt.Println(futhorc) // ᚠᛁᛋᚳ.ᚠᛚᚩᛞᚢ.ᚪᚻᚩᚠᚩᚾᚠᛖᚱᚷ:|:ᛖᚾᛒᛖᚱᛁᚷ:|
}
```Runes to text:
```go
package main// All four dialects contain RunesToLetters method.
import (
"fmt","github.com/stscoundrel/riimut-go/youngerfuthark"
)func main() {
const runicText := "ᛅᚢᚴ:ᛏᛅᚾᛁ:ᚴᛅᚱᚦᛁ:ᚴᚱᛁᛋᛏᚾᛅ"
latinText := youngerfuthark.RunesToLetters(runicText)fmt.Println(latinText) // "auk tani karþi kristna"
}```
Younger Futhark comes with long branch (Danish) and short twig (Norwegian & Swedish) variants.
```go
package mainimport (
"fmt","github.com/stscoundrel/riimut-go/youngerfuthark"
)const letters = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæöøǫþ"
// Comes with named functions per style.
longBranch := youngerfuthark.LettersToLongBranchRunes(letters)
shortTwig := youngerfuthark.LettersToShortTwigRunes(letters)fmt.Println(longBranch) // ᛅᛅᛒᛋᛏᚦᛁᛁᚠᚴᚼᛁᛁᛁᚴᛚᛘᚾᚢᚢᛒᚴᚱᛋᛏᚦᚢᚢᚢᚢᛋᚢᚢᛋᚢᛅᛅᚢᚢᚢᚦ
fmt.Println(shortTwig) // ᛆᛆᛒᛌᛐᚦᛁᛁᚠᚴᚽᛁᛁᛁᚴᛚᛘᚿᚢᚢᛒᚴᚱᛌᛐᚦᚢᚢᚢᚢᛌᚢᚢᛌᚢᛆᛆᚢᚢᚢᚦ```
#### What's in the name?
"Riimut" is the Finnish word for "runes".