X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/0ef6354c95222a6da6db28bf1e6d536f5fae8282..921547406c8cdd5b4cffee21bca0ee56f23251dc:/chars.plp diff --git a/chars.plp b/chars.plp index 83c40ab..d4cf06b 100644 --- a/chars.plp +++ b/chars.plp @@ -8,9 +8,17 @@ Html({ '], stylesheet => [qw'light dark mono circus red'], data => [qw( unicode-cover.inc.pl ttfsupport unicode-char.inc.pl )], + raw => <<'EOT', + +EOT }); -use 5.010; use Shiar_Sheet::FormatChar; my $glyphs = Shiar_Sheet::FormatChar->new; @@ -34,8 +42,7 @@ for my $fontid (@fontlist) { my ($title, $parent) = ('Character overview'); my $query = eval { - for ($ENV{PATH_INFO} || ()) { - s{^/}{}; + for ($Request || ()) { return $_ if m{^[0-9 +-]+$}; my ($cat, $name) = split m{/}, $_, 2 or die "invalid query\n"; @@ -55,7 +62,7 @@ my $query = eval { say "
Unicode group not specified: $@
"; + Alert('Unicode group not specified', $@); exit; }; @@ -114,14 +121,14 @@ for my $chr (@chars) { my $codepoint = ord $chr; my $ascii = $codepoint <= 127; - print "