writing: .ex styling for obsolete alphabets
[sheet.git] / writing.plp
index eab00514088e689124b252f780948ed917c8028d..9f49a0ec371729071f23a10673f488cec3b1b61a 100644 (file)
@@ -29,7 +29,8 @@ use Shiar_Sheet::FormatChar;
 my $glyphs = Shiar_Sheet::FormatChar->new;
 unless (exists $get{v}) {
        $glyphs->{unicode}--;
-       $glyphs->{digraph}--;
+       $glyphs->{anno}  = [];
+       $glyphs->{style} = 0;
 }
 
 my $scriptname = do 'writing-script.inc.pl';
@@ -38,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";
@@ -48,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]);
 }