da267d06a96a1ed8a51e2683e1abcad0688b450a
[sheet.git] / writing.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'writing system inheritance sheet',
5         version => 'v1.0',
6         description => [
7                 "Character comparison,",
8                 "tracking letters as they evolve from Phoenician to modern scripts.",
9                 "Good Unicode test sample.",
10         ],
11         keywords => [qw'
12                 script glyph unicode writing comparison character alphabet letter
13                 history phoenician latin sample test language multilingual
14         '],
15         stylesheet => [qw'light dark red'],
16 });
17
18 :>
19 <h1>Writing systems</h1>
20
21 <p>Also see <a href="/charset">charsets</a>
22 and <a href="/unicode">common chars</a>.</p>
23
24 <div class="section">
25
26 <:
27 use Shiar_Sheet::FormatChar;
28 my $glyphs = Shiar_Sheet::FormatChar->new;
29 unless (exists $get{v}) {
30         $glyphs->{unicode}--;
31         $glyphs->{digraph}--;
32 }
33
34 for (
35         [phnx => 'Phoenician'],
36         [brah => 'Brahmi'],
37         [digits => 'Digits'],
38 ) {
39         my ($source, $title) = @$_;
40         my @table = do "writing-$source.inc.pl";
41         if ($! or $@) {
42                 print "<h2>$title</h2>\n";
43                 printf "<p>Table data not found: <em>%s</em>.</p>\n", $! || $@;
44                 next;
45         }
46         $glyphs->print($title => \@table);
47 }
48
49 :></div>
50
51 <hr>
52