- digits_latn => 'Arabic_(Western)',
- digits_latnlat => 'Roman',
- digits_brai => 'Braille_[⠼+]',
- arabindi => 'Arabic_-_Indic',
- arabpers => 'Arabic_-_Indic_(Alt)',
- digits_brahnumb => 'Brahmi',
- lanahora => 'Tai_Tham_Hora',
- suzhou => 'Hangzhou',
-);
-
-for (
- [phnx => 'Phoenician'],
- [brah => 'Brahmi'],
- [digits => 'Digits'],
-) {
- 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 {
- ref $_ eq 'ARRAY' ? @$_ : map { ".>$_" }
- $scriptname{$source.'_'.$_} || $scriptname{$_} || $_
- } @table]);
-}
+say $glyphs->table([map {
+ my $lead = s/^(-)// && $1;
+ (map { ".>$lead$_" }
+ $scriptname->{$source.'_'.$_} || $scriptname->{$_} || $_
+ ),
+ @{ $info->{table}->{$_} || [] }
+} @{$rows}]);