script: add samaritan and syriac
[sheet.git] / vimperator.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'vimperator cheat sheet',
5         version => 'v1.1',
6         description => [
7                 "Interactive cheat sheet for the Vimperator Firefox extension,",
8                 "describing the function of each key.",
9         ],
10         keywords => [qw'
11                 vimperator firefox vim iceweasel sheet cheat reference overview
12                 commands keyboard browser
13         '],
14         charset => $sign{charset},
15         stylesheet => [qw'light dark circus mono red terse'],
16         keys => 1,
17 });
18
19 :>
20 <h1>Vimperator cheat sheet</h1>
21
22 <h2>normal mode (default)</h2>
23
24 <ul id="rows">
25
26 <li class="row">
27         <ul class="keys omni">
28         <li class="mv chr27" onclick="setmode()"><b>Esc</b> normal mode
29                 <!-- not as static anymore, but never bothered; just see ^[ -->
30         </ul>
31 </li>
32
33 <:
34 use Shiar_Sheet::Keyboard;
35 my $keys = Shiar_Sheet::Keyboard->new({do 'vimperator.inc.pl'});
36 $keys->map($get{map}) or undef $get{map};
37 $keys->print_rows($get{rows});
38 :>
39 </ul>
40
41 <hr>
42
43 <div class="help">
44         <div class="left">
45                 <dl class="legend legend-types">
46                 <dt class="ci">info
47                         <dd>Displays something without any permanent consequences.
48                 <dt class="pm">motion
49                         <dd>Move cursor, scroll window, focus buffer element.
50                 <dt class="po">tab
51                         <dd>Tab or window navigation/selection.
52                 <dt class="co">buffer
53                         <dd>Page interaction.
54                 <dt class="cp">open
55                         <dd>Browse to a location in the current tab.
56                 <dt class="mi">tab open
57                         <dd>Browse somewhere in a new tab.
58                 <dt class="mo">browser
59                         <dd>Other browser action.
60                 <dt class="mv">mode
61                         <dd>Enter a different mode.
62                 <dt class="me">key cmd
63                         <dd>Additional key commands (click for overview).
64                 </dl>
65         </div>
66
67         <div class="right">
68                 <dl class="legend legend-options">
69                 <dt>key<:= $sign{arg} :>
70                         <dd>Commands with a dot need a char argument afterwards.
71                 <dt>key<:= $sign{args} :>
72                         <dd>Commands with two dots require variable arguments afterwards.
73                 </dl>
74
75                 <ul class="legend legend-set">
76                 <li>keyboard <strong>map</strong> is
77                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
78                 <li><strong>ascii</strong> mode is
79                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
80                                 $sign{-ascii} ? 'on' : 'off' :></em>
81                 <li><strong>keys</strong> are
82                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
83                                 !exists $get{keys} && ' by default' :>
84                 <li>default <strong>style</strong> is
85                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
86                 </ul>
87         </div>
88 </div>
89