vi: append flags of key aliases
[sheet.git] / mplayer.plp
index d868fc92f70a954403568a1cfaf7b63c730bac95..9e97d71837886f00bde14b35f4ded7342e0a9e45 100644 (file)
@@ -1,11 +1,11 @@
 <(common.inc.plp)><:
 
 my $mode = $Request eq 'mpv' ? $Request : 'MPlayer';
-my $include = "\L$mode.eng.inc.pl";
+my $include = "\L$mode.eng";
 
 Html({
        title => "\L$mode\E cheat sheet",
-       version => '1.1',
+       version => '1.2',
        description => [
                "Keyboard cheat sheet for the $mode media player,",
                "overviewing the default controls."
@@ -16,14 +16,14 @@ Html({
        '],
        stylesheet => [qw( light dark circus mono red )],
        keys => 1,
-       data => [$include],
+       data => ["$include.inc.pl"],
 });
 
 say "<h1>$mode cheat sheet</h1>";
 say '';
 
-use Shiar_Sheet::Keyboard 2;
-my $info = do $include or die $@;
+use Shiar_Sheet::Keyboard 2.08;
+my $info = Data($include);
 my $keys = Shiar_Sheet::Keyboard->new($info);
 $keys->map($get{map}) or undef $get{map};
 $keys->print_rows($get{rows}, [1,0]);