unicode: catalog substitute characters
[sheet.git] / less.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'less cheat sheet',
5         version => 'v1.1',
6         description => [
7                 "Default bindings of the less pager.",
8                 "Clearly shows how much it's more than more.",
9         ],
10         keywords => [qw'
11                 less sheet cheat keys pager more
12                 shortkey reference keyboard commands options overview
13         '],
14         charset => $sign{charset},
15         stylesheet => [qw'light dark circus mono red terse'],
16         keys => 1,
17 });
18
19 :>
20 <h1>Less cheat sheet</h1>
21
22 <h2>normal pager (default)</h2>
23
24 <:
25 use Shiar_Sheet::Keyboard 2;
26 my $info = do 'less.eng.inc.pl' or die $@;
27 $info->{def} = do 'less.inc.pl';
28 my $keys = Shiar_Sheet::Keyboard->new($info);
29 $keys->map($get{map}) or undef $get{map};
30 $keys->print_rows($get{rows}, [1,0]);
31 :>
32
33 <hr>
34
35 <div class="help">
36         <div class="left">
37 <: $keys->print_legend('legend-types', [qw( ci pm po co mo mv )]) :>
38         </div>
39
40         <div class="right">
41 <: $keys->print_legend('legend-options', [qw( arg more )]) :>
42
43                 <ul class="legend legend-set">
44                 <li>keyboard <strong>map</strong> is
45                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
46                 <li><strong>ascii</strong> mode is
47                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
48                                 $sign{-ascii} ? 'on' : 'off' :></em>
49                 <li><strong>keys</strong> are
50                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
51                                 !exists $get{keys} && ' by default' :>
52                 <li>default <strong>style</strong> is
53                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
54                 </ul>
55         </div>
56 </div>
57