X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/81aefba6ac586eccbe18b4e90efc175e34fff5ad..3b395d58206174e283f62ac5ca3a382c9d375a02:/font.plp?ds=sidebyside
diff --git a/font.plp b/font.plp
index d7f3b2e..cc07c05 100644
--- 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 '
%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);
@@ -179,7 +178,7 @@ if (my $group = $get{q}) {
# output character list
-print '';
+print '';
print '';
print ""
for map { scalar @{ $cover->{os}->{$_} } } @ossel;
@@ -227,7 +226,7 @@ for (@rows) {
my $rel = $count / $row->{count};
my $class = $rel < .5 ? 2 : $rel < .9 ? 3 : 4;
- printf '%d%%', "l$class", $rel*100;
+ printf ' | %d', "l$class", $rel*10;
}
say '';
}
| |
---|