X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/b22f63ba31441200ca915c64445d5a87d146c327..HEAD:/apl.plp diff --git a/apl.plp b/apl.plp index ba51a11..302a55d 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 die "cannot open operator include: $@\n"; +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,9 +68,9 @@ for my $op (@ops) { [defined $entity ? 'l4' : $ascii ? 'l5' : 'l1', $entity // "#$codepoint"], ); printf( - defined $_ ? '%s' : '', - map { !!$_->[1] && qq( title="$_->[1]"), $_->[0] } - [map { EscapeHTML($_) } split /\n/, $_, 2] + '%s', + map { defined ? (!!$_->[1] && qq( title="$_->[1]"), $_->[0]) : (' class=Xi', '') } + $_ && [map { EscapeHTML($_) } split /\n/, $_, 2] ) for $monad, $dyad; say ''; } @@ -80,16 +78,6 @@ for my $op (@ops) { :> -
- -
- -
unicode 1.1 - 20th century - in 6.0 (2010) - recent assignments - proposed - irregular -
-
+<: +say for '
', $glyphs->legend;