|
|
@ -42,7 +42,7 @@ nato_tafel = {
|
|
|
|
"G": "Golf",
|
|
|
|
"G": "Golf",
|
|
|
|
"H": "Hotel",
|
|
|
|
"H": "Hotel",
|
|
|
|
"I": "India",
|
|
|
|
"I": "India",
|
|
|
|
"J": "Juliett"
|
|
|
|
"J": "Juliett",
|
|
|
|
"K": "Kilo",
|
|
|
|
"K": "Kilo",
|
|
|
|
"L": "Lima",
|
|
|
|
"L": "Lima",
|
|
|
|
"M": "Mike",
|
|
|
|
"M": "Mike",
|
|
|
@ -62,11 +62,11 @@ nato_tafel = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def to_buchstabierfassung(inputstring):
|
|
|
|
def to_buchstabierfassung(inputstring, tafel=buchstabiertafel):
|
|
|
|
output = inputstring + ": "
|
|
|
|
output = inputstring + ": "
|
|
|
|
for letter in inputstring:
|
|
|
|
for letter in inputstring:
|
|
|
|
if letter == ' ': continue
|
|
|
|
if letter == ' ': continue
|
|
|
|
output += buchstabiertafel[str.upper(letter)] + ' '
|
|
|
|
output += tafel[str.upper(letter)] + ' '
|
|
|
|
print(output)
|
|
|
|
print(output)
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
@ -77,6 +77,10 @@ def main():
|
|
|
|
print()
|
|
|
|
print()
|
|
|
|
to_buchstabierfassung("Felix")
|
|
|
|
to_buchstabierfassung("Felix")
|
|
|
|
to_buchstabierfassung("Pankratz")
|
|
|
|
to_buchstabierfassung("Pankratz")
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
if sys.argv[1] == '-n':
|
|
|
|
|
|
|
|
for word in sys.argv[2:]:
|
|
|
|
|
|
|
|
to_buchstabierfassung(word, tafel=nato_tafel)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
for word in sys.argv[1:]:
|
|
|
|
for word in sys.argv[1:]:
|
|
|
|
to_buchstabierfassung(word)
|
|
|
|
to_buchstabierfassung(word)
|
|
|
|