From 4e9a4a380d4bc5fc523ef5db79ace506934b9846 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 3 Mar 2015 23:44:28 +0100 Subject: [PATCH] apl: describe and group symbol columns --- apl.plp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apl.plp b/apl.plp index 44adb74..6fc7cad 100644 --- a/apl.plp +++ b/apl.plp @@ -22,6 +22,7 @@ my @ops = do 'apl.inc.pl';
+ - <: for my $op (@ops) { - my ($chr, $monad, $dyad) = @{$op}; + 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, $html, $string) = @{$info}; - printf '
op input @@ -29,21 +30,20 @@ my @ops = do 'apl.inc.pl';
⎈ dihtml - monadic - dyadic + monadic + dyadic
%s'."\n", $chr, EscapeHTML($name || '?'), $class; + printf '
%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', @@ -54,6 +54,7 @@ for my $op (@ops) { defined $_ ? '%s' : '', map { EscapeHTML($_) } split /\n/, $_, 2 ) for $monad, $dyad; + print "\n"; } :>
-- 2.30.0