writing: .ex styling for obsolete alphabets
[sheet.git] / writing.plp
index 86654e2ca3f352f7325317655140dc2e33809f43..9f49a0ec371729071f23a10673f488cec3b1b61a 100644 (file)
@@ -29,7 +29,7 @@ use Shiar_Sheet::FormatChar;
 my $glyphs = Shiar_Sheet::FormatChar->new;
 unless (exists $get{v}) {
        $glyphs->{unicode}--;
-       $glyphs->{anno}  = 0;
+       $glyphs->{anno}  = [];
        $glyphs->{style} = 0;
 }
 
@@ -39,7 +39,6 @@ $_ = 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";
@@ -49,7 +48,8 @@ for (
                next;
        }
        $glyphs->print($title => [map {
-               ref $_ eq 'ARRAY' ? @$_ : map { ".>$_" }
+               my $lead = s/^(-)// && $1;
+               ref $_ eq 'ARRAY' ? @$_ : map { ".>$lead$_" }
                        $scriptname->{$source.'_'.$_} || $scriptname->{$_} || $_
        } @table]);
 }