writing: glyph table data in separate includes
[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 @table = do 'writing-latn.inc.pl';
32 if ($! or $@) {
33         printf "<p>Table data not found: <em>%s</em>.</p>\n", $! || $@;
34 }
35 else {
36         print $glyphs->table(exists $get{uc} ? [map {s/\s.//; uc} @table] : \@table);
37 }
38
39 print "</div>\n";
40