[gcompris/gcomprisbraille] braille char map: reordered the number char map to match their letter's counter part.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprisbraille] braille char map: reordered the number char map to match their letter's counter part.
- Date: Thu, 25 Aug 2011 21:33:52 +0000 (UTC)
commit 9ce8cbabc2128b571a2d4b25b0b90c5f58dd0cfa
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Thu Aug 25 23:33:08 2011 +0200
braille char map: reordered the number char map to match their letter's counter part.
src/braille_alphabets-activity/BrailleMap.py | 23 ++++++++++++++++-------
1 files changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/src/braille_alphabets-activity/BrailleMap.py b/src/braille_alphabets-activity/BrailleMap.py
index b0f6ffc..08c7eb2 100644
--- a/src/braille_alphabets-activity/BrailleMap.py
+++ b/src/braille_alphabets-activity/BrailleMap.py
@@ -49,13 +49,22 @@ class BrailleMap:
BrailleChar(rootitem, index*(CELL_WIDTH+40)+60,
220, 38, letter ,color_on, color_off, circle_fill,
circle_stroke,True ,False ,True , None)
- BrailleChar(rootitem,60, 310, 38, "#",color_on, color_off, circle_fill,
- circle_stroke,True ,False ,True , None)
- for index in range(10):
- BrailleChar(rootitem,(index+1) *(CELL_WIDTH + 33)+60,
- 310, 38, index ,color_on, color_off, circle_fill,
- circle_stroke,True ,False ,True , None)
+
+ # The number line (Keep it aligned with the ASCII in the Braille sense)
+ for index in range(0, 9):
+ BrailleChar(rootitem, index *(CELL_WIDTH + 40)+60,
+ 310, 38, index + 1,color_on, color_off, circle_fill,
+ circle_stroke, True ,False ,True , None)
+ BrailleChar(rootitem, 9 *(CELL_WIDTH + 40)+60,
+ 310, 38, 0 ,color_on, color_off, circle_fill,
+ circle_stroke, True ,False ,True , None)
+
+ # The math operators +-*/
for index in range(4):
BrailleChar(rootitem,index * (CELL_WIDTH + 40) + 60,
- 400 , 38,SYMBOL[index],color_on, color_off, circle_fill,
+ 400 , 38,SYMBOL[index], color_on, color_off, circle_fill,
circle_stroke,True ,False ,True , None)
+
+ BrailleChar(rootitem, 5 *(CELL_WIDTH + 40) + 60, 400, 38,
+ "#", color_on, color_off, circle_fill,
+ circle_stroke, True ,False ,True , None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]