mplayer: indicate mpv subpage in title
[sheet.git] / mplayer.plp
1 <(common.inc.plp)><:
2
3 my $mode = $Request eq 'mpv' ? $Request : 'MPlayer';
4 my $include = "\L$mode.eng.inc.pl";
5
6 Html({
7         title => "\L$mode\E cheat sheet",
8         version => '1.1',
9         description => [
10                 "Keyboard cheat sheet for the $mode media player,",
11                 "overviewing the default controls."
12         ],
13         keywords => [qw'
14                 mpv mplayer mplayer2 media player video audio
15                 sheet cheat reference overview control shortkey keyboard
16         '],
17         stylesheet => [qw( light dark circus mono red )],
18         keys => 1,
19         data => [$include],
20 });
21
22 say "<h1>$mode cheat sheet</h1>";
23 say '';
24
25 use Shiar_Sheet::Keyboard 2;
26 my $info = do $include or die $@;
27 my $keys = Shiar_Sheet::Keyboard->new($info);
28 $keys->map($get{map}) or undef $get{map};
29 $keys->print_rows($get{rows}, [1,0]);
30 $keys->print_legends(\%get);
31