)],
stylesheet => [qw( light dark circus mono red )],
data => [qw'writing-digits.inc.pl'],
+ raw => <<'EOT',
+<style>
+th:first-child { min-width: 10em }
+</style>
+EOT
});
:>
<div>
<:
-use List::Util qw( pairs );
use Shiar_Sheet::FormatChar 1.08;
my $glyphs = Shiar_Sheet::FormatChar->new;
unless (exists $get{v}) {
my $scriptname = do 'writing-script.inc.pl';
$_ = qq{<a href="/latin">$_</a>} for $scriptname->{latn} || ();
-my @table = do "writing-digits.inc.pl";
+my %table = do "writing-digits.inc.pl";
die "Table data not found: $_\n" for $@ || $! || ();
-say $glyphs->tabletag;
-for my $row (pairs @table) {
- my ($id, $info) = @{$row};
- my $title = $info->{title} // $scriptname->{$id} || $id;
- print $glyphs->row([ ".>$title", @{$info->{list}} ]);
+sub printtable {
+ say '<div class=section>', $glyphs->tabletag;
+ for my $id (@_) {
+ my $info = $table{$id};
+ my $title = $info->{title} // $scriptname->{$id} || $id;
+ print $glyphs->row([ ".>$title", @{$info->{list}} ]);
+ }
+ say '</table></div>';
}
-say '</table>';
+
+printtable(@{ $table{$_} }) for @{ $table{default} };
:></div>
use utf8;
(
+default => [qw( brahmi western sign eastern )],
+eastern => [qw( hant hans suzhou rod )],
+brahmi => [qw(
+ khmr java bali sund talu lana lanahora laoo mlym taml cham kali mymr cakm
+ thai knda telu tibt lepc beng olck saur orya guru gujr deva brahnumb brah
+)],
+western => [qw( arabindi arabpers ethi copt latn latnlat xsux maya teng tlh osma brai )],
+sign => [qw( suttus suttbe suttnl )],
+
hant => {list => [qw{ >- 壹 貳 參 肆 伍 陸 柒 捌 玖 零 }]},
hans => {list => [qw{ 〇 一 二 三 四 五 六 七 八 九 十 }]},
suzhou => {list => [qw{ >- 〡 〢 〣 〤 〥 〦 〧 〨 〩 〸 }], title => 'Suzhou'},