[Childsplay-cvs] CP-main CPConstants.py,1.22,1.23 childsplay.py,1.67,1.68
Brought to you by:
stas_zytkiewicz
From: Stas Z. <sta...@us...> - 2006-01-27 08:24:20
|
Update of /cvsroot/childsplay/CP-main In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29181 Modified Files: CPConstants.py childsplay.py Log Message: Minor update Index: CPConstants.py =================================================================== RCS file: /cvsroot/childsplay/CP-main/CPConstants.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** CPConstants.py 26 Jan 2006 14:49:10 -0000 1.22 --- CPConstants.py 27 Jan 2006 08:24:09 -0000 1.23 *************** *** 1,33 **** ! # -*- coding: utf-8 -*- ! #~ /*************************************************************************** ! #~ * CPConstants.py ! #~ * ! #~ * Mon Feb 23 11:21:36 2004 ! #~ * Copyright 2004 Stas Z ! #~ * st...@li... ! #~ ****************************************************************************/ ! CPC_DEBUG = 0 ! ## CPConstants ! ## This file provides constants used by all the childsplay modules. ! ! ## The module "BASEPATH" is created by the installation proces. ! ! ## paths ## import BASEPATH ! import sys,os ! ! BASEDIR = BASEPATH.CPDIR ! DATADIR = BASEPATH.SHAREDATADIR ! MODULESDATADIR = BASEPATH.SHARELIBDATADIR ! LOCALEDIR = BASEPATH.LOCALEDIR ! ASSETMLROOT = BASEPATH.ASSETMLDIR ! SCOREFILE = BASEPATH.SCOREFILE ! CHILDSPLAYRC = BASEPATH.CHILDSPLAYRC ! LIBDIR = BASEPATH.LIBDIR ! MODULES = BASEPATH.MODULESDIR ! ! RCDIR = BASEPATH.RCDIR ! ! HOME_DIR_NAME = BASEPATH.HOME_DIR_NAME # Check if there's a childsplay dir in the home directory --- 1,33 ---- ! # -*- coding: utf-8 -*- ! #~ /*************************************************************************** ! #~ * CPConstants.py ! #~ * ! #~ * Mon Feb 23 11:21:36 2004 ! #~ * Copyright 2004 Stas Z ! #~ * st...@li... ! #~ ****************************************************************************/ ! CPC_DEBUG = 0 ! ## CPConstants ! ## This file provides constants used by all the childsplay modules. ! ! ## The module "BASEPATH" is created by the installation proces. ! ! ## paths ## import BASEPATH ! import sys,os ! ! BASEDIR = BASEPATH.CPDIR ! DATADIR = BASEPATH.SHAREDATADIR ! MODULESDATADIR = BASEPATH.SHARELIBDATADIR ! LOCALEDIR = BASEPATH.LOCALEDIR ! ASSETMLROOT = BASEPATH.ASSETMLDIR ! SCOREFILE = BASEPATH.SCOREFILE ! CHILDSPLAYRC = BASEPATH.CHILDSPLAYRC ! LIBDIR = BASEPATH.LIBDIR ! MODULES = BASEPATH.MODULESDIR ! ! RCDIR = BASEPATH.RCDIR ! ! HOME_DIR_NAME = BASEPATH.HOME_DIR_NAME # Check if there's a childsplay dir in the home directory *************** *** 44,190 **** print info HOMEDIR = os.path.abspath(sys.path[0]) ! ! # this is the directory tree in HOME_DIR_NAME. ! # Names seperated by commas are the names from which directories are created ! # if a name are followed by a ; then the next name is considered a sub dir. ! # Example: 'childsplay,memory;my_images', will become ! # $HOME/.childsplay/childsplay/ ! # $HOME/.childsplay/memory/my_images/ ! HOME_DIR_TREE = 'childsplay,ConfigData,memory;my_images' ! ! ! ## flags ## ! MONITOR = None # Special monitor plugin, optional, future use ! RCFILES = None # Can we use configuration files ! SPLASH = True # do we want a splash ! helptext = "Not much help here yet, look at the manpage and docs." ! ! ## fribidi support. Used for RTL locales ! # This is to signal that we running under a RTL locale like Hebrew or Arabic ! # Only Hebrew is supported until now ! try: ! import pyfribidi# only needed for RTL languages ! except ImportError: ! if CPC_DEBUG: ! print "I can't find pyfribidi." ! pyfribidi = None ! ! LOCALE_RTL = None ! ! # Hash tables used to provide different keyboard layouts for RTL languages ! # and Russian. ! # See the 'map_keys' function on possible usage. ! he_key_map={ ! u'Q':u'/', ! u'W':u'\'', ! u'E':u'ק', ! u'R':u'ר', ! u'T':u'×', ! u'Y':u'×', ! u'U':u'×', ! u'I':u'×', ! u'O':u'×', ! u'P':u'פ', ! u'[':u']', ! u']':u'[', ! u'A':u'ש', ! u'S':u'×', ! u'D':u'×', ! u'F':u'×', ! u'G':u'×¢', ! u'H':u'×', ! u'J':u'×', ! u'K':u'×', ! u'L':u'×', ! u';':u'×£', ! u'\'':u',', ! u'Z':u'×', ! u'X':u'ס', ! u'C':u'×', ! u'V':u'×', ! u'B':u'× ', ! u'N':u'×', ! u'M':u'צ', ! u',':u'ת', ! u'.':u'×¥', ! u'/':u'.' ! } ! ! ar_key_map={ ! u'Q':u'ض', ! u'W':u'ص', ! u'E':u'Ø«', ! u'R':u'Ù', ! u'T':u'Ù', ! u'Y':u'غ', ! u'U':u'ع', ! u'I':u'Ù', ! u'O':u'Ø®', ! u'P':u'Ø', ! u'[':u'ج', ! u']':u'د', ! u'A':u'Ø´', ! u'S':u'س', ! u'D':u'Ù', ! u'F':u'ب', ! u'G':u'Ù', ! u'H':u'ا', ! u'J':u'ت', ! u'K':u'Ù', ! u'L':u'Ù ', ! u';':u'Ù', ! u'\'':u'Ø·', ! u'Z':u'<', ! u'X':u'ئ', ! u'C':u'Ø¡', ! u'V':u'ؤ', ! u'B':u'ر', ! u'N':u'ï»»', ! u'M':u'Ù', ! u',':u'Ø©', ! u'.':u'Ù', ! u'/':u'ز' ! } ! ! ru_key_map={ ! u'Q':u'й', ! u'W':u'Ñ', ! u'E':u'Ñ', ! u'R':u'к', ! u'T':u'е', ! u'Y':u'н', ! u'U':u'г', ! u'I':u'Ñ', ! u'O':u'Ñ', ! u'P':u'з', ! u'[':u'Ñ ', ! u']':u'Ñ', ! u'A':u'Ñ', ! u'S':u'Ñ', ! u'D':u'в', ! u'F':u'а', ! u'G':u'п', ! u'H':u'Ñ', ! u'J':u'о', ! u'K':u'л', ! u'L':u'д', ! u';':u'ж', ! u'\'':u'Ñ', ! u'Z':u'Ñ', ! u'X':u'Ñ', ! u'C':u'Ñ', ! u'V':u'м', ! u'B':u'и', ! u'N':u'Ñ', ! u'M':u'Ñ', ! u',':u'б', ! u'.':u'Ñ', ! u'/':u'.' ! } ! ! ! ! ! ! ! --- 44,190 ---- print info HOMEDIR = os.path.abspath(sys.path[0]) ! ! # this is the directory tree in HOME_DIR_NAME. ! # Names seperated by commas are the names from which directories are created ! # if a name are followed by a ; then the next name is considered a sub dir. ! # Example: 'childsplay,memory;my_images', will become ! # $HOME/.childsplay/childsplay/ ! # $HOME/.childsplay/memory/my_images/ ! HOME_DIR_TREE = 'childsplay,ConfigData,memory;my_images' ! ! ! ## flags ## ! MONITOR = None # Special monitor plugin, optional, future use ! RCFILES = None # Can we use configuration files ! SPLASH = True # do we want a splash ! helptext = "Not much help here yet, look at the manpage and docs." ! ! ## fribidi support. Used for RTL locales ! # This is to signal that we running under a RTL locale like Hebrew or Arabic ! # Only Hebrew is supported until now ! try: ! import pyfribidi# only needed for RTL languages ! except ImportError: ! if CPC_DEBUG: ! print "I can't find pyfribidi." ! pyfribidi = None ! ! LOCALE_RTL = None ! ! # Hash tables used to provide different keyboard layouts for RTL languages ! # and Russian. ! # See the 'map_keys' function on possible usage. ! he_key_map={ ! u'Q':u'/', ! u'W':u'\'', ! u'E':u'ק', ! u'R':u'ר', ! u'T':u'×', ! u'Y':u'×', ! u'U':u'×', ! u'I':u'×', ! u'O':u'×', ! u'P':u'פ', ! u'[':u']', ! u']':u'[', ! u'A':u'ש', ! u'S':u'×', ! u'D':u'×', ! u'F':u'×', ! u'G':u'×¢', ! u'H':u'×', ! u'J':u'×', ! u'K':u'×', ! u'L':u'×', ! u';':u'×£', ! u'\'':u',', ! u'Z':u'×', ! u'X':u'ס', ! u'C':u'×', ! u'V':u'×', ! u'B':u'× ', ! u'N':u'×', ! u'M':u'צ', ! u',':u'ת', ! u'.':u'×¥', ! u'/':u'.' ! } ! ! ar_key_map={ ! u'Q':u'ض', ! u'W':u'ص', ! u'E':u'Ø«', ! u'R':u'Ù', ! u'T':u'Ù', ! u'Y':u'غ', ! u'U':u'ع', ! u'I':u'Ù', ! u'O':u'Ø®', ! u'P':u'Ø', ! u'[':u'ج', ! u']':u'د', ! u'A':u'Ø´', ! u'S':u'س', ! u'D':u'Ù', ! u'F':u'ب', ! u'G':u'Ù', ! u'H':u'ا', ! u'J':u'ت', ! u'K':u'Ù', ! u'L':u'Ù ', ! u';':u'Ù', ! u'\'':u'Ø·', ! u'Z':u'<', ! u'X':u'ئ', ! u'C':u'Ø¡', ! u'V':u'ؤ', ! u'B':u'ر', ! u'N':u'ï»»', ! u'M':u'Ù', ! u',':u'Ø©', ! u'.':u'Ù', ! u'/':u'ز' ! } ! ! ru_key_map={ ! u'Q':u'й', ! u'W':u'Ñ', ! u'E':u'Ñ', ! u'R':u'к', ! u'T':u'е', ! u'Y':u'н', ! u'U':u'г', ! u'I':u'Ñ', ! u'O':u'Ñ', ! u'P':u'з', ! u'[':u'Ñ ', ! u']':u'Ñ', ! u'A':u'Ñ', ! u'S':u'Ñ', ! u'D':u'в', ! u'F':u'а', ! u'G':u'п', ! u'H':u'Ñ', ! u'J':u'о', ! u'K':u'л', ! u'L':u'д', ! u';':u'ж', ! u'\'':u'Ñ', ! u'Z':u'Ñ', ! u'X':u'Ñ', ! u'C':u'Ñ', ! u'V':u'м', ! u'B':u'и', ! u'N':u'Ñ', ! u'M':u'Ñ', ! u',':u'б', ! u'.':u'Ñ', ! u'/':u'.' ! } ! ! ! ! ! ! ! Index: childsplay.py =================================================================== RCS file: /cvsroot/childsplay/CP-main/childsplay.py,v retrieving revision 1.67 retrieving revision 1.68 diff -C2 -d -r1.67 -r1.68 *** childsplay.py 26 Jan 2006 14:49:10 -0000 1.67 --- childsplay.py 27 Jan 2006 08:24:09 -0000 1.68 *************** *** 1024,1026 **** finally: pass ! --- 1024,1026 ---- finally: pass ! |