git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
charset: parent in subtitle of partial tables
[sheet.git]
/
charset.plp
diff --git
a/charset.plp
b/charset.plp
index 734d227a0131104c025143e9cb9fd3e299480044..ebcbc32f5a1b2c061bc7232b85178150e323d8af 100644
(file)
--- 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 ($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);
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 '<div class="section"><table class="glyphs%s">', !$row->{cell} && ' charmap';
for my $row (@request) {
printf '<div class="section"><table class="glyphs%s">', !$row->{cell} && ' charmap';
- printf '<caption>%s</caption>', $row->{set};
+ my $title = $row->{set};
+ $title .= " <aside>($_)</aside>" for $row->{setnote} // ();
+ printf '<caption>%s</caption>', $title;
print '<col>' x 17;
for my $section (qw{thead}) {
print "<$section><tr><th>↱";
print '<col>' x 17;
for my $section (qw{thead}) {
print "<$section><tr><th>↱";