Convert stdin to a unicode typewriter font
#!/usr/bin/python3
import sys
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
type_chars = "π°π±π²π³π΄π΅πΆπ·πΈπΉπΊπ»πΌπ½πΎπΏππππππ
πππππππππππππππππππππππππππ π‘π’π£πΆπ·πΈπΉπΊπ»πΌπ½πΎπΏ"
def bold(text):
return ''.join(
type_chars[chars.index(c)] if c in chars else c
for c in text
)
for line in sys.stdin:
print(bold(line), end='')
