|
|
@ -29,7 +29,17 @@ buchstabiertafel = {
|
|
|
|
"Z": "Zacharias",
|
|
|
|
"Z": "Zacharias",
|
|
|
|
"Ä": "Ärger",
|
|
|
|
"Ä": "Ärger",
|
|
|
|
"Ö": "Ökonom",
|
|
|
|
"Ö": "Ökonom",
|
|
|
|
"Ü": "Übermut"
|
|
|
|
"Ü": "Übermut",
|
|
|
|
|
|
|
|
"0": "Null",
|
|
|
|
|
|
|
|
"1": "Eins",
|
|
|
|
|
|
|
|
"2": "Zwo",
|
|
|
|
|
|
|
|
"3": "Drei",
|
|
|
|
|
|
|
|
"4": "Vier",
|
|
|
|
|
|
|
|
"5": "Fünf",
|
|
|
|
|
|
|
|
"6": "Sechs",
|
|
|
|
|
|
|
|
"7": "Sieben",
|
|
|
|
|
|
|
|
"8": "Acht",
|
|
|
|
|
|
|
|
"9": "Neun"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
nato_tafel = {
|
|
|
|
nato_tafel = {
|
|
|
@ -66,7 +76,10 @@ def to_buchstabierfassung(inputstring, tafel=buchstabiertafel):
|
|
|
|
output = inputstring + ": "
|
|
|
|
output = inputstring + ": "
|
|
|
|
for letter in inputstring:
|
|
|
|
for letter in inputstring:
|
|
|
|
if letter == ' ': continue
|
|
|
|
if letter == ' ': continue
|
|
|
|
|
|
|
|
try:
|
|
|
|
output += tafel[str.upper(letter)] + ' '
|
|
|
|
output += tafel[str.upper(letter)] + ' '
|
|
|
|
|
|
|
|
except KeyError:
|
|
|
|
|
|
|
|
output += letter + ' '
|
|
|
|
print(output)
|
|
|
|
print(output)
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|