Sha256: 6c754f971c87b9aff73d2826371814750e2f43f5debc2b630704f6a2fefdca9b

Contents?: true

Size: 392 Bytes

Versions: 38

Compression:

Stored size: 392 Bytes

Contents

import re

regex = re.compile('\|-\n\| (\w+)\n\|.+\n\| U\+\w+ \((\d+)\)\n\| (.+)\n')

with open('wikipedia_table.txt') as wiki_table:
    table_text = wiki_table.read()

for ent_name, dec_code, std in regex.findall(table_text):
    uni = list(unichr(int(dec_code)).encode('utf-8'))

    print '"%s", %d,' % (ent_name, len(uni)),
    print "{", ", ".join("0x%02X" % ord(c) for c in uni), "}"

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
hamlit-2.0.1 ext/hamlit/houdini/tools/build_table.py
faml-0.7.0 vendor/houdini/tools/build_table.py
faml-0.6.5 vendor/houdini/tools/build_table.py
faml-0.6.4 vendor/houdini/tools/build_table.py
faml-0.6.3 vendor/houdini/tools/build_table.py
faml-0.6.2 vendor/houdini/tools/build_table.py
faml-0.6.1 vendor/houdini/tools/build_table.py
faml-0.6.0 vendor/houdini/tools/build_table.py
faml-0.5.1 vendor/houdini/tools/build_table.py
faml-0.5.0 vendor/houdini/tools/build_table.py
faml-0.4.2 vendor/houdini/tools/build_table.py
faml-0.4.1 vendor/houdini/tools/build_table.py
faml-0.4.0 vendor/houdini/tools/build_table.py
faml-0.3.6 vendor/houdini/tools/build_table.py
faml-0.3.5 vendor/houdini/tools/build_table.py
faml-0.3.4 vendor/houdini/tools/build_table.py
faml-0.3.3 vendor/houdini/tools/build_table.py
faml-0.3.2 vendor/houdini/tools/build_table.py