[gcompris] gcompris music, use the official note notation



commit 240c5ebf046b10d32a618c9949af79ad0df1f467
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Sat Oct 6 02:14:12 2012 +0200

    gcompris music, use the official note notation
    
    Replaced the sign # and b by the UTF-8 equivallent to
    better represent the sharp and flat notation.

 src/piano_composition-activity/gcomprismusic.py    |   10 +++++-----
 .../piano_composition.py                           |    4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/piano_composition-activity/gcomprismusic.py b/src/piano_composition-activity/gcomprismusic.py
index 9f5ecec..a2d5a07 100644
--- a/src/piano_composition-activity/gcomprismusic.py
+++ b/src/piano_composition-activity/gcomprismusic.py
@@ -66,10 +66,10 @@ NOTE_COLOR_SCHEME = {1:'#FF0000',
 WHITE_KEY_NOTATION = {1:_('C'), 2:_('D'), 3:_('E'), 4:_('F'), 5:_('G'), 6:_('A'), 7:_('B'), 8:_('C')}
 # this is the English musical notation system
 # translators insert the name of the notes in your language
-SHARP_NOTATION = {-1:_('C#'), -2:_('D#'), -3:_('F#'), -4:_('G#'), -5:_('A#')}
+SHARP_NOTATION = {-1:_('Câ'), -2:_('Dâ'), -3:_('Fâ'), -4:_('Gâ'), -5:_('Aâ')}
 # this is the English musical notation system
 # translators insert the name of the notes in your language
-FLAT_NOTATION = {-1:_('Db'), -2:_('Eb'), -3:_('Gb'), -4:_('Ab'), -5:_('Bb')}
+FLAT_NOTATION = {-1:_('Dâ'), -2:_('Eâ'), -3:_('Gâ'), -4:_('Aâ'), -5:_('Bâ')}
 '''
 Translators: note that you must write the translated note name matching the
 given note name in the English notation
@@ -105,7 +105,7 @@ def getIDFromKeyName(keyName):
     1
     >>> getIDFromKeyName('D#')
     -2
-    >>> getIDFromKeyName('Eb')
+    >>> getIDFromKeyName('Eâ')
     -2
     '''
     for x, y in WHITE_KEY_NOTATION.items():
@@ -609,9 +609,9 @@ class Staff():
             else:
                 print 'ERROR: unable to parse note', exp
                 return
-            if '#' in n:
+            if 'â' in n:
                 note.sharpNotation = True
-            if 'b' in n:
+            if 'â' in n:
                 note.sharpNotation = False
             self.drawNote(note)
 
diff --git a/src/piano_composition-activity/piano_composition.py b/src/piano_composition-activity/piano_composition.py
index 7b13cb4..0153b8e 100644
--- a/src/piano_composition-activity/piano_composition.py
+++ b/src/piano_composition-activity/piano_composition.py
@@ -127,10 +127,10 @@ class Gcompris_piano_composition:
             clefText = _("Click on the note symbols to write different length notes")
             keyboardText = _("Notes can be many types, such as quarter notes, half notes, and whole notes")
         elif level == 4:
-            clefText = _("Sharp notes have a # sign")
+            clefText = _("Sharp notes have a â sign")
             keyboardText = _("The black keys are sharp and flat keys")
         elif level == 5:
-            clefText = _("Flat notes have a b sign")
+            clefText = _("Flat notes have a â sign")
             keyboardText = _("Each black key has two names, one with a flat and one with a sharp")
         elif level == 6:
             clefText = _("Now you can load melodies from around the world")



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]