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