// any errors? Fix them
var runes = { // rune to latin substitutions
"ᚠ": "f",
"ᚢ": "u",
"ᚦ": "þ",
"ᚩ": "o",
"ᚱ": "r",
"ᚳ": "c",
"ᚷ": "ġ",
"ᚹ": "w",
"ᚻ": "h",
"ᚾ": "n",
"ᛁ": "i",
"ᛄ": "j",
"ᛇ": "ēo",
"ᛈ": "p",
"ᛉ": "x",
"ᛋ": "s",
"ᛏ": "t",
"ᛒ": "b",
"ᛖ": "e",
"ᛗ": "m",
"ᛚ": "l",
"ᛝ": "ng", // this is correct
"ᛟ": "œ",
"ᛞ": "d",
"ᚪ": "a",
"ᚫ": "æ",
"ᚣ": "y",
"ᛡ": "io", // not ia
"ᛠ": "ea", // this is ok
"ᛢ": "cw",
"ᛣ": "c",
"ᛤ": "cc",
"ᛥ": "st",
"ᚸ": "g"
};
// again, please report any errors, please include replacement for this
var runes2 = { // latin -> runes
"a": "ᚪ",
"ā": "ᚪ",
"b": "ᛒ",
"c": "ᚳ",
"ċ": "ᚳ", // this is appropriate
"d": "ᛞ",
"e": "ᛖ",
"ē": "ᛖ",
"f": "ᚠ",
"g": "ᚷ",
"h": "ᚻ",
"i": "ᛁ",
"ġ": "ᛄ",
"k": "ᚳ",
"l": "ᛚ",
"m": "ᛗ",
"n": "ᚾ",
"o": "ᚩ",
"ō": "ᚩ",
"p": "ᛈ",
"q": "ᛢ",
"r": "ᚱ",
"s": "ᛋ",
"t": "ᛏ",
"u": "ᚢ",
"ū": "ᚢ",
"v": "ᚹ", // maybe should convert to F instead of W?
"w": "ᚹ",
"x": "ᛉ",
"y": "ᚣ",
"ȳ": "ᚣ",
"z": "ᛋ",
"æ": "ᚫ",
"œ": "ᛟ",
"þ": "ᚦ",
"ð": "ᚦ" // no way to distinguish, unless we want to check whether or not it's the last letter, etc. (???)
};
/**
* Two or more characters -> a single rune or a pattern of runes
* Put here anything that should be converted from two or more gw characters to one or more rune.
*/
rune2_exceptions = [
["ea", "ᛠ"],
["eo", "ᛇ"],
["io", "ᛡ"],
["ng", "ᛝ"],
["cc", "ᛤ"],
["cw", "ᛢ"]
];