X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/f63a57e71a3aed6fe5e80ca979186e3bd6c7eb6b..b86bbb8de10c94737088dbc8b3c8c2fd9d7d0770:/mplayer.plp?ds=sidebyside
diff --git a/mplayer.plp b/mplayer.plp
index 46dcaa3..f7b4445 100644
--- a/mplayer.plp
+++ b/mplayer.plp
@@ -1,104 +1,31 @@
<(common.inc.plp)><:
- our $VERSION = 'v1.0';
- use Shiar_Sheet::KeySigns qw(%sign);
-
- $header{content_type} = "text/html; charset=$sign{charset}";
-
-:>
-
-
-
-
-mplayer cheat sheet
-
-
-<:= stylesheet(qw'light dark circus mono red terse') :>
-
-<:
- our $showkeys = exists $get{keys} && $get{keys} ne '0';
- print "\n".''
- unless $showkeys;
- print "\n".''
- if $showkeys and $get{keys} eq 'ghost';
-:>
-
-
-
-
-MPlayer cheat sheet
-
-index (default)
-
-
-
--
-
-
-
-<:
-use Shiar_Sheet::Keyboard;
-my $keys = Shiar_Sheet::Keyboard->new({do 'mplayer.inc.pl'});
+my $mode = $Request eq 'mpv' ? $Request : 'MPlayer';
+my $include = "\L$mode.eng";
+
+Html({
+ title => "\L$mode\E cheat sheet",
+ version => '1.2',
+ description => [
+ "Keyboard cheat sheet for the $mode media player,",
+ "overviewing the default controls."
+ ],
+ keywords => [qw'
+ mpv mplayer mplayer2 media player video audio
+ sheet cheat reference overview control shortkey keyboard
+ '],
+ stylesheet => [qw( light dark circus mono red )],
+ keys => 1,
+ data => ["$include.inc.pl"],
+});
+
+say "$mode cheat sheet
";
+say '';
+
+use Shiar_Sheet::Keyboard 2;
+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]);
-:>
-
-
-
-
-
-
-
- - osd
-
- Print information or change display.
-
- subtitles
-
- Alter subtitle selection and settings.
-
- video
-
- Video output adjustment.
-
- audio
-
- Sound (track) configuration.
-
- playback
-
- Playback control.
-
- general
-
- Other MPlayer features.
-
-
-
-
-
- - key<:= $sign{arg} :>
-
- Commands with a dot need an argument afterwards.
-
- optional
-
- Some features depend on setup and/or parameters.
-
-
-
- - keyboard map is
- <:= $get{map} ? 'set to ' : '' :><:= $keys->{map} :>
-
- ascii mode is
- <:= defined $sign{-ascii} && 'forced ' :><:=
- $sign{-ascii} ? 'on' : 'off' :>
-
- keys are
- <:= $showkeys ? 'always shown' : 'hidden if unassigned' :><:=
- !exists $get{keys} && ' by default' :>
-
- default style is
- <:= defined $get{style} && 'set to ' :><:= $style :>
-
-
-
-
-
+$keys->print_legends(\%get);
-