charset: keep omitted top border width
[sheet.git] / latin.plp
1 <(common.inc.plp)><:
2 use 5.014;
3
4 Html({
5         title => 'latin alphabet cheat sheet',
6         version => '1.3',
7         description => [
8         ],
9         keywords => [qw'
10                 latin roman alphabet script letter unicode font glyph abc
11                 code encoding spelling symbol writing comparison character
12                 secret cursive fraktur blind braille morse deaf asl hand
13                 barcode bar color semaphore flag
14         '],
15         stylesheet => [qw'light dark red'],
16         data => ['writing-latn.inc.pl'],
17 });
18
19 :>
20 <style>
21         @font-face {
22                 font-family: Suetterlin; /* R. G. Arens */
23                 src: url("/suetterlin.ttf");
24         }
25         .glyphs tr:first-child+tr+tr td { font-family: Suetterlin }
26
27         svg path:not([fill]) {
28                 stroke: currentColor;
29                 fill: none;
30         }
31
32         td {
33                 vertical-align: top;
34         }
35         td > svg {
36                 vertical-align: middle;
37         }
38 </style>
39
40 <h1>Latin alphabet</h1>
41
42 <p>Variant encodings of the common ASCII (latin, roman,
43 or <span title="fuck yeah!">'mercan</span>) letters A–Z.
44 Also see <a href="/writing">related alphabets</a>
45 and <a href="/unicode">common chars</a>.</p>
46
47 <div>
48
49 <:
50 my @table = do 'writing-latn.inc.pl';
51 if ($! or $@) {
52         printf "<p class=error>Table data not found: <em>%s</em>.</p>\n", $@ || $!;
53 }
54 else {
55         say '<table class="glyphs">';
56         print ref $_ ne 'ARRAY' ? "<tr><th>$_\n" : map {/^<td/ ? $_ : "\t<td>$_\n"} @$_
57                 for @table;
58         say "</table>\n";
59 }
60
61 :></div>
62