X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/aad474b0ccf6fddd73b11d8c7ed4c57093ce1741..b13bb406f89eaebf04c8fd8ffe69cde30d5aa0bd:/font.plp?ds=inline
diff --git a/font.plp b/font.plp
index a460144..d789262 100644
--- a/font.plp
+++ b/font.plp
@@ -109,13 +109,13 @@ EOT
say "
$_" for join(' ', grep {$_}
$offset > $pagerows && sprintf('â', $offsetlink, 0),
$offset > 0 && sprintf(
- 'â
',
+ 'â
',
$offsetlink, $offset - $pagerows,
),
sprintf('U+%04X', $map ? $map->[$offset] : $offset),
Unicode::UCD::charblock($map ? $map->[$offset] : $offset),
$offset + $pagerows < ($map ? @{$map} : 0x11_0000) && sprintf(
- 'â»',
+ 'â»',
$offsetlink, $offset + $pagerows,
),
);
@@ -156,12 +156,14 @@ EOT
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);
+ $string ||= ($class =~ /\bM[ne]\b/ && chr 9676) . chr($cp);
+ my $html = $np ? !!$cover{$cp} && sprintf("%d;", $cp) :
+ EscapeHTML($string);
say sprintf '%s',
!$class ? ('l0', $cp, '', '') : (
$cover{$cp} ? $np ? 'l2' : 'l5' : $np ? 'Xi' : 'l1',
$cp, !!$name && ": $name",
- ($cover{$cp} || !$np) && $html
+ $html
);
}
say '';
|