From: Mischa POSLAWSKY Date: Sun, 19 Apr 2009 15:11:48 +0000 (+0000) Subject: charset: add page footer and table headers X-Git-Tag: v1.3~178 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/38dcfca045c69d0e303e8e5a4ca4915202e19970 charset: add page footer and table headers As the page matures, add a common footer and caption shown charsets. --- diff --git a/base.css b/base.css index 989f8be..d36f4df 100644 --- a/base.css +++ b/base.css @@ -27,8 +27,12 @@ h1, h2 { font-size: 200%; margin: 0; } -h2 { +h2, caption { font-size: 125%; + font-weight: bold; +} +caption { + margin: 1ex; } hr { @@ -133,6 +137,10 @@ ul.keys.ctrl li b small { /* meta key indicator */ /* character table */ +li table { + float: left; +} + table.glyphs { border-collapse: collapse; } diff --git a/charset.plp b/charset.plp index fd8d2ad..c83508b 100644 --- a/charset.plp +++ b/charset.plp @@ -30,7 +30,8 @@ use Encode qw(decode); # generate character table(s) # (~16x faster than decoding in loop; # substr strings is twice as fast as splitting to an array) -my @tables = map { decode($_, pack 'C*', 0..255) } 'iso-8859-1', 'cp437'; +my @request = ('iso-8859-1', 'cp437'); +my @tables = map { decode($_, pack 'C*', 0..255) } @request; my $NOCHAR = chr 0xFFFD; for my $cp437 (grep {$request[$_] eq 'cp437'} 0 .. $#request) { @@ -49,19 +50,23 @@ sub quote { return $_; } +print "