X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/987ab3466b164a9eb3061b5c35c6ae8c86e922a0..e3a886c4660977226601b4ab33490272e62efe36:/digits.plp?ds=inline
diff --git a/digits.plp b/digits.plp
index 10625a5..bc43593 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, $info) = @{$row};
+ my $title = $info->{title} // $scriptname->{$id} || $id;
+ print $glyphs->row([ ".>$title", @{$info->{list}} ]);
+}
+say '';
:>