index: publish altgr subpages for windows and macos
[sheet.git] / index.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'cheat sheets',
5         version => '1.16',
6         description => [
7                 "Cheat sheets summarising various software programs and standards.",
8         ],
9         keywords => [qw'
10                 sheet cheat reference software overview summary help keyboard map unicode
11         '],
12         raw => [
13                 '<link rel="sitemap" type="application/xml" href="/sitemap.xml">',
14                 '<link rel="alternate" type="application/rss+xml"',
15                 ' title="RSS feed of repository updates"',
16                 ' href="http://git.shiar.nl/sheet.git/rss">',
17         ],
18         data => ['UPDATE'],
19 });
20 :>
21 <h1>Shiar's cheat sheets</h1>
22
23 <p>
24 Through the miracle of formatting, design, abbreviation, compression, and Perl,
25 the following topics have been condensed into single pages of reference.
26 <br>
27 Originally created by Mischa <span class="family-name">Poslawsky</span>,
28 but you're free to use, print, alter, and redistribute under the AGPL license.
29 </p>
30 <:
31 if (open my $log, '<', 'UPDATE') {{
32         my $line = readline $log;
33         $line or next;  # explicitly ignore empty input
34         EscapeHTML $line;
35         my ($date, $subject) = split /[\t\n]/, $line;
36         $date =~ s/ \K/<small>/ and $date .= '</small>';
37         $subject =~ s{\A(\w+)(?=: )}{showlink($1, -e "$1.plp" && "/$1")}e;
38         say "<p><strong>Last update</strong>: $date $subject</p>";
39 }}
40
41 :>
42 <nav>
43 <div class="section">
44 <h2>Keyboard maps</h2>
45 <ul>
46 <li><a href="/readline">readline</a>
47 <li><a href="/screen">screen</a>
48 <li><a href="/less">less</a>
49 <li><a href="/vi">vi/vim</a>
50 <li><a href="/vimperator">vimperator</a>
51 <li><a href="/mutt">mutt</a>
52 <li><a href="/nethack">nethack</a>
53 <li><a href="/mplayer/mpv">mplayer/mpv</a>
54 <li><a href="/keyboard/altgr/windows">altgr</a
55   >/<a href="/keyboard/altgr/macos">option</a>
56 </ul>
57 </div>
58
59 <div class="section">
60 <h2>Unicode characters</h2>
61 <ul>
62 <li><a href="/charset">charsets</a>
63 <li><a href="/charset/unicode">unicode allocation</a>
64 <li><a href="/unicode">common glyphs</a>
65 <li><a href="/digraphs">digraphs</a>
66 <li><a href="/writing">alphabet comparison</a>
67 <li><a href="/latin">latin variants</a>
68 <li><a href="/digits">numerals</a>
69 <li><a href="/font">font coverage</a>
70 </ul>
71 </div>
72
73 <div class="section">
74 <h2>Other references</h2>
75 <ul>
76 <li><a href="/browser">browser support</a>
77 <li><a href="/countries">country codes</a>
78 <li><a href="/perl">perl versions</a>
79 <li><a href="/apl">apl symbols</a>
80 <li><a href="/termcol">terminal colours</a>
81 <li><a href="/sc/lotv">starcraft units</a>
82 <li><a href="/emoji">emoticons</a>
83 <li><a href="/dieren">dieren (Dutch animals)</a>
84 </ul>
85 </div>
86 </nav>
87