X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/2034c72e12562eda33ce53d92cfef2216b6fcf3e..v1.14-7-ge90c9ada43:/mplayer.plp?ds=sidebyside
diff --git a/mplayer.plp b/mplayer.plp
index ef31e6b..f7b4445 100644
--- a/mplayer.plp
+++ b/mplayer.plp
@@ -1,84 +1,31 @@
<(common.inc.plp)><:
+my $mode = $Request eq 'mpv' ? $Request : 'MPlayer';
+my $include = "\L$mode.eng";
+
Html({
- title => 'mplayer cheat sheet',
- version => 'v1.1',
+ title => "\L$mode\E cheat sheet",
+ version => '1.2',
description => [
- "Keyboard cheat sheet for the MPlayer media player,",
+ "Keyboard cheat sheet for the $mode media player,",
"overviewing the default controls."
],
keywords => [qw'
- mplayer video media sheet cheat reference overview control shortkey keyboard
+ mpv mplayer mplayer2 media player video audio
+ sheet cheat reference overview control shortkey keyboard
'],
- charset => $sign{charset},
- stylesheet => [qw'light dark circus mono red terse'],
+ stylesheet => [qw( light dark circus mono red )],
keys => 1,
+ data => ["$include.inc.pl"],
});
-:>
-
MPlayer cheat sheet
-
-index (default)
-
-
-
--
-
-
+say "$mode cheat sheet
";
+say '';
-<:
use Shiar_Sheet::Keyboard 2;
-my $info = do 'mplayer.eng.inc.pl' or die $@;
-$info->{def} = do 'mplayer.inc.pl';
+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);