| using namespace ucd; | using namespace ucd; | ||||
| // Unicode Character Data 6.2 | |||||
| static const ucd::category categories_000000[256] = | static const ucd::category categories_000000[256] = | ||||
| { | { | ||||
| /* 00 */ Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, | /* 00 */ Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, |
| import ucd | import ucd | ||||
| ucd_rootdir = sys.argv[1] | ucd_rootdir = sys.argv[1] | ||||
| ucd_version = ucd_rootdir.split('-')[-1] | |||||
| unicode_chars = {} | unicode_chars = {} | ||||
| for data in ucd.parse_ucd_data(ucd_rootdir, 'UnicodeData'): | for data in ucd.parse_ucd_data(ucd_rootdir, 'UnicodeData'): | ||||
| #include <stddef.h> | #include <stddef.h> | ||||
| using namespace ucd; | using namespace ucd; | ||||
| """) | |||||
| // Unicode Character Data %s | |||||
| """ % ucd_version) | |||||
| for codepoints, category, comment in category_sets: | for codepoints, category, comment in category_sets: | ||||
| if not category: | if not category: |