689ee84d69486d42f724fff4c35a10e3ca122f03
[sheet.git] / mplayer.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'mplayer cheat sheet',
5         version => 'v1.1',
6         description => [
7                 "Keyboard cheat sheet for the MPlayer media player,",
8                 "overviewing the default controls."
9         ],
10         keywords => [qw'
11                 mplayer video media sheet cheat reference overview control shortkey keyboard
12         '],
13         charset => $sign{charset},
14         stylesheet => [qw'light dark circus mono red terse'],
15         keys => 1,
16 });
17
18 :>
19 <h1>MPlayer cheat sheet</h1>
20
21 <h2>index (default)</h2>
22
23 <ul id="rows">
24
25 <:
26 use Shiar_Sheet::Keyboard 2;
27 my $info = do 'mplayer.eng.inc.pl' or die $@;
28 $info->{def} = do 'mplayer.inc.pl';
29 my $keys = Shiar_Sheet::Keyboard->new($info);
30 $keys->map($get{map}) or undef $get{map};
31 $keys->print_rows($get{rows}, [1,0]);
32 :>
33 </ul>
34
35 <hr>
36
37 <div class="help">
38         <div class="left">
39                 <dl class="legend legend-types">
40                 <dt class="ci">osd
41                         <dd>Print information or change display.
42                 <dt class="pm">subtitles
43                         <dd>Alter subtitle selection and settings.
44                 <dt class="co">video
45                         <dd>Video output adjustment.
46                 <dt class="mi">audio
47                         <dd>Sound (track) configuration.
48                 <dt class="mo">playback
49                         <dd>Playback control.
50                 <dt class="me">general
51                         <dd>Other MPlayer features.
52                 </dl>
53         </div>
54
55         <div class="right">
56                 <dl class="legend legend-options">
57                 <dt>key<:= $sign{arg} :>
58                         <dd>Commands with a dot need an argument afterwards.
59                 <dt class="ext">optional
60                         <dd>Some features depend on setup and/or parameters.
61                 </dl>
62
63                 <ul class="legend legend-set">
64                 <li>keyboard <strong>map</strong> is
65                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
66                 <li><strong>ascii</strong> mode is
67                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
68                                 $sign{-ascii} ? 'on' : 'off' :></em>
69                 <li><strong>keys</strong> are
70                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
71                                 !exists $get{keys} && ' by default' :>
72                 <li>default <strong>style</strong> is
73                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
74                 </ul>
75         </div>
76 </div>
77