diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2010-01-13 17:16:02 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2010-01-13 17:16:02 (GMT) |
commit | 8172ea81ec387677e4554ba0aa0aaf4a2c26c532 (patch) | |
tree | bb9292970be54be39416e3c7ccdae8e21d72d684 /constants.py | |
parent | 3b4359b236617313c9f8fc407771f1154f3f7b8e (diff) |
unicode and dead key support
Diffstat (limited to 'constants.py')
-rw-r--r-- | constants.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/constants.py b/constants.py index 5dd2e7d..11ba9fc 100644 --- a/constants.py +++ b/constants.py @@ -65,3 +65,23 @@ WORD_STYLES = ["font-weight:bold","","font-style:italic"] WORD_CARD_INDICIES = [1,4,7,37,40,43,73,76,79,None,None,None,None,None,None] WORD_CARD_MAP = {1:(0,0),4:(0,1),7:(0,2),37:(1,0),40:(1,1),43:(1,2),73:(2,0),\ 76:(2,1),79:(2,2)} +# dead key dictionaries +DEAD_KEYS = ['grave','acute','circumflex','tilde','diaeresis','abovering'] +DEAD_DICTS = [{'A':192,'E':200,'I':204,'O':210,'U':217,'a':224,'e':232,'i':236,\ + 'o':242,'u':249}, + {'A':193,'E':201,'I':205,'O':211,'U':218,'a':225,'e':233,'i':237,\ + 'o':243,'u':250}, + {'A':194,'E':202,'I':206,'O':212,'U':219,'a':226,'e':234,\ + 'i':238,'o':244,'u':251}, + {'A':195,'O':211,'N':209,'U':360,'a':227,'o':245,'n':241,'u':361}, + {'A':196,'E':203,'I':207,'O':211,'U':218,'a':228,'e':235,\ + 'i':239,'o':245,'u':252}, + {'A':197,'a':229}] +NOISE_KEYS = ['Shift_L', 'Shift_R', 'Control_L', 'Caps_Lock', 'Pause',\ + 'Alt_L', 'Alt_R', 'KP_Enter', 'ISO_Level3_Shift', 'KP_Divide',\ + 'Escape', 'Return', 'KP_Page_Up', 'Up', 'Down', 'Menu',\ + 'Left', 'Right', 'KP_Home', 'KP_End', 'KP_Up', 'Super_L',\ + 'KP_Down', 'KP_Left', 'KP_Right', 'KP_Page_Down', 'Scroll_Lock',\ + 'Page_Down', 'Page_Up'] +WHITE_SPACE = ['space','Tab'] + |