X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/b8cac6e3a9b47f1a2ae9dfc7bfc53df8fec1d004..0521f436ed93fcfee1073656b425522cef34b204:/rfc1345convert diff --git a/rfc1345convert b/rfc1345convert index d33377f..c5a3e80 100644 --- a/rfc1345convert +++ b/rfc1345convert @@ -90,7 +90,10 @@ for (keys %di) { # output perl code of hash # (assume no backslashes or curlies, so we can just q{} w/o escaping) -print "{\n"; +print "+{\n"; +printf '(map {$_=>0} qw{%s}),'."\n", join(' ', + map { substr($_, 1, 1).substr($_, 0, 1) } sort keys %di +); printf "q{%s}=>[%s],\n", $_, join(',', $di{$_}, # glyph code point $info{$_} # optional additional arguments