writing: script names in separate include
[sheet.git] / writing.plp
index d71dba445eadc91c4ef934cc62173244195c9171..5308df7b079ec31d4ae096029d4f20acf083f58c 100644 (file)
@@ -31,6 +31,9 @@ unless (exists $get{v}) {
        $glyphs->{digraph}--;
 }
 
+my $scriptname = do 'writing-script.inc.pl';
+$_ = qq{<a href="/latin">$_</a>} for $scriptname->{latn} || ();
+
 for (
        [phnx => 'Phoenician'],
        [brah => 'Brahmi'],
@@ -43,7 +46,10 @@ for (
                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>