2016-01-16 05:36:58 +00:00
|
|
|
#!/usr/bin/env python
|
2016-10-13 01:23:45 +00:00
|
|
|
# make_unicode_adler.py -- generate baselines for tests
|
2016-01-16 05:36:58 +00:00
|
|
|
# Copyright (C) 2016-present SheetJS
|
|
|
|
|
2016-05-29 23:13:34 +00:00
|
|
|
from zlib import adler32
|
2016-01-16 05:36:58 +00:00
|
|
|
from array import array
|
|
|
|
from sys import argv, stderr, exit
|
|
|
|
from importlib import import_module
|
|
|
|
|
|
|
|
args = argv[1:]
|
|
|
|
|
|
|
|
if len(args) < 1:
|
|
|
|
print >>stderr, "usage: " + argv[0] + " <category>"
|
|
|
|
exit(1)
|
|
|
|
|
|
|
|
uctable = import_module("uctable_" + args[0]).uctable
|
|
|
|
|
|
|
|
for z in uctable:
|
|
|
|
print adler32(array('B', z));
|