common: captioned alert messages
[sheet.git] / font.plp
index 402c4763d3411a460425798e1f4ebdee0a13bf69..cc07c0528344b810a6e1ecc44bf8e7e545f9dd83 100644 (file)
--- a/font.plp
+++ b/font.plp
@@ -1,7 +1,6 @@
 <(common.inc.plp)><:
-use 5.014;
 
-my $font = $ENV{PATH_INFO} =~ s{^/}{}r;
+my $font = $Request;
 
 Html({
        title => 'font coverage '.($font ? "for $font" : 'sheet'),
@@ -108,7 +107,7 @@ EOT
                say sprintf '<tr><th>%X', $cp if $colpos++ % $pagecols == 0;
 
                my $info = $glyphs->glyph_info($cp);
-               my ($class, $name, $mnem, $html, $string) = @{$info};
+               my ($class, $name, $mnem, $entity, $string) = @{$info};
                my $np = $class =~ /\bC\S\b/;  # noprint if control or invalid
                # display literal character, with placeholder circle if non-spacing/enclosing
                my $html = ($class =~ /\bM[ne]\b/ && chr 9676) . EscapeHTML(chr $cp);