git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
apl: group similar operators into distinct table bodies
[sheet.git]
/
apl.plp
diff --git
a/apl.plp
b/apl.plp
index 6fc7cad492dceb490cf09383ac5f295a6debee06..804d80ea9c5c1813f9060cc6acc035aba858fba0 100644
(file)
--- a/
apl.plp
+++ b/
apl.plp
@@
-32,10
+32,15
@@
my @ops = do 'apl.inc.pl';
<td><a href="/digraphs" title="digraph">di</a><td>html
<td title="…B">monadic
<td title="A…B">dyadic
<td><a href="/digraphs" title="digraph">di</a><td>html
<td title="…B">monadic
<td title="A…B">dyadic
-<
/thead
>
+<
tbody
>
<:
for my $op (@ops) {
<:
for my $op (@ops) {
+ $op or do {
+ print "<tbody>\n";
+ next;
+ };
+
my ($chr, $dyad, $monad) = @{$op};
($chr, my $altkey) = split /\n/, $chr;
my $codepoint = ord $chr;
my ($chr, $dyad, $monad) = @{$op};
($chr, my $altkey) = split /\n/, $chr;
my $codepoint = ord $chr;
@@
-51,8
+56,9
@@
for my $op (@ops) {
[defined $html ? 'l4' : $ascii ? 'l5' : 'l1', $html // "#$codepoint"],
);
printf(
[defined $html ? 'l4' : $ascii ? 'l5' : 'l1', $html // "#$codepoint"],
);
printf(
- defined $_ ? '<td title="%2$s">%s' : '<td class="Xi">',
- map { EscapeHTML($_) } split /\n/, $_, 2
+ defined $_ ? '<td%s>%s' : '<td class=Xi>',
+ map { !!$_->[1] && qq( title="$_->[1]"), $_->[0] }
+ [map { EscapeHTML($_) } split /\n/, $_, 2]
) for $monad, $dyad;
print "\n";
}
) for $monad, $dyad;
print "\n";
}