writing: enable circus stylesheet
[sheet.git] / writing.plp
index 86654e2ca3f352f7325317655140dc2e33809f43..c5a23c7f0eaf7f2f5da8e37bd5b920565006c503 100644 (file)
@@ -12,14 +12,16 @@ Html({
                script glyph unicode writing comparison character alphabet letter
                history phoenician latin sample test language multilingual
        '],
                script glyph unicode writing comparison character alphabet letter
                history phoenician latin sample test language multilingual
        '],
-       stylesheet => [qw'light dark red'],
+       stylesheet => [qw'light circus dark red'],
        data => [qw'writing-phnx.inc.pl'],
 });
 
 :>
 <h1>Writing systems</h1>
 
        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">
 and <a href="/unicode">common chars</a>.</p>
 
 <div class="section">
@@ -29,8 +31,8 @@ use Shiar_Sheet::FormatChar;
 my $glyphs = Shiar_Sheet::FormatChar->new;
 unless (exists $get{v}) {
        $glyphs->{unicode}--;
 my $glyphs = Shiar_Sheet::FormatChar->new;
 unless (exists $get{v}) {
        $glyphs->{unicode}--;
-       $glyphs->{anno}  = 0;
-       $glyphs->{style} = 0;
+       $glyphs->{anno}  = [];
+       $glyphs->{style} = 'univer';
 }
 
 my $scriptname = do 'writing-script.inc.pl';
 }
 
 my $scriptname = do 'writing-script.inc.pl';
@@ -39,17 +41,17 @@ $_ = qq{<a href="/latin">$_</a>} for $scriptname->{latn} || ();
 for (
        [phnx => 'Phoenician'],
        [brah => 'Brahmi'],
 for (
        [phnx => 'Phoenician'],
        [brah => 'Brahmi'],
-       [digits => 'Digits'],
 ) {
        my ($source, $title) = @$_;
        my @table = do "writing-$source.inc.pl";
        if ($! or $@) {
                print "<h2>$title</h2>\n";
 ) {
        my ($source, $title) = @$_;
        my @table = do "writing-$source.inc.pl";
        if ($! or $@) {
                print "<h2>$title</h2>\n";
-               printf "<p>Table data not found: <em>%s</em>.</p>\n", $! || $@;
+               printf "<p>Table data not found: <em>%s</em>.</p>\n", $@ || $!;
                next;
        }
        $glyphs->print($title => [map {
                next;
        }
        $glyphs->print($title => [map {
-               ref $_ eq 'ARRAY' ? @$_ : map { ".>$_" }
+               my $lead = s/^(-)// && $1;
+               ref $_ eq 'ARRAY' ? @$_ : map { ".>$lead$_" }
                        $scriptname->{$source.'_'.$_} || $scriptname->{$_} || $_
        } @table]);
 }
                        $scriptname->{$source.'_'.$_} || $scriptname->{$_} || $_
        } @table]);
 }
@@ -58,3 +60,14 @@ for (
 
 <hr>
 
 
 <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>
+