X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/0ee05b2684ef70aa8ad72f4cae57a57bd972d45b..c2e01e0ac91c61de69158113d2ab59f6831b2941:/scripts/make-unidata diff --git a/scripts/make-unidata b/scripts/make-unidata index 009ae19..9fa0dec 100755 --- a/scripts/make-unidata +++ b/scripts/make-unidata @@ -59,7 +59,13 @@ sub key { # Size of a subtable # # This can be varied to trade off the number of subtables against their size. -our $modulus = 128; +# 16 gave the smallest results last time I checked (on a Mac with a 32-bit +# build). +our $modulus = 16; + +if(@ARGV) { + $modulus = shift; +} # Where to break the table. There is a huge empty section of the Unicode # code space and we deal with this by simply leaving it out of the table. @@ -523,6 +529,7 @@ out("};\n"); close STDOUT or die "unidata.c: $!\n"; +printf STDERR "modulus=%d\n", $modulus; printf STDERR "max=%04X\n", $max; print STDERR "subtables=$subtablecounter, subtablessaved=$subtablessaved\n"; print STDERR "decompsaved=$decompsaved cfsaved=$cfsaved\n";