@TacoCode/

Ascii Typer

Python

An ascii typer. (As of [Alpha] version [only letters and numbers work and there is no letter spacing])

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from sys import exc_info
print("""
	 __    __     _                          
	/ / /\ \ \___| | ___ ___  _ __ ___   ___ 
	\ \/  \/ / _ \ |/ __/ _ \| '_ ` _ \ / _ \\
	 \  /\  /  __/ | (_| (_) | | | | | |  __/
	  \/  \/ \___|_|\___\___/|_| |_| |_|\___|                                      

==== Creative Commons license BY-NC-SA 4.0 ====""")  
print ("Do not Republish for Profit")
print("This was originally made by 'https://repl.it/@AZRIELGIESWEIN'")
letters = {
	"A": [' ____  ', '//  \\\\ ', '||  || ', '||  || ', '||==|| ', '||  || '],
	"B": ['||=\\\\  ', '||  || ', '||__// ', '||  \\\\ ', '||  || ', '||=//  '],
	"C": ['  __   ', '//  \\\\ ', '||     ', '||     ', '||     ', '\\\\__// '],
	"D": ['____   ', '||  \\\\ ', '||  || ', '||  || ', '||  || ', '||__// '],
	"E": ['||==== ', '||     ', '||__   ', '||     ', '||     ', '||==== '],
	"F": ['||==== ', '||     ', '||__   ', '||     ', '||     ', '||     '],
	"G": ['  __   ', '//  \\\\ ', '||     ', '|| ___ ', '||  \\\\ ', '\\\\__// '],
	"H": ['||  || ', '||__|| ', '||  || ', '||  || ', '||  || ', '||  || '],
	"I": ['====== ', '  ||   ', '  ||   ', '  ||   ', '  ||   ', '====== '],
	"J": ['====== ', '   ||  ', '   ||  ', '   ||  ', '   //  ', '\\\\//   '],
	"K": ['||  // ', '|| //  ', '||//   ', '||\\\\   ', '|| \\\\  ', '||  \\\\ '],
	"L": ['||     ', '||     ', '||     ', '||     ', '||     ', '\\\\==== '],
	"M": ['_    _ ', '|\  /| ', '|\\\\//| ', '| || | ', '| || | ', '| || | '],
	"N": ['|    | ', '|\   | ', '| \  | ', '|  \ | ', '|   \| ', '|    | '],
	"O": ['  __   ', ' /  \  ', '/ -- \\ ', '| || | ', '\ -- / ', ' \__/  '],
	"P": ['||===\\\\ ', '||   || ', '||===// ', '||      ', '||      ', '||      '],
	"Q": ['  __   ', ' /  \  ', '/ -- \\ ', '| || | ', '\ --\\\\ ', ' \__/\\ '],
	"R": ['||===\\\\ ', '||   || ', '||===// ', '||  \\\\  ', '||   \\\\ ', '||   || '],
	"S": [' ----- ', '//     ', '\\\\___  ', '    \\\\ ', '    // ', '-----  '],
	"T": ['====== ', '  ||   ', '  ||   ', '  ||   ', '  ||   ', '  ||   '],
	"U": ['||  || ', '||  || ', '||  || ', '||  || ', '||__|| ', '\\\\__// '],
	"V": ['__  __ ', '||  || ', '\\\\  // ', ' \\\\//  ', '  \/   ', '   `   '],
	"W": ['_    _ ', '|    | ', '| || | ', '| || | ', '| /\ | ', '|//\\\\| '],
	"X": ['_    _ ', '\\\\  // ', ' \\\\//  ', ' //\\\\  ', '//  \\\\ ', '-    - '],
	"Y": ['_    _ ', '\\\\  // ', ' \\\\//  ', '  ||   ', '  ||   ', '  ||   '],
	"Z": ['====== ', '    // ', '   //  ', '  //   ', ' //    ', '====== '],

	"1": [' __    ', '//||   ', '  ||   ', '  ||   ', '  ||   ', ' ====  '],
	"2": [' ___   ', '// \\\\  ', '   ||  ', '  //   ', ' ||    ', ' ===== '],
	"3": [' ___   ', '// \\\\  ', '   //  ', '  =||  ', '   \\\\  ', '\\\\_//  '],
	"4": ['       ', '||  || ', '\\\\__|| ', '    || ', '    || ', '    || '],
	"5": ['====== ', '||     ', '\\\\__   ', '    \\\\ ', '\\\\__// ', '       '],
	"6": [' ___   ', '// \\\\  ', '|| __  ', '||/  \\ ', '|| ()| ', ' \\\\__/ '],
	"7": ['====== ', '\\\\     ', ' \\\\    ', '  \\\\   ', '  ||   ', '  ||   '],
	"8": [' ____  ', '/ __ \\ ', '\\ \/ / ', '/ __ \\ ', '| \/ | ', '\\____/ '],
	"9": ['/==\\\\  ', '|() || ', '\__/|| ', '    || ', '    || ', '    || '],
	"0": [' ____  ', '/    \\ ', '| /\ | ', '| || | ', '| \/ | ', '\____/ '],

	" ": ['       ', '       ', '       ', '       ', '       ', '       ']
}


while True: 
	output = ["","","","","",""]
	input1 = input("Text to write: ").upper()

	for letter in input1:
		if letter in letters:
			for i in range(len(letters[letter])):
				output[i] += letters.get(letter)[i]
			for out in output:
				print(out)
		else:
			raise NotImplementedError("The caracter '{}' has not been implemented yet".format(letter)).with_traceback(exc_info()[2])
	for out in output:
		print(out)

#(PDM)