10 stylesheet => [qw'light circus dark red'],
11 data => [qw'apl.inc.pl'],
14 .target tbody td:nth-child(4) ~ td,
15 :target tbody td:nth-child(4) ~ td {
18 .target tbody td[title]::after,
19 :target tbody td[title]::after {
20 content: ': ' attr(title);
28 use Shiar_Sheet::FormatChar;
29 my $glyphs = Shiar_Sheet::FormatChar->new;
31 my @ops = do 'apl.inc.pl';
32 @ops > 1 or die "cannot open operator include: $@\n";
38 <table class="mapped" onclick="this.classList.toggle('target')">
39 <col><colgroup span=3><colgroup span=2>
45 <td title="unified/Dyalog key combination">⎈
46 <td><a href="/digraphs" title="digraph">di</a><td>html
47 <td title="…B">monadic
48 <td title="A…B">dyadic
58 my ($chr, $dyad, $monad) = @{$op};
59 ($chr, my $altkey) = split /\n/, $chr;
60 my $codepoint = ord $chr;
61 my $ascii = $codepoint <= 127;
62 my $info = $glyphs->glyph_info($codepoint);
63 my ($class, $name, $mnem, $entity, $string) = @{$info};
65 printf '<tr><th title="%2$s">%s', $chr, EscapeHTML($name || '?'), $class;
66 printf '<td class="%s">%s', @{$_} for (
67 [$ascii ? 'l5' : defined $altkey ? 'l4' : 'l3', $altkey],
68 [defined $mnem ? $class =~ /\bu-di\b/ ? 'l4' : 'l3' : $ascii ? 'l5' : 'l1',
69 EscapeHTML($mnem) // sprintf('%s%0*X', $codepoint < 256 ? (x => 2) : (u => 4), $codepoint)],
70 [defined $entity ? 'l4' : $ascii ? 'l5' : 'l1', $entity // "#$codepoint"],
73 defined $_ ? '<td%s>%s' : '<td class=Xi>',
74 map { !!$_->[1] && qq( title="$_->[1]"), $_->[0] }
75 [map { EscapeHTML($_) } split /\n/, $_, 2]
86 <table class="glyphs"><tr>
87 <td class="X l5">unicode 1.1
88 <td class="X l4">20th century
89 <td class="X l3">in 6.0 (2010)
90 <td class="X l2">recent assignments
91 <td class="X l1">proposed
92 <td class="ex">irregular