46dcaa36d10063c1880bcaf0893cd5ed6e2f3aa6
[sheet.git] / mplayer.plp
1 <(common.inc.plp)><:
2         our $VERSION = 'v1.0';
3
4         use Shiar_Sheet::KeySigns qw(%sign);
5
6         $header{content_type} = "text/html; charset=$sign{charset}";
7
8 :><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
9  "http://www.w3.org/TR/html4/loose.dtd">
10 <html lang="en">
11
12 <head>
13 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
14 <title>mplayer cheat sheet</title>
15 <meta name="description" content="Keyboard functionality overview sheet for the MPlayer media player.">
16 <meta name="keywords" content="mplayer, video, media, sheet, cheat, reference, overview, control, shortkey, keyboard">
17 <:= stylesheet(qw'light dark circus mono red terse') :>
18 <!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
19 <!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
20         our $showkeys = exists $get{keys} && $get{keys} ne '0';
21         print "\n".'<style type="text/css"> .no {visibility:hidden} </style>'
22                 unless $showkeys;
23         print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
24                 if $showkeys and $get{keys} eq 'ghost';
25 :>
26 <script type="text/javascript" src="/keys.js"></script>
27
28 <body id="mplayer">
29
30 <h1>MPlayer cheat sheet</h1>
31
32 <h2>index (default)</h2>
33
34 <ul id="rows">
35
36 <li class="row">
37         <ul class="keys omni">
38         <li class="mo chr27" onclick="setmode()"><b>Esc</b> q
39                 <!-- not as static anymore, but never bothered; just see ^[ -->
40         </ul>
41 </li>
42
43 <:
44 use Shiar_Sheet::Keyboard;
45 my $keys = Shiar_Sheet::Keyboard->new({do 'mplayer.inc.pl'});
46 $keys->map($get{map}) or undef $get{map};
47 $keys->print_rows($get{rows}, [1,0]);
48 :>
49 </ul>
50
51 <hr>
52
53 <div class="help">
54         <div class="left">
55                 <dl class="legend legend-types">
56                 <dt class="ci">osd
57                         <dd>Print information or change display.
58                 <dt class="pm">subtitles
59                         <dd>Alter subtitle selection and settings.
60                 <dt class="co">video
61                         <dd>Video output adjustment.
62                 <dt class="mi">audio
63                         <dd>Sound (track) configuration.
64                 <dt class="mo">playback
65                         <dd>Playback control.
66                 <dt class="me">general
67                         <dd>Other MPlayer features.
68                 </dl>
69         </div>
70
71         <div class="right">
72                 <dl class="legend legend-options">
73                 <dt>key<:= $sign{arg} :>
74                         <dd>Commands with a dot need an argument afterwards.
75                 <dt class="ext">optional
76                         <dd>Some features depend on setup and/or parameters.
77                 </dl>
78
79                 <ul class="legend legend-set">
80                 <li>keyboard <strong>map</strong> is
81                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
82                 <li><strong>ascii</strong> mode is
83                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
84                                 $sign{-ascii} ? 'on' : 'off' :></em>
85                 <li><strong>keys</strong> are
86                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
87                                 !exists $get{keys} && ' by default' :>
88                 <li>default <strong>style</strong> is
89                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
90                 </ul>
91         </div>
92 </div>
93
94 <p class="footer">
95         <a href="/" rel="home">sheet.shiar.nl</a>/mplayer.<a href="/source/mplayer.plp"
96          rel="code" title="Written in Perl">plp</a>
97         <a href="http://git.shiar.nl/sheet.git/history/HEAD:/mplayer.plp"
98          rel="vcs-git" title="Git repository"><:= $VERSION :></a>
99         created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
100         <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"
101          title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>
102 </p>
103
104 </html>