(common.inc.plp)><:
Html({
title => 'digit characters sheet',
version => '1.0',
description => [
"Unicode glyphs of numbers 0 to 10 in various scripts.",
],
keywords => [qw(
numeral numerical digit number counting decimal
script glyph unicode writing comparison list character
history sample test language multilingual
)],
stylesheet => [qw( light dark circus mono red )],
data => [qw'writing-digits.inc.pl'],
raw => <<'EOT',
EOT
});
:>
Numerals
Digits and numbers counting up to ten
in various writing systems.
<:
use Shiar_Sheet::FormatChar 1.08;
my $glyphs = Shiar_Sheet::FormatChar->new;
unless (exists $get{v}) {
$glyphs->{unicode}--;
$glyphs->{anno} = [];
$glyphs->{style} = 'univer';
}
my $scriptname = do 'writing-script.inc.pl';
$_ = showlink($_, "/latin") for $scriptname->{latn} || ();
my $table = do "writing-digits.inc.pl";
Abort("Table data not found", 501, $_) for $@ || $! || ();
sub printtable {
say '
', $glyphs->tabletag;
for my $id (@_) {
my $info = $table->{$id};
my $title = $info->{title} // $scriptname->{$id} || $id;
print $glyphs->row([ ".>$title", @{$info->{list}} ]);
}
say '
';
}
printtable(@{ $table->{$_} }) for @{ $table->{default} };
say "
\n";
say for '
', $glyphs->legend;