base: experiment listing fractions in various number bases
[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->{anno}  = [];
43         $glyphs->{style} = 0;
44 }
45
46 my %scriptname = (
47         latn     => 'Latin',
48         latfsuet => 'Sütterlin',
49         ase      => '<abbr title="American Sign Lanugage">ASL</abbr> shapes',
50         brai     => 'Braille',
51         morse    => 'Morse',
52 );
53
54 my @table = do 'writing-latn.inc.pl';
55 if ($! or $@) {
56         printf "<p>Table data not found: <em>%s</em>.</p>\n", $! || $@;
57 }
58 else {
59         print $glyphs->table([map {
60                 ref $_ ne 'ARRAY' ? ".>$scriptname{$_}"
61                         : exists $get{uc} ? map {uc} @$_ : @$_
62         } @table]);
63 }
64
65 print "</div>\n";
66