nato: Add german spelling
This commit is contained in:
40
bin/nato
40
bin/nato
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
import os.path
|
||||||
|
|
||||||
hash = {
|
hash = {
|
||||||
'A': 'Alpha',
|
'A': 'Alpha',
|
||||||
@@ -43,6 +44,45 @@ hash = {
|
|||||||
'.': 'Stop',
|
'.': 'Stop',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
de = {
|
||||||
|
'A': 'Anton',
|
||||||
|
'Ä': 'Ärger',
|
||||||
|
'B': 'Berta',
|
||||||
|
'C': 'Cäsar',
|
||||||
|
'D': 'Dora',
|
||||||
|
'E': 'Emil',
|
||||||
|
'F': 'Friedrich',
|
||||||
|
'G': 'Gustav',
|
||||||
|
'H': 'Heinrich',
|
||||||
|
'I': 'Ida',
|
||||||
|
'J': 'Julius',
|
||||||
|
'K': 'Kaufmann',
|
||||||
|
'L': 'Ludwig',
|
||||||
|
'M': 'Martha',
|
||||||
|
'N': 'Nordpol',
|
||||||
|
'O': 'Otto',
|
||||||
|
'Ö': 'Ökonom',
|
||||||
|
'P': 'Paula',
|
||||||
|
'Q': 'Quelle',
|
||||||
|
'R': 'Richard',
|
||||||
|
'S': 'Samuel',
|
||||||
|
'ß': 'Eszett',
|
||||||
|
'T': 'Theodor',
|
||||||
|
'U': 'Ulrich',
|
||||||
|
'Ü': 'Übermut',
|
||||||
|
'V': 'Viktor',
|
||||||
|
'W': 'Wilhelm',
|
||||||
|
'X': 'Xanthippe',
|
||||||
|
'Y': 'Ypsilon',
|
||||||
|
'Z': 'Zacharias',
|
||||||
|
'-': 'Strich',
|
||||||
|
'.': 'Punkt',
|
||||||
|
}
|
||||||
|
|
||||||
|
if os.path.basename(sys.argv[0]) == 'natode':
|
||||||
|
hash = de
|
||||||
|
|
||||||
|
|
||||||
if len(sys.argv) < 2 or sys.argv[1] == '-':
|
if len(sys.argv) < 2 or sys.argv[1] == '-':
|
||||||
text = [line.strip() for line in sys.stdin.readlines()]
|
text = [line.strip() for line in sys.stdin.readlines()]
|
||||||
else:
|
else:
|
||||||
|
|||||||
1
bin/natode
Symbolic link
1
bin/natode
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
nato
|
||||||
Reference in New Issue
Block a user