termcol: fix cell description fallback of index 0
[sheet.git] / latin.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'latin alphabet cheat sheet',
5         version => '1.2',
6         description => [
7         ],
8         keywords => [qw'
9                 latin roman alphabet script letter unicode font glyph abc
10                 writing comparison character sample test language spelling
11                 cursive fraktur blind deaf
12         '],
13         stylesheet => [qw'light dark red'],
14         data => ['writing-latn.inc.pl'],
15 });
16
17 :>
18 <style>
19         @font-face {
20                 font-family: Suetterlin; /* R. G. Arens */
21                 src: url("/suetterlin.ttf");
22         }
23         .glyphs tr:first-child+tr+tr td { font-family: Suetterlin }
24 </style>
25
26 <h1>Latin alphabet</h1>
27
28 <p>Also see <a href="/writing">other alphabets</a>
29 and <a href="/unicode">common chars</a>.</p>
30
31 <div class="-diinfo">
32
33 <:
34 my @table = do 'writing-latn.inc.pl';
35 if ($! or $@) {
36         printf "<p class=error>Table data not found: <em>%s</em>.</p>\n", $@ || $!;
37 }
38 else {
39         print '<table class="glyphs">';
40         print ref $_ ne 'ARRAY' ? "<tr><th>$_" : map {/^<td/ ? $_ : "<td>$_"} @$_ for @table;
41         print "</table>\n\n";
42 }
43
44 print "</div>\n";
45