summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-03-28 22:54:02 +0200
committerTom Smeding <tom.smeding@gmail.com>2018-03-28 22:54:02 +0200
commit82b73b1455570e260f5c0d3f757f1fee9c733556 (patch)
tree8b90fd1b0a4415ae87836d5080a6710a53fa60b4
Initial
-rwxr-xr-xbigletters.py404
1 files changed, 404 insertions, 0 deletions
diff --git a/bigletters.py b/bigletters.py
new file mode 100755
index 0000000..eaed4ee
--- /dev/null
+++ b/bigletters.py
@@ -0,0 +1,404 @@
+#!/usr/bin/env python
+import sys
+
+table = r"""
+
+
+
+
+|
+|
+.
+
+,,
+
+
+
+ N
+=O=
+ N
+
+.|'
+'|\
+.|/
+
+o /
+ /
+/ o
+
+/\
+|/.
+\X
+
+|
+
+
+
+ /
+ |
+ \
+
+\
+|
+/
+
+\|/
+-*-
+/|\
+
+ |
+-+-
+ |
+
+
+
+J
+
+
+---
+
+
+
+
+o
+
+ /
+ /
+/
+
+.^^.
+|--|
+'__'
+
+/|
+ |
+_|_
+
+/^\
+ /
+/__
+
+^^\
+--<
+__/
+
+/ |
++-+
+ |
+
+|^^
+'-.
+__'
+
+ /
++-.
+'_'
+
+^^/
+-+
+/
+
+.^.
+>-<
+'_'
+
+.^.
+'-+
+ /
+
+o
+
+o
+
+o
+
+J
+
+ /
+<
+ \
+
+___
+---
+
+
+\
+ >
+/
+
+^^\
+ -'
+ o
+
+/^\
+|O'
+\_/
+
+.^^.
+|__|
+| |
+
+|^^)
+|--:
+|__)
+
+.^^
+|
+'__
+
+T^^.
+| |
+|__'
+
+|^^
+|--
+|__
+
+|^^
+|--
+|
+
+/^^^
+| -+
+\__|
+
+| |
+|--|
+| |
+
+^|^
+ |
+_|_
+
+^^|
+ |
+._'
+
+| /
+|+
+| \
+
+|
+|
+|__
+
+|\/|
+| |
+| |
+
+|\ |
+| \|
+| |
+
+.^^.
+| |
+'__'
+
+|^^\
+|--'
+|
+
+/^^\
+| ./
+\_/\
+
+T^^\
+|-+'
+| \
+
+/^^\
+\--.
+.__/
+
+^T^
+ |
+ |
+
+| |
+| |
+'__'
+
+\ /
+ \ /
+ V
+
+| |
+' . '
+ V V
+
+\ /
+ X
+/ \
+
+\ /
+ Y
+ |
+
+^^/
+ /
+/__
+
+ |^
+ |
+ |_
+
+\
+ \
+ \
+
+^|
+ |
+_|
+
+.^.
+
+
+
+
+
+___
+
+\
+
+
+
+.^^.
+|__|
+| |
+
+|^^)
+|--:
+|__)
+
+.^^
+|
+'__
+
+T^^.
+| |
+|__'
+
+|^^
+|--
+|__
+
+|^^
+|--
+|
+
+/^^^
+| -+
+\__|
+
+| |
+|--|
+| |
+
+^|^
+ |
+_|_
+
+^^|
+ |
+._'
+
+| /
+|+
+| \
+
+|
+|
+|__
+
+|\/|
+| |
+| |
+
+|\ |
+| \|
+| |
+
+.^^.
+| |
+'__'
+
+|^^\
+|--'
+|
+
+/^^\
+| ./
+\_/\
+
+T^^\
+|-+'
+| \
+
+/^^\
+\--.
+.__/
+
+^T^
+ |
+ |
+
+| |
+| |
+'__'
+
+\ /
+ \ /
+ V
+
+| |
+' . '
+ V V
+
+\ /
+ X
+/ \
+
+\ /
+ Y
+ |
+
+^^/
+ /
+/__
+
+ /^
+ >
+ \_
+
+|
+|
+|
+
+^\
+ <
+_/
+
+
+.^.^
+
+""";
+
+table = [s.split("\n") for s in table[1:-1].split("\n\n")]
+for let in table:
+ assert len(let) == 3
+ m = max(len(l) for l in let)
+ for i in range(len(let)):
+ let[i] = (let[i] + " "*m)[:m]
+
+for line in sys.stdin:
+ rows = ["", "", ""]
+ for c in line:
+ if ord(c) < 32 or ord(c) >= 127:
+ continue
+
+ let = table[ord(c) - 32]
+ for i in range(3):
+ rows[i] += " " + let[i]
+
+ for i in range(3):
+ print(rows[i])