<(common.inc.plp)><: Html({ title => 'APL', version => '1.0', description => [ ], keywords => [qw' '], stylesheet => [qw'light circus dark red'], data => [qw'apl.inc.pl'], raw => <<'EOT', 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"; :>

APL Symbols

<: for my $op (@ops) { $op or do { say ''; next; }; my ($chr, $dyad, $monad) = @{$op}; ($chr, my $altkey) = split /\n/, $chr; my $codepoint = ord $chr; my $ascii = $codepoint <= 127; my $info = $glyphs->glyph_info($codepoint); my ($class, $name, $mnem, $entity, $string) = @{$info}; printf ''; } :>
op input meaning
dihtml monadic dyadic
%s', $chr, EscapeHTML($name || '?'), $class; printf '%s', @{$_} for ( [$ascii ? 'l5' : defined $altkey ? 'l4' : 'l3', $altkey], [defined $mnem ? $class =~ /\bu-di\b/ ? 'l4' : 'l3' : $ascii ? 'l5' : 'l1', EscapeHTML($mnem) // sprintf('%s%0*X', $codepoint < 256 ? (x => 2) : (u => 4), $codepoint)], [defined $entity ? 'l4' : $ascii ? 'l5' : 'l1', $entity // "#$codepoint"], ); printf( defined $_ ? '%s' : '', map { !!$_->[1] && qq( title="$_->[1]"), $_->[0] } [map { EscapeHTML($_) } split /\n/, $_, 2] ) for $monad, $dyad; say '
<: say for '
', $glyphs->legend;