if components[1][0] == 'U' and re.match('[0-9a-fA-F]+$', components[1][1:]): unival = string.atoi(components[1][1:], 16) if unival == 0: continue keysymdb[components[4]] = unival keysymstxt.close() """ Patch up the keysymdb with some of our own stuff """ """ This is preferential treatment for Greek """ """ => we get more savings if used for Greek """ # keysymdb['dead_tilde'] = 0x342 process_keysymstxt() KeycodesReader.initialise() xkbfilename = "gr" if len(sys.argv) > 1: xkbfilename = sys.argv[1] # print "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", sys.argv[1] try: xkbfile = open(xkbfilename, 'r') except OSError: print "Could not open file ", xkbfilename, ". Aborting..." sys.exit(-1) xkbfile.close
def __init__(self): KeycodesReader.initialise()