git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5ce59b6
)
apl: describe and group symbol columns
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 3 Mar 2015 22:44:28 +0000
(23:44 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 9 Jun 2015 03:43:43 +0000
(
05:43
+0200)
apl.plp
patch
|
blob
|
history
diff --git
a/apl.plp
b/apl.plp
index 44adb74c0e0c722731583bab66422f5c65902df0..6fc7cad492dceb490cf09383ac5f295a6debee06 100644
(file)
--- a/
apl.plp
+++ b/
apl.plp
@@
-22,6
+22,7
@@
my @ops = do 'apl.inc.pl';
<div class="section">
<table class="mapped">
<div class="section">
<table class="mapped">
+ <col><colgroup span=3><colgroup span=2>
<thead><tr>
<td rowspan=2>op
<td colspan=3>input
<thead><tr>
<td rowspan=2>op
<td colspan=3>input
@@
-29,21
+30,20
@@
my @ops = do 'apl.inc.pl';
<tr>
<td title="unified/Dyalog key combination">⎈
<td><a href="/digraphs" title="digraph">di</a><td>html
<tr>
<td title="unified/Dyalog key combination">⎈
<td><a href="/digraphs" title="digraph">di</a><td>html
- <td>monadic
- <td>dyadic
+ <td
title="…B"
>monadic
+ <td
title="A…B"
>dyadic
</thead>
</thead>
-
<:
for my $op (@ops) {
<:
for my $op (@ops) {
- my ($chr, $
monad, $dy
ad) = @{$op};
+ my ($chr, $
dyad, $mon
ad) = @{$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};
($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 '<tr><th title="%2$s">%s'
."\n"
, $chr, EscapeHTML($name || '?'), $class;
+ printf '<tr><th title="%2$s">%s', $chr, EscapeHTML($name || '?'), $class;
printf '<td class="%s">%s', @{$_} for (
[$ascii ? 'l5' : defined $altkey ? 'l4' : 'l3', $altkey],
[defined $mnem ? $class =~ /\bu-di\b/ ? 'l4' : 'l3' : $ascii ? 'l5' : 'l1',
printf '<td class="%s">%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 $_ ? '<td title="%2$s">%s' : '<td class="Xi">',
map { EscapeHTML($_) } split /\n/, $_, 2
) for $monad, $dyad;
defined $_ ? '<td title="%2$s">%s' : '<td class="Xi">',
map { EscapeHTML($_) } split /\n/, $_, 2
) for $monad, $dyad;
+ print "\n";
}
:></table>
}
:></table>