writing: script name outside of table include
[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
11         '],
12         stylesheet => [qw'light dark red'],
13 });
14
15 :>
16 <h1>Latin alphabet</h1>
17
18 <p>Also see <a href="/writing">other alphabets</a>
19 and <a href="/unicode">common chars</a>.</p>
20
21 <div class="-diinfo">
22
23 <:
24 use Shiar_Sheet::FormatChar;
25 my $glyphs = Shiar_Sheet::FormatChar->new;
26 unless (exists $get{v}) {
27         $glyphs->{unicode}--;
28         $glyphs->{digraph}--;
29 }
30
31 my %scriptname = (
32         latn     => 'Latin',
33         brai     => 'Braille',
34         morse    => 'Morse',
35 );
36
37 my @table = do 'writing-latn.inc.pl';
38 if ($! or $@) {
39         printf "<p>Table data not found: <em>%s</em>.</p>\n", $! || $@;
40 }
41 else {
42         print $glyphs->table([map {
43                 ref $_ ne 'ARRAY' ? ".>$scriptname{$_}"
44                         : exists $get{uc} ? map {uc} @$_ : @$_
45         } @table]);
46 }
47
48 print "</div>\n";
49