X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/5464db21077f6af072bd770f6cb6e907eb48b73d..5c6226f7284e7b0ce87825f4a90d083d03f94388:/writing.plp diff --git a/writing.plp b/writing.plp index d71dba4..86654e2 100644 --- a/writing.plp +++ b/writing.plp @@ -13,6 +13,7 @@ Html({ history phoenician latin sample test language multilingual '], stylesheet => [qw'light dark red'], + data => [qw'writing-phnx.inc.pl'], }); :> @@ -28,9 +29,13 @@ use Shiar_Sheet::FormatChar; my $glyphs = Shiar_Sheet::FormatChar->new; unless (exists $get{v}) { $glyphs->{unicode}--; - $glyphs->{digraph}--; + $glyphs->{anno} = 0; + $glyphs->{style} = 0; } +my $scriptname = do 'writing-script.inc.pl'; +$_ = qq{$_} for $scriptname->{latn} || (); + for ( [phnx => 'Phoenician'], [brah => 'Brahmi'], @@ -43,7 +48,10 @@ for ( printf "

Table data not found: %s.

\n", $! || $@; next; } - $glyphs->print($title => [ map { @$_ } grep { ref $_ eq 'ARRAY' } @table ]); + $glyphs->print($title => [map { + ref $_ eq 'ARRAY' ? @$_ : map { ".>$_" } + $scriptname->{$source.'_'.$_} || $scriptname->{$_} || $_ + } @table]); } :>