From 3691dc39a0d02945cecabd02c8fcb8c7efc7f5fa Mon Sep 17 00:00:00 2001 From: Sampo Silvennoinen Date: Mon, 21 Nov 2022 19:30:02 +0200 Subject: [PATCH 1/3] Elder Futhark: add missing oe --- elderfuthark/elderfuthark_test.go | 4 ++-- elderfuthark/letters.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/elderfuthark/elderfuthark_test.go b/elderfuthark/elderfuthark_test.go index 382f512..3c4e16d 100644 --- a/elderfuthark/elderfuthark_test.go +++ b/elderfuthark/elderfuthark_test.go @@ -5,8 +5,8 @@ import ( ) func TestTransformsLettersToRunes(t *testing.T) { - const content = "aábcdðeéfghiíjklmnŋoópqrstþuúvwxyýzåäæöøǫþ" - const expected = "ᚨᚨᛒᚲᛞᚦᛖᛖᚠᚷᚻᛁᛁᛃᚲᛚᛗᚾᛜᛟᛟᛈᚲᚱᛋᛏᚦᚢᚢᚹᚹᛋᛁᛁᛉᛟᛇᛇᚢᚢᛟᚦ" + const content = "aábcdðeéfghiíjklmnŋoópqrstþuúvwxyýzåäæœöøǫþ" + const expected = "ᚨᚨᛒᚲᛞᚦᛖᛖᚠᚷᚻᛁᛁᛃᚲᛚᛗᚾᛜᛟᛟᛈᚲᚱᛋᛏᚦᚢᚢᚹᚹᛋᛁᛁᛉᛟᛇᛇᛟᚢᚢᛟᚦ" result := LettersToRunes(content) if result != expected { diff --git a/elderfuthark/letters.go b/elderfuthark/letters.go index 738743a..f54738c 100644 --- a/elderfuthark/letters.go +++ b/elderfuthark/letters.go @@ -40,6 +40,7 @@ func getLetterMapping() map[string]string { "å": "ᛟ", "ä": "ᛇ", "æ": "ᛇ", + "œ": "ᛟ", "ö": "ᚢ", "ø": "ᚢ", "þ": "ᚦ", From 09953a4de2c1eb18c01033f18bb8a88254450f17 Mon Sep 17 00:00:00 2001 From: Sampo Silvennoinen Date: Mon, 21 Nov 2022 19:31:17 +0200 Subject: [PATCH 2/3] Younger Futhark: add missing oe --- youngerfuthark/letters.go | 2 ++ youngerfuthark/youngerfuthark_test.go | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/youngerfuthark/letters.go b/youngerfuthark/letters.go index 6023cb7..2f2b015 100644 --- a/youngerfuthark/letters.go +++ b/youngerfuthark/letters.go @@ -39,6 +39,7 @@ func getLettersToLongBranchRunesMapping() map[string]string { "å": "ᚢ", "ä": "ᛅ", "æ": "ᛅ", + "œ": "ᚢ", "ö": "ᚢ", "ø": "ᚢ", "ǫ": "ᚢ", @@ -85,6 +86,7 @@ func getLettersToShortTwigRunesMapping() map[string]string { "å": "ᚢ", "ä": "ᛆ", "æ": "ᛆ", + "œ": "ᚢ", "ö": "ᚢ", "ø": "ᚢ", "ǫ": "ᚢ", diff --git a/youngerfuthark/youngerfuthark_test.go b/youngerfuthark/youngerfuthark_test.go index d0e287a..f8d122e 100644 --- a/youngerfuthark/youngerfuthark_test.go +++ b/youngerfuthark/youngerfuthark_test.go @@ -5,8 +5,8 @@ import ( ) func TestDefaultTransformLettersToRunes(t *testing.T) { - const content = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæöøǫþ" - const expected = "ᛅᛅᛒᛋᛏᚦᛁᛁᚠᚴᚼᛁᛁᛁᚴᛚᛘᚾᚢᚢᛒᚴᚱᛋᛏᚦᚢᚢᚢᚢᛋᚢᚢᛋᚢᛅᛅᚢᚢᚢᚦ" + const content = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæœöøǫþ" + const expected = "ᛅᛅᛒᛋᛏᚦᛁᛁᚠᚴᚼᛁᛁᛁᚴᛚᛘᚾᚢᚢᛒᚴᚱᛋᛏᚦᚢᚢᚢᚢᛋᚢᚢᛋᚢᛅᛅᚢᚢᚢᚢᚦ" result := LettersToRunes(content) if result != expected { @@ -15,8 +15,8 @@ func TestDefaultTransformLettersToRunes(t *testing.T) { } func TestTransformsLettersToLongBranchRunes(t *testing.T) { - const content = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæöøǫþ" - const expected = "ᛅᛅᛒᛋᛏᚦᛁᛁᚠᚴᚼᛁᛁᛁᚴᛚᛘᚾᚢᚢᛒᚴᚱᛋᛏᚦᚢᚢᚢᚢᛋᚢᚢᛋᚢᛅᛅᚢᚢᚢᚦ" + const content = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæœöøǫþ" + const expected = "ᛅᛅᛒᛋᛏᚦᛁᛁᚠᚴᚼᛁᛁᛁᚴᛚᛘᚾᚢᚢᛒᚴᚱᛋᛏᚦᚢᚢᚢᚢᛋᚢᚢᛋᚢᛅᛅᚢᚢᚢᚢᚦ" result := LettersToLongBranchRunes(content) if result != expected { @@ -25,8 +25,8 @@ func TestTransformsLettersToLongBranchRunes(t *testing.T) { } func TestTransformsLettersToShortTwigRunes(t *testing.T) { - const content = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæöøǫþ" - const expected = "ᛆᛆᛒᛌᛐᚦᛁᛁᚠᚴᚽᛁᛁᛁᚴᛚᛘᚿᚢᚢᛒᚴᚱᛌᛐᚦᚢᚢᚢᚢᛌᚢᚢᛌᚢᛆᛆᚢᚢᚢᚦ" + const content = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæœöøǫþ" + const expected = "ᛆᛆᛒᛌᛐᚦᛁᛁᚠᚴᚽᛁᛁᛁᚴᛚᛘᚿᚢᚢᛒᚴᚱᛌᛐᚦᚢᚢᚢᚢᛌᚢᚢᛌᚢᛆᛆᚢᚢᚢᚢᚦ" result := LettersToShortTwigRunes(content) if result != expected { From 7c23422228df68da2558cd1342b3f3516d953505 Mon Sep 17 00:00:00 2001 From: Sampo Silvennoinen Date: Mon, 21 Nov 2022 19:32:22 +0200 Subject: [PATCH 3/3] Staveless Futhark: add missing oe --- stavelessfuthark/letters.go | 1 + stavelessfuthark/stavelessfuthark_test.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/stavelessfuthark/letters.go b/stavelessfuthark/letters.go index 4f3d03d..b030318 100644 --- a/stavelessfuthark/letters.go +++ b/stavelessfuthark/letters.go @@ -40,6 +40,7 @@ func getLetterMapping() map[string]string { "å": "ˎ", "ä": "⸝", "æ": "⸝", + "œ": "ˎ", "ö": "ˎ", "ø": "ˎ", "ǫ": "ˎ", diff --git a/stavelessfuthark/stavelessfuthark_test.go b/stavelessfuthark/stavelessfuthark_test.go index ebd6345..4e200b8 100644 --- a/stavelessfuthark/stavelessfuthark_test.go +++ b/stavelessfuthark/stavelessfuthark_test.go @@ -5,8 +5,8 @@ import ( ) func TestTransformsLettersToRunes(t *testing.T) { - const content = "aábcdðeéfghiíjklmnoópqrRstþuúvwxyýzåäæöøǫþ " - const expected = "⸝⸝ˏ╵⸍וᛁᛁᛙᛍᚽᛁᛁᛁᛍ⸌⠃⸜ˎˎˏᛍ◟◟╵⸍ו╮╮╮╮╵╮╮╵ˎ⸝⸝ˎˎˎו:" + const content = "aábcdðeéfghiíjklmnoópqrRstþuúvwxyýzåäæœöøǫþ " + const expected = "⸝⸝ˏ╵⸍וᛁᛁᛙᛍᚽᛁᛁᛁᛍ⸌⠃⸜ˎˎˏᛍ◟◟╵⸍ו╮╮╮╮╵╮╮╵ˎ⸝⸝ˎˎˎˎו:" result := LettersToRunes(content) if result != expected {