-for (
- [phnx => 'Phoenician'],
- [brah => 'Brahmi'],
-) {
- my ($source, $title) = @$_;
- my @table = do "writing-$source.inc.pl";
- if ($! or $@) {
- say "<h2>$title</h2>";
- 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]);
-}
-
-:></div>
+say $glyphs->table([map {
+ my $lead = s/^(-)// && $1;
+ (map { ".>$lead$_" }
+ $scriptname->{$source.'_'.$_} || $scriptname->{$_} || $_
+ ),
+ @{ $info->{table}->{$_} || [] }
+} @{$rows}]);