Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bastien Terrier
xeyes_sentences
Commits
7815bb49
Commit
7815bb49
authored
May 24, 2018
by
Bastien Terrier
Browse files
add characters A to Z
parent
b3da7b4b
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/alphabet.py
View file @
7815bb49
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
],
[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
,
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
]
]
src/functions.py
View file @
7815bb49
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"
)
...
...
src/
xeyes_sentences.py
→
xeyes_sentences.py
View file @
7815bb49
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
...
...
xeyes_sentences.sh
View file @
7815bb49
...
...
@@ -2,7 +2,7 @@
#Powered by Bastien T
#Sentence : ABCD
E
#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 &
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment