common module FormatChar to show character tables
[sheet.git] / mplayer.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'mplayer cheat sheet',
5         version => 'v1.0',
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 <li class="row">
26         <ul class="keys omni">
27         <li class="mo chr27" onclick="setmode()"><b>Esc</b> q
28                 <!-- not as static anymore, but never bothered; just see ^[ -->
29         </ul>
30 </li>
31
32 <:
33 use Shiar_Sheet::Keyboard;
34 my $keys = Shiar_Sheet::Keyboard->new({do 'mplayer.inc.pl'});
35 $keys->map($get{map}) or undef $get{map};
36 $keys->print_rows($get{rows}, [1,0]);
37 :>
38 </ul>
39
40 <hr>
41
42 <div class="help">
43         <div class="left">
44                 <dl class="legend legend-types">
45                 <dt class="ci">osd
46                         <dd>Print information or change display.
47                 <dt class="pm">subtitles
48                         <dd>Alter subtitle selection and settings.
49                 <dt class="co">video
50                         <dd>Video output adjustment.
51                 <dt class="mi">audio
52                         <dd>Sound (track) configuration.
53                 <dt class="mo">playback
54                         <dd>Playback control.
55                 <dt class="me">general
56                         <dd>Other MPlayer features.
57                 </dl>
58         </div>
59
60         <div class="right">
61                 <dl class="legend legend-options">
62                 <dt>key<:= $sign{arg} :>
63                         <dd>Commands with a dot need an argument afterwards.
64                 <dt class="ext">optional
65                         <dd>Some features depend on setup and/or parameters.
66                 </dl>
67
68                 <ul class="legend legend-set">
69                 <li>keyboard <strong>map</strong> is
70                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
71                 <li><strong>ascii</strong> mode is
72                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
73                                 $sign{-ascii} ? 'on' : 'off' :></em>
74                 <li><strong>keys</strong> are
75                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
76                                 !exists $get{keys} && ' by default' :>
77                 <li>default <strong>style</strong> is
78                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
79                 </ul>
80         </div>
81 </div>
82