From 504c0879e49d9ffb9575ad6549c21d3990dc27d0 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 27 Mar 2017 23:09:03 +0200 Subject: [PATCH 1/1] charset: parent in subtitle of partial tables Clarify relations in default preset. --- base.css | 6 ++++++ charset.plp | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/base.css b/base.css index 50b92d8..3441707 100644 --- a/base.css +++ b/base.css @@ -28,6 +28,12 @@ h2, caption { caption { margin: 1ex; } +caption aside { + position: absolute; + margin-left: 1ex; + font-weight: normal; + display: inline; +} hr { clear: both; diff --git a/charset.plp b/charset.plp index 734d227..ebcbc32 100644 --- a/charset.plp +++ b/charset.plp @@ -51,6 +51,10 @@ my @request = map { if ($input =~ s/-$//) { $endpoint = $row{offset} ? $row{offset} < 160 ? 159 : 191 : 127; } + if ($row{offset}) { + $row{setnote} = 'over cp437' if $input eq 'cp850'; + $row{setnote} = 'over iso-8859-1' if $input =~ /^iso-8859-|^cp125/; + } if ($input =~ /^U([0-9a-f]+)(?:-([0-9a-f]+))?/) { my $start = hex($1) << ($2 ? 4 : 8); @@ -145,7 +149,9 @@ sub range_cell { for my $row (@request) { printf '
', !$row->{cell} && ' charmap'; - printf '', $row->{set}; + my $title = $row->{set}; + $title .= " " for $row->{setnote} // (); + printf '', $title; print '' x 17; for my $section (qw{thead}) { print "<$section>
%s%s
↱"; -- 2.30.0