-my $scriptname = do 'writing-script.inc.pl';
-$_ = qq{<a href="/latin">$_</a>} for $scriptname->{latn} || ();
-
-for (
- [phnx => 'Phoenician'],
- [brah => 'Brahmi'],
-) {
- 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", $! || $@;
- next;
- }
- $glyphs->print($title => [map {
- my $lead = s/^(-)// && $1;
- ref $_ eq 'ARRAY' ? @$_ : map { ".>$lead$_" }
- $scriptname->{$source.'_'.$_} || $scriptname->{$_} || $_
- } @table]);
-}
+my $scriptname = eval { Data('writing-script') }; # optional translations
+$_ = showlink($_, "/latin") for $scriptname->{latn} || ();
+$_ = showlink($_, "/writing/brahmi") for $scriptname->{brah} || ();