Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/page.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-04-05 16:47:40 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-04-05 16:47:40 (GMT)
commit44dbd9694e54436c94c71db5326861d9e6762b83 (patch)
treed65de459b1b2b55a5aa28e64b0184238c73f2f58 /page.py
parente3ee8c05fab2f5d5a22967ddb9593b0fc8be4cbf (diff)
removed GNOME gettext hack that breaks Sugar
Diffstat (limited to 'page.py')
-rw-r--r--page.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/page.py b/page.py
index 9262ef5..c9ab7d0 100644
--- a/page.py
+++ b/page.py
@@ -14,6 +14,8 @@
import gtk
import os
+from gettext import gettext as _
+
from random import uniform, randrange
from utils.gplay import play_audio_from_file
@@ -51,7 +53,8 @@ ALIGN = 11 # Beginning with Card 11, start left-justifying the text
# Rendering-related constants
KERN = {'i': 0.6, 'I': 0.6, 'l': 0.6, 't': 0.8, 'T': 0.8, 'r': 0.8, 'm': 1.6,
- 'w': 1.3, "'": 0.4, 'M': 1.6, 'f': 0.7, 'W': 1.6}
+ 'w': 1.3, "'": 0.4, 'M': 1.6, 'f': 0.7, 'W': 1.6, 'L': 0.6, 'j': 0.6,
+ 'J': 0.6}
# ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZáéíñóabcdefghijklmnopqrstuvwxyz:.,'!"
ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz:.,'!"