#!/usr/bin/env python import struct LOWERBASE = map(ord, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz') fo = open('ks.table', 'w') data = [] for c1 in range(0xa1, 0xfe+1): for c2 in range(0xa1, 0xfe+1): try: v = (chr(c1)+chr(c2)).decode('euc-kr') data.append(struct.pack('