#!/usr/bin/env python
# -*- coding: utf-8 -*-

import logging
import re
import sys

Zawgyi = {
"cc":"Zawgyi-One",
"cO":1,
"eE":True,
"cv":10,
"gb":[4096,4097,4098,4099,4100,4101,4102,4103,4104,4106,4107,4108,4109,4110,4111,4112,4113,4114,
4115,4116,4117,4118,4119,4120,4121,4122,4123,4124,4125,4126,4127,4128,4129,
4192,4193,4194,4195,0,4197,4198,4200,4201,0,4204,4205,0,0,4208,4209,4211,4213
,4214,4215,4216,4217,4218,4219,4220,0,0,4229,0,0,0,0,0,4160,4161,4162,4163,
4164,4165,4166,4167,4168,4169,0,4145,0,4141,4142,4095,4153,4196,4140,4139,
4186,0,4146,0,4156,4234,0,4150,4152,0,4154,4221,0,4155,4222,4223,4224,4225,
4226,4227,4228,0,4151,4244,4245,0,4170,4171,0,4239,4240,4242,4133,4135,4175,0
,4230,4173,4172,4132,0,4143,4144,4147,4148,4232,4233,4157,4231,0,4235,4236,
4238,4237,0,0,0,0,0,0,0,0,0,0,0,4137,4138,0,4105,4203,4202,4134,0,4174,4131,0
,0,0,0,0,0,0,0,0,0,4247,4206,4207,0,4241,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,4246,0,0,0,4199,4210,4212,4243,0,43,45,0,47,0,40,41,91,93,63,
0,34,34,39,39,61],
"fL":34,
"fJ":4247,
"gf":[[4104,u"々だ"],[4192,u"け　"],[4193,u"け、"],
  [4194,u"け。"],[4195,u"け〃"],[4197,u"け々"],[4198,u"け〆"],[4200,u"け〇"],[4201,u"け〈"],[
4204,u"け《"],[4205,u"け》"],[4208,u"け『"],[4209,u"け』"],[4211,u"け【"],[4213,u"け】"],[4214,
u"け〒"],[4215,u"け〓"],[4216,u"け〔"],[4217,u"け〕"],[4218,u"け〖"],[4219,u"け〗"],[4220,u"け〘"]
,[4229,u"け〛"],[4196,u"〄げけ"],[4186,u"さげ"],[4234,u"ゅず"],[4221,u"だ"],[4222,u"っ"],[4223
,u"っ"],[4224,u"っ"],[4225,u"っ"],[4226,u"っ"],[4227,u"っ"],[4228,u"っ"],[4244,u"ぬ"],[4245
,u"ぬ"],[4239,u"〓"],[4240,u"〚"],[4242,u"《け》"],[4147,u"み"],[4148,u"む"],[4232,u"ゅみ"],[
4233,u"ゅむ"],[4231,u"ゅ"],[4235,u"〄げけく"],[4236,u"〄げけぐ"],[4238,u"くそ"],[4237,u"〄げけそ"],[
4137,u"つ〝"],[4138,u"きつ〝ごげ"],[4203,u"〉"],[4202,u"ぶ"],[4134,u"ぶぐ"],[4174,u"ゞ〄げぞ"],[
4247,u"《け《"],[4206,u"「け「"],[4207,u"」け「"],[4241,u"『け「"],[4199,u"け〆"],[4210,u"け』"],[
4212,u"け【"],[4243,u"け〗"]],
"fF":{"4<":"ဝ",u"4I":"၍",u"4Y":"၌",u"4T":"ဤ",u"4K":"ႉ",
"7L":"ႋ",u"7D":"ႌ",u"3d":"ႎ",u"3l":"ႍ",u"4R":"ြၽ",u"4Q":"ွ်",u"4W":"ႊၽ",u"35":"ဩ",
"75":"ဪ",u"39":"ဦ",u"34":"၎",u"74":"ဣ"},
"order":{
  "bE":{"fH":[],u"fT":[]},
  "d7":[],
  "ew":["ွ",u"ႇ",u"ြ",u"ႊ",u"်",u"ၽ",u"ၤ",u"ိ",u"ီ",u"ံ",u"ႋ",u"ႌ",
        u"ႍ",u"ႎ",u"ဲ",u"ု",u"ဳ",u"ူ",
        u"ဴ",u"ႈ",u"ႉ",u"ာ",u"ါ",u"္",u"ၚ",u"့",u"႔",u"႕",u"း"],
        "after":[]},
"fW":{"ျ([ကဃဆဏတထဘယလသဟ])":"ၾ$1"},
"fV":{},
"fi":"(Zawgyi,Zawgyi1...)",
"css":["Zawgyi-One",u"Zawgyi1"]}

WwinBurmese = {
"cc":"Wwin_Burmese",
"cO":0,
"eE":True,
"cv":14,
"gb":[117,99,42,
  67,105,112,113,90,0,110,201,88,200,202,37,119,120,39,34,101,121,122,65,98,114,
  44,38,118,48,111,91,86,116,85,81,126,402,0,80,62,8230,198,0,0,0,0,8222,0,339,
  206,78,60,77,96,8240,352,0,82,0,0,8224,0,0,0,0,0,48,49,50,51,52,53,54,55,56,
  57,0,97,0,100,68,4095,102,70,109,103,58,0,74,0,71,36,0,72,59,0,115,115,0,106,
  61,43,125,106,61,43,125,0,104,64,338,0,47,63,0,69,182,207,79,123,46,0,92,73,
  89,84,0,107,108,75,76,95,170,83,234,0,245,244,246,248,0,0,124,35,233,0,241,
  240,60,62,0,0,0,0,94,33,79,0,8218,0,193,0,0,0,0,0,0,0,0,0,0,195,196,197,0,190,
  191,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,204,205,0,0,0,0,0,0,87,710,
  0,0,353,0,187,167,181,0,0,161,162,180,0,732,178,0,0],
"fL":33,
"fJ":8240,
"gf": [[85,u"け　"], [81,u"け、"], [126,u"け。"], [402,u"け〃"], [80,u"け々"], [62,u"け〆"],
  [8230,u"け〇"],
 [198,u"け〈"],[339,u"け』"],[206,u"け【"],[78,u"け】"],[60,u"け〒"],[77,u"け〓"],[96,u"け〔"],[8240
,u"け〕"],[352,u"け〖"],[82,u"け〘"],[8224,u"け〛"],[70,u"〄げけ"],[58,u"さげ"],[36,u"ゅず"],[115,
u"だ"],[61,u"っ"],[43,u"っ"],[125,u"っ"],[106,u"っ"],[61,u"っ"],[43,u"っ"],[125,u"っ"],[64,u"ぬ"
],[338,u"ぬ"],[69,u"〓"],[182,u"〚"],[207,u"《け》"],[75,u"み"],[76,u"む"],[95,u"ゅみ"],[170,
u"ゅむ"],[234,u"ゅ"],[245,u"〄げけく"],[244,u"〄げけぐ"],[246,u"くそ"],[248,u"〄げけそ"],[124,u"ずだ"],[
35,u"ゅだ"],[233,u"ゅずだ"],[241,u"っみ"],[240,u"っみ"],[60,u"っず"],[62,u"っず"],[33,u"〉"],[79,
u"ぶ"],[195,u"《け《"],[196,u"「け「"],[197,u"」け「"],[190,u"『け「"],[191,u"『〬"],[192,u"『〯"],[
204,u"ぶ〦"],[205,u"ぶ〨"],[87,u"け』"],[710,u"け【"]],
"fF":{},
"fi":"(Wwin...)",
"css":["Wwin_Burmese"]
}


def printHex(datalist):
  index = 4096
  for i in datalist:
    print "%04x %04x  %s" % (index, i, unichr(i))
    index += 1    

def printHexList(inlist):
  for i in inlist:
    print ' gf %d %04x %s' % (i[0], i[0], i[1]) ,
    for j in i[1]:
      print ' %04x' % ord(j),
    print
    
    
# Investigate data
def main(argv=None):

  print 'WwinBurmese:'
  printHex(WwinBurmese['gb'])
  printHexList(WwinBurmese['gf'])

  print '\n----------------'
  print 'Zawgyi:'
  printHex(Zawgyi['gb'])
  printHexList(Zawgyi['gf'])
 

if __name__ == "__main__":
    sys.exit(main(sys.argv[1:]))

a951cb7f071fe01d61856d1681f86577795e21e5
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import logging
import re
import sys

Zawgyi = {
"cc":"Zawgyi-One",
"cO":1,
"eE":True,
"cv":10,
"gb":[4096,4097,4098,4099,4100,4101,4102,4103,4104,4106,4107,4108,4109,4110,4111,4112,4113,4114,
4115,4116,4117,4118,4119,4120,4121,4122,4123,4124,4125,4126,4127,4128,4129,
4192,4193,4194,4195,0,4197,4198,4200,4201,0,4204,4205,0,0,4208,4209,4211,4213
,4214,4215,4216,4217,4218,4219,4220,0,0,4229,0,0,0,0,0,4160,4161,4162,4163,
4164,4165,4166,4167,4168,4169,0,4145,0,4141,4142,4095,4153,4196,4140,4139,
4186,0,4146,0,4156,4234,0,4150,4152,0,4154,4221,0,4155,4222,4223,4224,4225,
4226,4227,4228,0,4151,4244,4245,0,4170,4171,0,4239,4240,4242,4133,4135,4175,0
,4230,4173,4172,4132,0,4143,4144,4147,4148,4232,4233,4157,4231,0,4235,4236,
4238,4237,0,0,0,0,0,0,0,0,0,0,0,4137,4138,0,4105,4203,4202,4134,0,4174,4131,0
,0,0,0,0,0,0,0,0,0,4247,4206,4207,0,4241,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,4246,0,0,0,4199,4210,4212,4243,0,43,45,0,47,0,40,41,91,93,63,
0,34,34,39,39,61],
"fL":34,
"fJ":4247,
"gf":[[4104,u"々だ"],[4192,u"け　"],[4193,u"け、"],
  [4194,u"け。"],[4195,u"け〃"],[4197,u"け々"],[4198,u"け〆"],[4200,u"け〇"],[4201,u"け〈"],[
4204,u"け《"],[4205,u"け》"],[4208,u"け『"],[4209,u"け』"],[4211,u"け【"],[4213,u"け】"],[4214,
u"け〒"],[4215,u"け〓"],[4216,u"け〔"],[4217,u"け〕"],[4218,u"け〖"],[4219,u"け〗"],[4220,u"け〘"]
,[4229,u"け〛"],[4196,u"〄げけ"],[4186,u"さげ"],[4234,u"ゅず"],[4221,u"だ"],[4222,u"っ"],[4223
,u"っ"],[4224,u"っ"],[4225,u"っ"],[4226,u"っ"],[4227,u"っ"],[4228,u"っ"],[4244,u"ぬ"],[4245
,u"ぬ"],[4239,u"〓"],[4240,u"〚"],[4242,u"《け》"],[4147,u"み"],[4148,u"む"],[4232,u"ゅみ"],[
4233,u"ゅむ"],[4231,u"ゅ"],[4235,u"〄げけく"],[4236,u"〄げけぐ"],[4238,u"くそ"],[4237,u"〄げけそ"],[
4137,u"つ〝"],[4138,u"きつ〝ごげ"],[4203,u"〉"],[4202,u"ぶ"],[4134,u"ぶぐ"],[4174,u"ゞ〄げぞ"],[
4247,u"《け《"],[4206,u"「け「"],[4207,u"」け「"],[4241,u"『け「"],[4199,u"け〆"],[4210,u"け』"],[
4212,u"け【"],[4243,u"け〗"]],
"fF":{"4<":"ဝ",u"4I":"၍",u"4Y":"၌",u"4T":"ဤ",u"4K":"ႉ",
"7L":"ႋ",u"7D":"ႌ",u"3d":"ႎ",u"3l":"ႍ",u"4R":"ြၽ",u"4Q":"ွ်",u"4W":"ႊၽ",u"35":"ဩ",
"75":"ဪ",u"39":"ဦ",u"34":"၎",u"74":"ဣ"},
"order":{
  "bE":{"fH":[],u"fT":[]},
  "d7":[],
  "ew":["ွ",u"ႇ",u"ြ",u"ႊ",u"်",u"ၽ",u"ၤ",u"ိ",u"ီ",u"ံ",u"ႋ",u"ႌ",
        u"ႍ",u"ႎ",u"ဲ",u"ု",u"ဳ",u"ူ",
        u"ဴ",u"ႈ",u"ႉ",u"ာ",u"ါ",u"္",u"ၚ",u"့",u"႔",u"႕",u"း"],
        "after":[]},
"fW":{"ျ([ကဃဆဏတထဘယလသဟ])":"ၾ$1"},
"fV":{},
"fi":"(Zawgyi,Zawgyi1...)",
"css":["Zawgyi-One",u"Zawgyi1"]}

WwinBurmese = {
"cc":"Wwin_Burmese",
"cO":0,
"eE":True,
"cv":14,
"gb":[117,99,42,
  67,105,112,113,90,0,110,201,88,200,202,37,119,120,39,34,101,121,122,65,98,114,
  44,38,118,48,111,91,86,116,85,81,126,402,0,80,62,8230,198,0,0,0,0,8222,0,339,
  206,78,60,77,96,8240,352,0,82,0,0,8224,0,0,0,0,0,48,49,50,51,52,53,54,55,56,
  57,0,97,0,100,68,4095,102,70,109,103,58,0,74,0,71,36,0,72,59,0,115,115,0,106,
  61,43,125,106,61,43,125,0,104,64,338,0,47,63,0,69,182,207,79,123,46,0,92,73,
  89,84,0,107,108,75,76,95,170,83,234,0,245,244,246,248,0,0,124,35,233,0,241,
  240,60,62,0,0,0,0,94,33,79,0,8218,0,193,0,0,0,0,0,0,0,0,0,0,195,196,197,0,190,
  191,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,204,205,0,0,0,0,0,0,87,710,
  0,0,353,0,187,167,181,0,0,161,162,180,0,732,178,0,0],
"fL":33,
"fJ":8240,
"gf": [[85,u"け　"], [81,u"け、"], [126,u"け。"], [402,u"け〃"], [80,u"け々"], [62,u"け〆"],
  [8230,u"け〇"],
 [198,u"け〈"],[339,u"け』"],[206,u"け【"],[78,u"け】"],[60,u"け〒"],[77,u"け〓"],[96,u"け〔"],[8240
,u"け〕"],[352,u"け〖"],[82,u"け〘"],[8224,u"け〛"],[70,u"〄げけ"],[58,u"さげ"],[36,u"ゅず"],[115,
u"だ"],[61,u"っ"],[43,u"っ"],[125,u"っ"],[106,u"っ"],[61,u"っ"],[43,u"っ"],[125,u"っ"],[64,u"ぬ"
],[338,u"ぬ"],[69,u"〓"],[182,u"〚"],[207,u"《け》"],[75,u"み"],[76,u"む"],[95,u"ゅみ"],[170,
u"ゅむ"],[234,u"ゅ"],[245,u"〄げけく"],[244,u"〄げけぐ"],[246,u"くそ"],[248,u"〄げけそ"],[124,u"ずだ"],[
35,u"ゅだ"],[233,u"ゅずだ"],[241,u"っみ"],[240,u"っみ"],[60,u"っず"],[62,u"っず"],[33,u"〉"],[79,
u"ぶ"],[195,u"《け《"],[196,u"「け「"],[197,u"」け「"],[190,u"『け「"],[191,u"『〬"],[192,u"『〯"],[
204,u"ぶ〦"],[205,u"ぶ〨"],[87,u"け』"],[710,u"け【"]],
"fF":{},
"fi":"(Wwin...)",
"css":["Wwin_Burmese"]
}


def printHex(datalist):
  index = 4096
  for i in datalist:
    print "%04x %04x  %s" % (index, i, unichr(i))
    index += 1    

def printHexList(inlist):
  for i in inlist:
    print ' gf %d %04x %s' % (i[0], i[0], i[1]) ,
    for j in i[1]:
      print ' %04x' % ord(j),
    print
    
    
# Investigate data
def main(argv=None):

  print 'WwinBurmese:'
  printHex(WwinBurmese['gb'])
  printHexList(WwinBurmese['gf'])

  print '\n----------------'
  print 'Zawgyi:'
  printHex(Zawgyi['gb'])
  printHexList(Zawgyi['gf'])
 

if __name__ == "__main__":
    sys.exit(main(sys.argv[1:]))
