X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/70b958bcdf1c8fa7105090135818d7219cec8fa0..cf044fdd2d568779b3fcd0798620d834bb6466fe:/chars.plp?ds=sidebyside diff --git a/chars.plp b/chars.plp index f9af5df..91df3b8 100644 --- a/chars.plp +++ b/chars.plp @@ -2,18 +2,27 @@ Html({ title => 'character support sheet', - version => '1.0', + version => '1.2', keywords => [qw' unicode glyph char character reference common ipa symbol sign mark table digraph '], stylesheet => [qw'light dark mono circus red'], - data => [qw( unicode-cover.inc.pl ttfsupport unicode-char.inc.pl )], + data => [qw( data/unicode-cover.inc.pl data/font data/unicode-char.inc.pl )], + raw => <<'EOT', + +EOT }); use Shiar_Sheet::FormatChar; my $glyphs = Shiar_Sheet::FormatChar->new; -my $groupinfo = do 'unicode-cover.inc.pl' or die $@ || $!; +my $groupinfo = Data('data/unicode-cover'); my @ossel = @{ $groupinfo->{osdefault} }; my @fontlist = map { $_->{file} } @@ -21,11 +30,10 @@ my @fontlist = map { $_->{file} } my %font; for my $fontid (@fontlist) { - my ($fontmeta, @fontrange) = do "ttfsupport/$fontid.inc.pl"; - $fontmeta or next; + my $fontmeta = eval { Data("data/font/$fontid") } or next; $font{$fontid} = { (map { (-$_ => $fontmeta->{$_}) } keys %{$fontmeta}), - map { (chr $_ => 1) } @fontrange + map { (chr $_ => 1) } @{ $fontmeta->{cover} } }; } @@ -53,8 +61,7 @@ my $query = eval { say "