-
Notifications
You must be signed in to change notification settings - Fork 0
/
letters.py
61 lines (59 loc) · 5.22 KB
/
letters.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
# -*- coding: utf-8 -*-
# for easier printing we'll encode the letters column by column... :)
# font is from here https://fontstruct.com/fontstructions/show/847768/5x7_dot_matrix
# = [[],[],[],[],[]]
chartable = {}
chartable['A'] =[[0,0,1,1,1,1,1],[0,1,0,0,1,0,0],[1,0,0,0,1,0,0],[0,1,0,0,1,0,0],[0,0,1,1,1,1,1]]
chartable['B'] =[[1,0,0,0,0,0,1],[1,1,1,1,1,1,1],[1,0,0,1,0,0,1],[1,0,0,1,0,0,1],[0,1,1,0,1,1,0]]
chartable['C'] =[[0,1,1,1,1,1,0],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[0,1,0,0,0,1,0]]
chartable['D'] =[[1,0,0,0,0,0,1],[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[0,1,1,1,1,1,0]]
chartable['E'] =[[1,1,1,1,1,1,1],[1,0,0,1,0,0,1],[1,0,0,1,0,0,1],[1,0,0,1,0,0,1],[1,0,0,0,0,0,1]]
chartable['F'] =[[1,1,1,1,1,1,1],[1,0,0,1,0,0,0],[1,0,0,1,0,0,0],[1,0,0,1,0,0,0],[1,0,0,0,0,0,0]]
chartable['G'] =[[0,1,1,1,1,1,0],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,1,0,0,1],[0,1,0,1,1,1,1]]
chartable['H'] =[[1,1,1,1,1,1,1],[0,0,0,1,0,0,0],[0,0,0,1,0,0,0],[1,1,1,1,1,1,1]] # [0,0,0,1,0,0,0]
chartable['I'] =[[1,0,0,0,0,0,1],[1,1,1,1,1,1,1],[1,0,0,0,0,0,1]]
chartable['J'] =[[0,0,0,0,0,1,0],[0,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,0],[1,0,0,0,0,0,0]]
chartable['K'] =[[1,1,1,1,1,1,1],[0,0,0,1,0,0,0],[0,0,1,0,1,0,0],[0,1,0,0,0,1,0],[1,0,0,0,0,0,1]]
chartable['L'] =[[1,1,1,1,1,1,1],[0,0,0,0,0,0,1],[0,0,0,0,0,0,1],[0,0,0,0,0,0,1],[0,0,0,0,0,0,1]]
chartable['M'] =[[1,1,1,1,1,1,1],[0,1,0,0,0,0,0],[0,0,1,1,0,0,0],[0,1,0,0,0,0,0],[1,1,1,1,1,1,1]]
chartable['N'] =[[1,1,1,1,1,1,1],[0,0,1,0,0,0,0],[0,0,0,1,0,0,0],[0,0,0,0,1,0,0],[1,1,1,1,1,1,1]]
chartable['O'] =[[0,1,1,1,1,1,0],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[0,1,1,1,1,1,0]]
chartable['P'] =[[1,1,1,1,1,1,1],[1,0,0,1,0,0,0],[1,0,0,1,0,0,0],[1,0,0,1,0,0,0],[0,1,1,0,0,0,0]]
chartable['Q'] =[[0,1,1,1,1,1,0],[1,0,0,0,0,0,1],[1,0,0,0,1,0,1],[1,0,0,0,0,1,0],[0,1,1,1,1,0,1]]
chartable['R'] =[[1,1,1,1,1,1,1],[1,0,0,1,0,0,0],[1,0,0,1,1,0,0],[1,0,0,1,0,1,0],[0,1,1,0,0,0,1]]
chartable['S'] =[[0,1,1,0,0,1,0],[1,0,0,1,0,0,1],[1,0,0,1,0,0,1],[1,0,0,1,0,0,1],[0,1,0,0,1,1,0]]
chartable['T'] =[[1,0,0,0,0,0,0],[1,0,0,0,0,0,0],[1,1,1,1,1,1,1],[1,0,0,0,0,0,0],[1,0,0,0,0,0,0]]
chartable['U'] =[[1,1,1,1,1,1,0],[0,0,0,0,0,0,1],[0,0,0,0,0,0,1],[0,0,0,0,0,0,1],[1,1,1,1,1,1,0]]
chartable['V'] =[[1,1,1,1,1,0,0],[0,0,0,0,0,1,0],[0,0,0,0,0,0,1],[0,0,0,0,0,1,0],[1,1,1,1,1,0,0]]
chartable['W'] =[[1,1,1,1,1,1,0],[0,0,0,0,0,0,1],[0,0,0,1,1,1,0],[0,0,0,0,0,0,1],[1,1,1,1,1,1,0]]
chartable['X'] =[[1,1,0,0,0,1,1],[0,0,1,0,1,0,0],[0,0,0,1,0,0,0],[0,0,1,0,1,0,0],[1,1,0,0,0,1,1]]
chartable['Y'] =[[1,1,1,0,0,0,0],[0,0,0,1,0,0,0],[0,0,0,0,1,1,1],[0,0,0,1,0,0,0],[1,1,1,0,0,0,0]]
chartable['Z'] =[[1,0,0,0,0,1,1],[1,0,0,0,1,0,1],[1,0,0,1,0,0,1],[1,0,1,0,0,0,1],[1,1,0,0,0,0,1]]
chartable['a'] = [[0,0,0,0,0,1,0],[0,0,1,0,1,0,1],[0,0,1,0,1,0,1],[0,0,1,0,1,0,1],[0,0,0,1,1,1,1]]
chartable['b'] = [[1,1,1,1,1,1,1],[0,0,0,1,0,0,1],[0,0,1,0,0,0,1],[0,0,1,0,0,0,1],[0,0,0,1,1,1,0]]
chartable['c'] = [[0,0,0,1,1,1,0],[0,0,1,0,0,0,1],[0,0,1,0,0,0,1],[0,0,1,0,0,0,1],[0,0,0,0,0,1,0]]
chartable['d'] = [[0,0,0,1,1,1,0],[0,0,1,0,0,0,1],[0,0,1,0,0,0,1],[0,0,0,1,0,0,1],[1,1,1,1,1,1,1]]
chartable['e'] = [[0,0,0,1,1,1,0],[0,0,1,0,1,0,1],[0,0,1,0,1,0,1],[0,0,0,1,1,0,0]] # edited one col out [0,0,1,0,1,0,1]
chartable['f'] = [[0,0,0,1,0,0,0],[0,1,1,1,1,1,1],[1,0,0,1,0,0,0],[1,0,0,0,0,0,0],[0,1,0,0,0,0,0]]
chartable['g'] = [[0,0,0,1,0,0,0],[0,0,1,0,1,0,1],[0,0,1,0,1,0,1],[0,0,1,0,1,0,1],[0,0,1,1,1,1,0]]
chartable['h'] = [[1,1,1,1,1,1,1],[0,0,0,1,0,0,0],[0,0,1,0,0,0,0],[0,0,1,0,0,0,0],[0,0,0,1,1,1,1]]
chartable['i'] = [[0,0,0,1,0,0,1],[1,0,1,1,1,1,1],[0,0,0,0,0,0,1]]
chartable['j'] = [[0,0,0,0,0,1,0],[0,0,0,0,0,0,1],[0,0,1,0,0,0,1],[1,0,1,1,1,1,0]]
chartable['k'] = [[1,1,1,1,1,1,1],[0,0,0,0,1,0,0],[0,0,0,1,0,1,0],[0,0,1,0,0,0,1]]
chartable['l'] = [[1,0,0,0,0,0,1],[1,1,1,1,1,1,1],[0,0,0,0,0,0,1]]
chartable['m'] = [[0,0,1,1,1,1,1],[0,0,1,0,0,0,0],[0,0,0,1,1,1,1],[0,0,1,0,0,0,0],[0,0,0,1,1,1,1]]
chartable['n'] = [[0,0,1,1,1,1,1],[0,0,0,1,0,0,0],[0,0,1,0,0,0,0],[0,0,1,0,0,0,0],[0,0,0,1,1,1,1]]
chartable['o'] = [[0,0,0,1,1,1,0],[0,0,1,0,0,0,1],[0,0,1,0,0,0,1],[0,0,0,1,1,1,0]] # edited one col out [0,0,1,0,0,0,1]
chartable['p'] = [[0,0,1,1,1,1,1],[0,0,1,0,1,0,0],[0,0,1,0,1,0,0],[0,0,1,0,1,0,0],[0,0,0,1,0,0,0]]
chartable['q'] = [[0,0,0,1,0,0,0],[0,0,1,0,1,0,0],[0,0,1,0,1,0,0],[0,0,0,1,1,0,0],[0,0,1,1,1,1,1]]
chartable['r'] = [[0,0,1,1,1,1,1],[0,0,0,1,0,0,0],[0,0,1,0,0,0,0],[0,0,0,1,0,0,0]] # edited 4th col out[0,0,1,0,0,0,0]
chartable['s'] = [[0,0,0,1,0,0,1],[0,0,1,0,1,0,1],[0,0,1,0,1,0,1],[0,0,1,0,1,0,1],[0,0,0,0,0,1,0]]
chartable['t'] = [[0,0,1,0,0,0,0],[1,1,1,1,1,1,0],[0,0,1,0,0,0,1],[0,0,0,0,0,0,1],[0,0,0,0,0,1,0]]
chartable['u'] = [[0,0,1,1,1,1,0],[0,0,0,0,0,0,1],[0,0,0,0,0,0,1],[0,0,0,0,0,1,0],[0,0,1,1,1,1,1]]
chartable['v'] = [[0,0,1,1,1,0,0],[0,0,0,0,0,1,0],[0,0,0,0,0,0,1],[0,0,0,0,0,1,0],[0,0,1,1,1,0,0]]
chartable['w'] = [[0,0,1,1,1,1,0],[0,0,0,0,0,0,1],[0,0,0,0,1,1,0],[0,0,0,0,0,0,1],[0,0,1,1,1,1,0]]
chartable['x'] = [[0,0,1,0,0,0,1],[0,0,0,1,0,1,0],[0,0,0,0,1,0,0],[0,0,0,1,0,1,0],[0,0,1,0,0,0,1]]
chartable['y'] = [[0,0,1,1,0,0,0],[0,0,0,0,1,0,1],[0,0,0,0,1,0,1],[0,0,0,0,1,0,1],[0,0,1,1,1,1,0]]
chartable['z'] = [[0,0,1,0,0,0,1],[0,0,1,0,0,1,1],[0,0,1,0,1,0,1],[0,0,1,1,0,0,1],[0,0,1,0,0,0,1]]
chartable[' '] = [[0,0,0,0,0,0,0]]
chartable['!'] = [[1,1,1,1,1,0,1]]