X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/bba0d5b6fb0b1bbe6b5bb4a84c72de2152d8dfe3..29b407ddf91b653e6e8380f73e221628a392376f:/chars.plp diff --git a/chars.plp b/chars.plp index 96d74b4..d4cf06b 100644 --- a/chars.plp +++ b/chars.plp @@ -8,6 +8,15 @@ Html({ '], stylesheet => [qw'light dark mono circus red'], data => [qw( unicode-cover.inc.pl ttfsupport unicode-char.inc.pl )], + raw => <<'EOT', + +EOT }); use Shiar_Sheet::FormatChar; @@ -33,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"; @@ -54,7 +62,7 @@ my $query = eval { say "

$title

"; if (!$query) { - say "

Unicode group not specified: $@

"; + Alert('Unicode group not specified', $@); exit; }; @@ -113,7 +121,7 @@ for my $chr (@chars) { my $codepoint = ord $chr; my $ascii = $codepoint <= 127; - print "$chr\n"; + say '', $chr; my $info = $glyphs->glyph_info($codepoint); my ($class, $name, $mnem, $entity, $string) = @$info; print "$_" for sprintf('%X', $codepoint), EscapeHTML($name || '?');