Skip to content

Instantly share code, notes, and snippets.

@vitorhead
vitorhead / runes.clj
Last active March 19, 2019 14:11
An attempt to make a runic translator. As soon as you boot it in your repl, enter (setup) to start and you can type whatever you want to translate. When done, enter "exit" to quit the enviroment. The runes were copied from the URL in the gist. No further research has been done.
;https://www.furorteutonicus.eu/germanic/runescribe/index.php
(def runes "ᚨᛒᚲᛞᛖᚠᚷᚺᛇᚲᛚᛗᚾᛟᛈᛩᚱᛋᛏᚢᚡᚹᛪᛃᛋᛎ")
(def alphabet "abcdefghijklmnopqrstuvwxyz")
(def values (zipmap alphabet runes))
(defn is-in?
[elem col]
(some #(= elem %) col))
(defn translate