\n};
- while (my ($mode, $modekeys) = each %keys) {
- for (my $case = 0; $case <= $#$keyrow; $case++) {
- my $keycase = $keyrow->[$case];
- @$keycase or next;
-
- printf(qq{\t
%s
\n}, # XXX insert here to fix msie<=6
- $mode eq '' ? '' : sprintf(
- ' class="%s"', "mode mode" . escapeclass($mode)
- ),
- sprintf('%s: %s',
- $modekeys->{desc} || "mode $mode",
- "$rowdesc[$row] row $casedesc[$case]"
- )
- );
- my $modeclass = "keys";
- $modeclass .= " lead" if defined $modekeys->{lead}; # leading command key shown
- $modeclass .= " $casedesc[$case]" if defined $casedesc[$case];
- print qq{\t\t
\n};
-
- for my $key (@$keycase) {
- my $keyinfo = $modekeys->{$key};
- $keyinfo = [ $sign{alias}.$keyinfo, keyunalias($keyinfo)->[1] . " alias" ]
- if defined $keyinfo and not ref $keyinfo; # alias
- my ($desc, $flags, $mnem) = @$keyinfo if defined $keyinfo;
- defined $desc or $flags = $key eq '^0' ? "ni" : "no";
-
- my $keytxt = $modekeys->{lead} . Entity($key) if $key ne '^0';
- $keytxt .= $sign{arg} while $flags =~ s/ ?\barg\b//; # argument
- $keytxt .= "$sign{motion}" if $flags =~ s/ ?\bargm\b//; # motion argument
- $keytxt =~ s{\^(?=.)}{^}; # element around ctrl-identifier
- my $onclick = $flags =~ s/ ?\bmode(\S*)// && defined $keys{$1} && sprintf(
- ' onclick="setmode(%s)"',
- $1 eq '' ? '' : sprintf("'mode%s'", escapeclass($1))
- );
- my $keyhint = defined($mnem) && qq{ title="$mnem"};
-
- print qq{\t\t
$keytxt};
- print ' ', $desc if defined $desc;
- print "\n";
- } # key
-
- print qq{\t\t
\n};
- } # case
-
- } # mode
- print qq{\t
\n};
-} # row
+
+Through the miracle of formatting, design, abbreviation, compression, and Perl,
+the following topics have been condensed into single pages of reference.
+
+Originally created by Mischa Poslawsky,
+but you're free to use, print, alter, and redistribute under the AGPL license.
+