X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/917ba679115b9e3cd7b88f7e5081a1a2503a684e..a317b63cd771060b1adb44b311360d54af8eb25a:/apl.plp?ds=sidebyside
diff --git a/apl.plp b/apl.plp
index 929c424..395cf20 100644
--- a/apl.plp
+++ b/apl.plp
@@ -27,9 +27,7 @@ EOT
use Shiar_Sheet::FormatChar;
my $glyphs = Shiar_Sheet::FormatChar->new;
-
-my @ops = do 'apl.inc.pl';
-@ops > 1 or Abort("cannot open operator include", 500, $@ // $!);
+my $ops = Data('apl');
:>
APL Symbols
@@ -49,7 +47,7 @@ my @ops = do 'apl.inc.pl';
<:
-for my $op (@ops) {
+for my $op (@{$ops}) {
$op or do {
say '';
next;
@@ -70,8 +68,8 @@ for my $op (@ops) {
[defined $entity ? 'l4' : $ascii ? 'l5' : 'l1', $entity // "#$codepoint"],
);
printf(
- defined $_ ? '%s' : ' | ',
- map { !!$_->[1] && qq( title="$_->[1]"), $_->[0] }
+ ' | %s',
+ map { defined ? (!!$_->[1] && qq( title="$_->[1]"), $_->[0]) : (' class=Xi', '') }
[map { EscapeHTML($_) } split /\n/, $_, 2]
) for $monad, $dyad;
say ' | ';