git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
keyboard/altgr/index: label modes by description character.
[sheet.git]
/
keyboard
/
altgr
/
index.inc.plp
diff --git
a/keyboard/altgr/index.inc.plp
b/keyboard/altgr/index.inc.plp
index e9179c63d7234055f12890e4817595acbc5388ac..fd36e60d5cf1e3f8ff9c49bc7efdedcb47074dc9 100644
(file)
--- a/
keyboard/altgr/index.inc.plp
+++ b/
keyboard/altgr/index.inc.plp
@@
-8,7
+8,7
@@
my $indexfile = "$dirbase/index";
Html({
title => "altgr keyboard cheat sheets",
Html({
title => "altgr keyboard cheat sheets",
- version => '1.
2
',
+ version => '1.
3
',
description => [
"Overview of alternate keyboard modes,",
"offering extended Unicode characters if a modifier key",
description => [
"Overview of alternate keyboard modes,",
"offering extended Unicode characters if a modifier key",
@@
-157,7
+157,7
@@
for my $inc (@incs) {
print '</a>', "\n\t";
for my $mode ($table->{mode} ? sort keys %{ $table->{mode} } : '') {
print '<span class=graph>';
print '</a>', "\n\t";
for my $mode ($table->{mode} ? sort keys %{ $table->{mode} } : '') {
print '<span class=graph>';
- printf
'<label>%s</label>', s/\s.*//r for $table->{def}{''}{$mode}[1]
|| ();
+ printf
"<label>%s</label>", m/^(\S*)/ for $mode && $table->{mode}{$mode}
|| ();
for my $g (sort keys %{ $table->{inventory}{$mode} }) {
printf '<span class="%s" style="width:%.0f%%" title="%3$d %4$s"> %s</span>',
$g, $_/$most*100, $_,
for my $g (sort keys %{ $table->{inventory}{$mode} }) {
printf '<span class="%s" style="width:%.0f%%" title="%3$d %4$s"> %s</span>',
$g, $_/$most*100, $_,