Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class App(object):
- def __init__(self):
- print("Rune transcriptor app")
- print("Enter text you want to transcript into Unicode Runes: ")
- self.transcript(input().lower())
- def transcript(self, text):
- transcripted = ""
- iwaz_check = False
- inguz_check = False
- counter = 1
- result = ""
- for char in text:
- if char == 'g':
- if inguz_check:
- transcripted += "Inguz "
- result += "ᛝ"
- inguz_check = False
- else:
- transcripted += "Gebu "
- result += "ᚷ"
- elif char == 'h':
- if iwaz_check:
- transcripted += "Iwaz "
- result += "ᛇ"
- iwaz_check = False
- else:
- transcripted += "Hagalaz "
- result += "ᚺ"
- if inguz_check or iwaz_check:
- if iwaz_check:
- iwaz_check = False
- transcripted += "Isaz "
- result += "ᛁ"
- elif inguz_check:
- inguz_check = False
- transcripted += "Naudiz "
- result += "ᚾ"
- if char == 'f' or char == 'v':
- transcripted += "Fehu "
- result += "ᚠ"
- elif char == 'u':
- transcripted += "Uruz "
- result += "ᚢ"
- elif char == 'f':
- transcripted += "Þurisaz "
- result += "ᚧ"
- elif char == 'a':
- transcripted += "Ansuz "
- result += "ᚨ"
- elif char == 'r':
- transcripted += "Raidu "
- result += "ᚱ"
- elif char == 'k':
- transcripted += "Kauna "
- result += "ᚲ"
- elif char == 'y':
- transcripted += "Gebu "
- result += "ᚷ"
- elif char == 'w':
- transcripted += "Wunju "
- result += "ᚹ"
- elif char == 'i':
- iwaz_check = True
- if counter == len(text):
- transcripted += "Isaz "
- result += "ᛁ"
- elif char == 'n':
- inguz_check = True
- if counter == len(text):
- transcripted += "Naudiz "
- result += "ᚾ"
- elif char == 'j':
- transcripted += "Jara "
- result += "ᛄ"
- elif char == 'p':
- transcripted += "PerÞu "
- result += "ᛈ"
- elif char == 'd':
- transcripted += "Algiz "
- result += "ᛉ"
- elif char == 's':
- transcripted += "Sowilu "
- result += "ᛊ"
- elif char == 't':
- transcripted += "Tiwaz "
- result += "ᛏ"
- elif char == 'b':
- transcripted += "Berkana "
- result += "ᛒ"
- elif char == 'e':
- transcripted += "Ehwaz "
- result += "ᛖ"
- elif char == 'm':
- transcripted += "Mannaz "
- result += "ᛗ"
- elif char == 'l':
- transcripted += "Laguz "
- result += "ᛚ"
- elif char == 'd':
- transcripted += "Dagaz "
- result += "ᛞ"
- elif char == 'o':
- transcripted += "Oþila "
- result += "ᛟ"
- elif char == 'c':
- transcripted += "Sowilu "
- result += "ᛊ"
- transcripted += "Isaz "
- result += "ᛁ"
- elif char == 'q':
- transcripted += "Kauna "
- result += "ᚲ"
- transcripted += "Gebu "
- result += "ᚷ"
- elif char == 'x':
- transcripted += "Kauna "
- result += "ᚲ"
- transcripted += "Sowilu "
- result += "ᛊ"
- transcripted += "Uruz "
- result += "ᚢ"
- counter += 1
- print(transcripted)
- print(result)
- print()
- while True:
- App()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement