use Shiar_Sheet::FormatChar;
my $glyphs = Shiar_Sheet::FormatChar->new;
-
-my @ops = do 'apl.inc.pl';
-@ops > 1 or die "cannot open operator include: $@\n";
+my $ops = Data('apl');
:>
<h1>APL Symbols</h1>
<tbody>
<:
-for my $op (@ops) {
+for my $op (@{$ops}) {
$op or do {
say '<tbody>';
next;
[defined $entity ? 'l4' : $ascii ? 'l5' : 'l1', $entity // "#$codepoint"],
);
printf(
- defined $_ ? '<td%s>%s' : '<td class=Xi>',
- map { !!$_->[1] && qq( title="$_->[1]"), $_->[0] }
- [map { EscapeHTML($_) } split /\n/, $_, 2]
+ '<td%s>%s',
+ map { defined ? (!!$_->[1] && qq( title="$_->[1]"), $_->[0]) : (' class=Xi', '') }
+ $_ && [map { EscapeHTML($_) } split /\n/, $_, 2]
) for $monad, $dyad;
say '</td>';
}
:></table>
</div>
-<hr>
-
-<div class="legend">
- <table class="glyphs"><tr>
- <td class="X l5">unicode 1.1
- <td class="X l4">20th century
- <td class="X l3">in 6.0 (2010)
- <td class="X l2">recent assignments
- <td class="X l1">proposed
- <td class="ex">irregular
- </table>
-</div>
+<:
+say for '<hr/>', $glyphs->legend;