X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/8b97a83492e41bb4a90081c1ad58f90ac031def3..5f257afb85ce61ae765dffad95ce755acb760234:/digits.plp
diff --git a/digits.plp b/digits.plp
index 10625a5..cfaa6ed 100644
--- a/digits.plp
+++ b/digits.plp
@@ -24,7 +24,8 @@ in various writing systems.
<:
-use Shiar_Sheet::FormatChar;
+use List::Util qw( pairs );
+use Shiar_Sheet::FormatChar 1.08;
my $glyphs = Shiar_Sheet::FormatChar->new;
unless (exists $get{v}) {
$glyphs->{unicode}--;
@@ -38,10 +39,13 @@ $_ = qq{
$_} for $scriptname->{latn} || ();
my @table = do "writing-digits.inc.pl";
die "Table data not found: $_\n" for $@ || $! || ();
-print $glyphs->table([map {
- ref $_ eq 'ARRAY' ? @{$_} : map { ".>$_" }
- $scriptname->{"digits_$_"} || $scriptname->{$_} || $_
-} @table]);
+say $glyphs->tabletag;
+for my $row (pairs @table) {
+ my ($id, $cols) = @{$row};
+ my $title = $scriptname->{"digits_$id"} || $scriptname->{$id} || $id;
+ print $glyphs->row([ ".>$title", @{$cols} ]);
+}
+say '';
:>