sc: change icon for massive to U+2693 anchor
[sheet.git] / latin.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'latin alphabet cheat sheet',
5         version => 'v1.1',
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         @font-face {
24                 font-family: Gallaudet;
25                 src: url("/gallaudet.ttf");
26         }
27         .glyphs tr:first-child+tr td { font-family: Suetterlin }
28         .glyphs tr:first-child+tr+tr td { font-family: Gallaudet }
29 </style>
30
31 <h1>Latin alphabet</h1>
32
33 <p>Also see <a href="/writing">other alphabets</a>
34 and <a href="/unicode">common chars</a>.</p>
35
36 <div class="-diinfo">
37
38 <:
39 use Shiar_Sheet::FormatChar;
40 my $glyphs = Shiar_Sheet::FormatChar->new;
41 unless (exists $get{v}) {
42         $glyphs->{unicode}--;
43         $glyphs->{anno}  = [];
44         $glyphs->{style} = 0;
45 }
46
47 my %scriptname = (
48         latn     => 'Latin',
49         latfsuet => 'Sütterlin',
50         ase      => '<abbr title="American Sign Lanugage">ASL</abbr> shapes',
51         brai     => 'Braille',
52         morse    => 'Morse',
53         tap      => 'Tap code',
54 );
55
56 my @table = do 'writing-latn.inc.pl';
57 if ($! or $@) {
58         printf "<p class=error>Table data not found: <em>%s</em>.</p>\n", $@ || $!;
59 }
60 else {
61         print $glyphs->table([map {
62                 ref $_ ne 'ARRAY' ? ".>$scriptname{$_}"
63                         : exists $get{uc} ? map {uc} @$_ : @$_
64         } @table]);
65 }
66
67 print "</div>\n";
68