Commit 7815bb49 authored by Bastien Terrier's avatar Bastien Terrier
Browse files

add characters A to Z

parent b3da7b4b
i_maxRows = 5
i_maxColums = 5
alphabet = {}
# for char in range(ord('A'), ord('Z')+1):
# alphabet[chr(char)] = [[0]*i_nbColums for i in range(i_nbRows)]
# print
# print alphabet[chr(char)]
alphabet['A'] = [
[0, 1, 1, 0],
[1, 0, 0, 1],
......@@ -48,18 +40,186 @@ alphabet['E'] = [
[1, 1, 1, 1]
]
alphabet[''] = [
[],
[],
[],
[],
[]
alphabet['F'] = [
[1, 1, 1, 1],
[1, 0, 0, 0],
[1, 1, 1, 0],
[1, 0, 0, 0],
[1, 0, 0, 0]
]
alphabet['G'] = [
[0, 1, 1, 1],
[1, 0, 0, 0],
[1, 0, 1, 1],
[1, 0, 0, 1],
[0, 1, 1, 1]
]
alphabet['H'] = [
[1, 0, 0, 1],
[1, 0, 0, 1],
[1, 1, 1, 1],
[1, 0, 0, 1],
[1, 0, 0, 1]
]
alphabet['I'] = [
[1],
[1],
[1],
[1],
[1]
]
alphabet['J'] = [
[0, 0, 0, 1],
[0, 0, 0, 1],
[0, 0, 0, 1],
[1, 0, 0, 1],
[0, 1, 1, 0]
]
alphabet['K'] = [
[1, 0, 0, 1],
[1, 0, 1, 0],
[1, 1, 0, 0],
[1, 0, 1, 0],
[1, 0, 0, 1]
]
alphabet['L'] = [
[1, 0, 0],
[1, 0, 0],
[1, 0, 0],
[1, 0, 0],
[1, 1, 1]
]
alphabet['M'] = [
[1, 0, 0, 0, 1],
[1, 1, 0, 1, 1],
[1, 0, 1, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1]
]
# alphabet[''] = [
# [],
# [],
# [],
# [],
# []
# ]
alphabet['N'] = [
[1, 0, 0, 1],
[1, 1, 0, 1],
[1, 0, 1, 1],
[1, 0, 0, 1],
[1, 0, 0, 1]
]
alphabet['O'] = [
[0, 1, 1, 0],
[1, 0, 0, 1],
[1, 0, 0, 1],
[1, 0, 0, 1],
[0, 1, 1, 0]
]
alphabet['P'] = [
[1, 1, 1, 0],
[1, 0, 0, 1],
[1, 1, 1, 0],
[1, 0, 0, 0],
[1, 0, 0, 0]
]
alphabet['Q'] = [
[0, 1, 1, 0],
[1, 0, 0, 1],
[1, 0, 0, 1],
[1, 0, 1, 1],
[0, 1, 1, 1]
]
alphabet['R'] = [
[1, 1, 1, 0],
[1, 0, 0, 1],
[1, 1, 1, 0],
[1, 0, 1, 0],
[1, 0, 0, 1]
]
alphabet['S'] = [
[0, 1, 1, 1],
[1, 0, 0, 0],
[0, 1, 1, 0],
[0, 0, 0, 1],
[1, 1, 1, 0]
]
alphabet['T'] = [
[1, 1, 1],
[0, 1, 0],
[0, 1, 0],
[0, 1, 0],
[0, 1, 0]
]
alphabet['U'] = [
[1, 0, 0, 1],
[1, 0, 0, 1],
[1, 0, 0, 1],
[1, 0, 0, 1],
[1, 1, 1, 1]
]
alphabet['V'] = [
[1, 0, 1],
[1, 0, 1],
[1, 0, 1],
[1, 0, 1],
[0, 1, 0]
]
alphabet['W'] = [
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 1, 0, 1],
[0, 1, 0, 1, 0]
]
alphabet['X'] = [
[1, 0, 1],
[1, 0, 1],
[0, 1, 0],
[1, 0, 1],
[1, 0, 1]
]
alphabet['Y'] = [
[1, 0, 1],
[1, 0, 1],
[1, 1, 1],
[0, 1, 0],
[0, 1, 0]
]
alphabet['Z'] = [
[1, 1, 1, 1],
[0, 0, 0, 1],
[0, 0, 1, 0],
[0, 1, 0, 0],
[1, 1, 1, 1]
]
alphabet['!'] = [
[1],
[1],
[1],
[0],
[1]
]
alphabet['?'] = [
[1, 1, 0],
[0, 0, 1],
[1, 1, 0],
[0, 0, 0],
[1, 0, 0]
]
from alphabet import * #import alphabet
from resources import * #import resources
from src/alphabet import * #import alphabet
from src/resources import * #import resources
def initFile(f_dataStream, sentence):
f_dataStream.write("#!/bin/bash")
......
from functions import * #import functions
from resources import * #import resources
from src/functions import * #import functions
from src/resources import * #import resources
import sys #args
......
......@@ -2,7 +2,7 @@
#Powered by Bastien T
#Sentence : ABCDE
#Sentence : ABCD
#Character A
xeyes -geometry 25x25-975+300 &
xeyes -geometry 25x25-950+300 &
......@@ -53,19 +53,3 @@ xeyes -geometry 25x25-550+375 &
xeyes -geometry 25x25-625+400 &
xeyes -geometry 25x25-600+400 &
xeyes -geometry 25x25-575+400 &
#Character E
xeyes -geometry 25x25-500+300 &
xeyes -geometry 25x25-475+300 &
xeyes -geometry 25x25-450+300 &
xeyes -geometry 25x25-425+300 &
xeyes -geometry 25x25-500+325 &
xeyes -geometry 25x25-500+350 &
xeyes -geometry 25x25-475+350 &
xeyes -geometry 25x25-450+350 &
xeyes -geometry 25x25-500+375 &
xeyes -geometry 25x25-475+375 &
xeyes -geometry 25x25-450+375 &
xeyes -geometry 25x25-500+400 &
xeyes -geometry 25x25-475+400 &
xeyes -geometry 25x25-450+400 &
xeyes -geometry 25x25-425+400 &
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment