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: map classic ti-8x calculators
[sheet.git]
/
charset.plp
diff --git
a/charset.plp
b/charset.plp
index ccbf145cf6ce28e674fa2e440209321309011089..9ab15f1a20764ac55bc1994a01abcf6a1249d266 100644
(file)
--- a/
charset.plp
+++ b/
charset.plp
@@
-98,6
+98,7
@@
sub tabinput {
state $visible = {'' => 1}; # all present tables
my %row = (offset => 0, cols => 16);
state $visible = {'' => 1}; # all present tables
my %row = (offset => 0, cols => 16);
+ $row{$_} = $charset->{$_} for qw( note ); # copy metadata
if (not defined $params) {
my @parents = @{ $charset->{inherit} || [] };
if (not defined $params) {
my @parents = @{ $charset->{inherit} || [] };
@@
-132,7
+133,7
@@
sub tabinput {
# extend earlier range
my $skip = int(($row{endpoint} || $row{startpoint}) / $row{cols});
for ($skip + 1 .. (hex($+{start}) / $row{cols}) - 1) {
# extend earlier range
my $skip = int(($row{endpoint} || $row{startpoint}) / $row{cols});
for ($skip + 1 .. (hex($+{start}) / $row{cols}) - 1) {
- $row{skip}->{ $_ * $row{cols}
- $row{startpoint}
}++;
+ $row{skip}->{ $_ * $row{cols} }++;
}
}
else {
}
}
else {
@@
-291,8
+292,8
@@
for my $row (@request) {
printf '<div class="section"><table class="glyphs%s">', !$row->{cell} && ' charmap';
my $title = $row->{set};
printf '<div class="section"><table class="glyphs%s">', !$row->{cell} && ' charmap';
my $title = $row->{set};
- $title .= " <aside>(over $_)</aside>"
-
for $row->{parent
} || ();
+ $title .= " <aside>(over $_)</aside>"
for $row->{parent} || ();
+
$title .= " <aside>($_)</aside>" for $row->{note
} || ();
printf '<caption>%s</caption>', $title;
print '<col>' x ($cols + 1);
for my $section (qw{thead}) {
printf '<caption>%s</caption>', $title;
print '<col>' x ($cols + 1);
for my $section (qw{thead}) {
@@
-303,13
+304,13
@@
for my $row (@request) {
print '<tbody>';
while ($offset <= $row->{endpoint} * $colsize) {
print '<tbody>';
while ($offset <= $row->{endpoint} * $colsize) {
- if ($row->{skip}->{$offset}) {
+ if ($row->{skip}->{$offset
+ $row->{offset}
}) {
$offset += $cols * $colsize;
next;
}
print '<tr><th>';
$offset += $cols * $colsize;
next;
}
print '<tr><th>';
- if (defined $row->{skip}->{$offset}) {
+ if (defined $row->{skip}->{$offset
+ $row->{offset}
}) {
print '⋮';
}
else {
print '⋮';
}
else {
@@
-342,14
+343,14
@@
for my $row (@request) {
$cp == ord $glyph ? 'l4' :
$row->{parent} && $glyph eq
Encode::decode($row->{parent}, pack 'C', $cp) ? 'l3' :
$cp == ord $glyph ? 'l4' :
$row->{parent} && $glyph eq
Encode::decode($row->{parent}, pack 'C', $cp) ? 'l3' :
- !
$class
? undef :
+ !
defined $cell
? undef :
$visible->{$glyph} ? 'l2' :
'l1'
);
$visible->{$glyph}++;
}
$visible->{$glyph} ? 'l2' :
'l1'
);
$visible->{$glyph}++;
}
- print '<td title="%s"', $name;
+ print
f
'<td title="%s"', $name;
say $class ? sprintf(' class="X %s">%s', $class, $cell) : '>';
}
continue {
say $class ? sprintf(' class="X %s">%s', $class, $cell) : '>';
}
continue {