font: silence warning when make-ing existing ttfsupport
[sheet.git] / writing.plp
index da267d06a96a1ed8a51e2683e1abcad0688b450a..8ea9a0c970c7442aba681d895ff1dcb8ebcb8821 100644 (file)
@@ -13,12 +13,15 @@ Html({
                history phoenician latin sample test language multilingual
        '],
        stylesheet => [qw'light dark red'],
+       data => [qw'writing-phnx.inc.pl'],
 });
 
 :>
 <h1>Writing systems</h1>
 
-<p>Also see <a href="/charset">charsets</a>
+<p>
+Comparison of Unicode letters in related alphabets.
+Also see <a href="/charset">charsets</a>
 and <a href="/unicode">common chars</a>.</p>
 
 <div class="section">
@@ -28,13 +31,16 @@ use Shiar_Sheet::FormatChar;
 my $glyphs = Shiar_Sheet::FormatChar->new;
 unless (exists $get{v}) {
        $glyphs->{unicode}--;
-       $glyphs->{digraph}--;
+       $glyphs->{anno}  = [];
+       $glyphs->{style} = 'univer';
 }
 
+my $scriptname = do 'writing-script.inc.pl';
+$_ = qq{<a href="/latin">$_</a>} for $scriptname->{latn} || ();
+
 for (
        [phnx => 'Phoenician'],
        [brah => 'Brahmi'],
-       [digits => 'Digits'],
 ) {
        my ($source, $title) = @$_;
        my @table = do "writing-$source.inc.pl";
@@ -43,10 +49,25 @@ for (
                printf "<p>Table data not found: <em>%s</em>.</p>\n", $! || $@;
                next;
        }
-       $glyphs->print($title => \@table);
+       $glyphs->print($title => [map {
+               my $lead = s/^(-)// && $1;
+               ref $_ eq 'ARRAY' ? @$_ : map { ".>$lead$_" }
+                       $scriptname->{$source.'_'.$_} || $scriptname->{$_} || $_
+       } @table]);
 }
 
 :></div>
 
 <hr>
 
+<div class="legend">
+       <table class="glyphs"><tr>
+       <td class="X l5">unicode 1.1
+       <td class="X l4">20th century
+       <td class="X l3">in 6.0 (2010)
+       <td class="X l2">recent assignments
+       <td class="X l1">proposed
+       <td class="ex">irregular
+       </table>
+</div>
+