history phoenician latin sample test language multilingual
'],
stylesheet => [qw'light dark red'],
+ data => [qw'writing-phnx.inc.pl'],
});
:>
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';
+$_ = 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";
printf "<p>Table data not found: <em>%s</em>.</p>\n", $! || $@;
next;
}
- $glyphs->print($title => [ map { @$_ } grep { ref $_ eq 'ARRAY' } @table ]);
+ $glyphs->print($title => [map {
+ ref $_ eq 'ARRAY' ? @$_ : map { ".>$_" }
+ $scriptname->{$source.'_'.$_} || $scriptname->{$_} || $_
+ } @table]);
}
:></div>