diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2010-01-12 00:00:55 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2010-01-12 00:00:55 (GMT) |
commit | b3bf4de813d369cf972f8ae390f5a312e276643a (patch) | |
tree | 60ca10507b659c12e1f2492cc763f92b80fce5b2 /constants.py | |
parent | db3d25f9db71f6332336b851098e50ee9bc2b2c3 (diff) |
using sprite labels for word cards
Diffstat (limited to 'constants.py')
-rw-r--r-- | constants.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/constants.py b/constants.py index c073056..eda41ac 100644 --- a/constants.py +++ b/constants.py @@ -11,6 +11,7 @@ # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. +from gettext import gettext as _ MATCH_POSITION = 10 SHAPES = 3 COLORS = 3 @@ -37,3 +38,27 @@ HASH = 3 DICE = 4 LOW = 'low' HIGH = 'high' +RED_STROKE = "#FF6040" +RED_FILL = "#FFC4B8" +BLUE_STROKE = "#0060C8" +BLUE_FILL = "#ACC8E4" +GREEN_STROKE = "#00B418" +GREEN_FILL = "#AFE8A8" +BLACK = "#000000" +WHITE = "#FFFFFF" +COLOR_PAIRS = ([RED_STROKE,RED_FILL], + [GREEN_STROKE,GREEN_FILL], + [BLUE_STROKE,BLUE_FILL]) +FILL_STYLES = ["solid","none","gradient"] +CARD_TYPES = ["X","O","C"] +ROMAN_NUMERALS = {5:'V',7:'VII',10:'X',11:'XI',14:'XIV',15:'XV',\ + 21:'XXI',22:'XXII',33:'XXXIII'} +NUMBER_NAMES = {5:_('five'),7:_('seven'),11:_('eleven'),10:_('ten'),\ + 14:_('fourteen'),15:_('fifteen'),22:_('twenty two'),\ + 21:_('twenty one'),33:_('thirty three')} +NUMBER_PRODUCTS = {5:'1×5',7:'1×7',11:'1×11',10:'2×5',\ + 14:'2×7',15:'3×5',22:'2×11',\ + 21:'3×7',33:'3×11'} +CHINESE_NUMERALS = {5:'五',7:'七',10:'十',11:'十一',14:'十四',15:'十五',\ + 21:'廿一',22:'廿二',33:'卅三'} +WORD_STYLES = ["font-weight:bold","","font-style:italic"] |