From 01ebaea6c22cdb12062780db47167762d92dccb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Tue, 22 Mar 2022 09:48:17 +0100 Subject: [PATCH] nato: Add german spelling --- bin/nato | 40 ++++++++++++++++++++++++++++++++++++++++ bin/natode | 1 + 2 files changed, 41 insertions(+) create mode 120000 bin/natode diff --git a/bin/nato b/bin/nato index 1611ad3..dba57e7 100755 --- a/bin/nato +++ b/bin/nato @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import sys +import os.path hash = { 'A': 'Alpha', @@ -43,6 +44,45 @@ hash = { '.': '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] == '-': text = [line.strip() for line in sys.stdin.readlines()] else: diff --git a/bin/natode b/bin/natode new file mode 120000 index 0000000..6bbd50d --- /dev/null +++ b/bin/natode @@ -0,0 +1 @@ +nato \ No newline at end of file