sheet cheat reference overview keyboard altgr option
'],
image => "$dirbase/thumb/ibm-m.jpg",
- stylesheet => [qw( light dark circus mono red )],
data => ["$dirbase/index.inc.plp", "$indexfile.inc.pl"],
raw => <<'.',
<style>
:>
<h1>Extended keyboards</h1>
-<p>Overview of available key layouts with AltGr or similar modifier keys.</p>
+<p>Overview of available key layouts with AltGr or similar modifier keys.
+Also see <a href="/digraphs">digraphs</a> for compose key combinations.
+</p>
<:
my $idx = Data($indexfile);
print "<th>$_" for @sample;
say '</tr></thead>';
}
-my $most = max(map { sum values %{ $_->{inventory}{''} } } %{$idx}{@incs});
+my $most = max(
+ map { sum values %{$_} } map { $_->{inventory}{''} } @{$idx}{@incs}
+);
for my $inc (@incs) {
my $table = $idx->{$inc};
print @sample ? '<tr><th>' : '<figure>';
my $keydata = Data("$dirbase/$inc.eng");
Shiar_Sheet::Keyboard->new($keydata)
}) {
- $keys->print_key('', $_, ($keys->{def}{''}{$_} // ['ni']) =~ s/ mode\S*//r)
- for @sample;
+ for my $c (@sample) {
+ my $def = $keys->{def}{''}{$c} // [];
+ $def->[0] //= 'ni';
+ $def->[0] =~ s/ mode\S*//;
+ $keys->print_key('', $c, $def);
+ }
}
say '</tr>';
}