[gcompris] braille_alphabets: fixed level with numbers, was generating a python error. Fixed the manual which w
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] braille_alphabets: fixed level with numbers, was generating a python error. Fixed the manual which w
- Date: Thu, 9 Feb 2012 21:56:13 +0000 (UTC)
commit b94c62a6ab08e5ec4a23171de7c640f88c4edce1
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Thu Feb 9 22:55:07 2012 +0100
braille_alphabets: fixed level with numbers, was generating a python error.
Fixed the manual which was not correct.
.../braille_alphabets.py | 5 ++++-
.../braille_alphabets.xml.in | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/braille_alphabets-activity/braille_alphabets.py b/src/braille_alphabets-activity/braille_alphabets.py
index a3db68a..6a8b218 100644
--- a/src/braille_alphabets-activity/braille_alphabets.py
+++ b/src/braille_alphabets-activity/braille_alphabets.py
@@ -286,7 +286,10 @@ class Gcompris_braille_alphabets:
def play_letter(self, letter):
# Play the letter
- filename = 'voices/$LOCALE/alphabet/U%04X.ogg' % ord(letter.lower())
+ if type(letter) == type(str()):
+ filename = 'voices/$LOCALE/alphabet/U%04X.ogg' % ord(letter.lower())
+ else:
+ filename = 'voices/$LOCALE/alphabet/U%04X.ogg' % ord(str(letter))
gcompris.sound.play_ogg(filename)
def braille_cell(self, level):
diff --git a/src/braille_alphabets-activity/braille_alphabets.xml.in b/src/braille_alphabets-activity/braille_alphabets.xml.in
index 31bdbeb..15fb1b2 100644
--- a/src/braille_alphabets-activity/braille_alphabets.xml.in
+++ b/src/braille_alphabets-activity/braille_alphabets.xml.in
@@ -13,7 +13,7 @@
<_description>Learn and memorize the Braille system.</_description>
<_prerequisite></_prerequisite>
<_goal>Let kids discover the Braille system.</_goal>
- <_manual>The screen has 3 sections: braille cell, alphabet name and lower board containing 13 letters. Click on each letter in the lower board to know its corresponding braille code in the braille cell section. Click on the increment level button to jump to the next 13 letters of the English alphabets.</_manual>
+ <_manual>The screen has 3 sections: an interactive braille cell, an instruction telling you the letter to reproduce, and at the top the Braille letters to use as a reference. Each level teaches a set of 10 letters.</_manual>
<_credit></_credit>
</Board>
<Data directory=""/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]