unicode: support columns in webkit browsers
[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 <:
24 use Shiar_Sheet::Keyboard 2;
25 my $info = do 'mplayer.eng.inc.pl' or die $@;
26 $info->{def} = do 'mplayer.inc.pl';
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 :>
31
32 <hr>
33
34 <div class="help">
35         <div class="left">
36                 <dl class="legend legend-types">
37                 <dt class="ci">osd
38                         <dd>Print information or change display.
39                 <dt class="pm">subtitles
40                         <dd>Alter subtitle selection and settings.
41                 <dt class="co">video
42                         <dd>Video output adjustment.
43                 <dt class="mi">audio
44                         <dd>Sound (track) configuration.
45                 <dt class="mo">playback
46                         <dd>Playback control.
47                 <dt class="me">general
48                         <dd>Other MPlayer features.
49                 </dl>
50         </div>
51
52         <div class="right">
53                 <dl class="legend legend-options">
54                 <dt>key<:= $sign{arg} :>
55                         <dd>Commands with a dot need an argument afterwards.
56                 <dt class="ext">optional
57                         <dd>Some features depend on setup and/or parameters.
58                 </dl>
59
60                 <ul class="legend legend-set">
61                 <li>keyboard <strong>map</strong> is
62                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
63                 <li><strong>ascii</strong> mode is
64                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
65                                 $sign{-ascii} ? 'on' : 'off' :></em>
66                 <li><strong>keys</strong> are
67                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
68                                 !exists $get{keys} && ' by default' :>
69                 <li>default <strong>style</strong> is
70                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
71                 </ul>
72         </div>
73 </div>
74