X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/5e2f32d08b77d469b7f190f40dde1e4ca9cd1af3..290c85c0f46c87ae95eeece911bdd3f57ba51dfd:/font.plp diff --git a/font.plp b/font.plp index 75f0198..a93835c 100644 --- a/font.plp +++ b/font.plp @@ -91,11 +91,13 @@ EOT my $info = $glyphs->glyph_info($cp); my ($class, $name, $mnem, $html, $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); say sprintf '%s', !$class ? ('l0', $cp, '', '') : $cover{$cp} ? $np ? 'l2' : 'l5' : $np ? 'Xi' : 'l1', $cp, !!$name && ": $name", - ($cover{$cp} || !$np) && EscapeHTML(chr $cp); + ($cover{$cp} || !$np) && $html; } say ''; @@ -120,6 +122,8 @@ my @ossel = @{ $cover->{osdefault} }; my @fontlist = map { @{ $cover->{os}->{$_} } } @ossel; my @rows = ( + 'version/11', + 'version/63', 'block/Latin-1 Supplement', 'block/Latin Extended-A', 'block/Latin Extended Additional', @@ -180,6 +184,7 @@ for (@rows) { my $row = $cover->{$group}->{$name}; print ''; + $name = sprintf 'Unicode v%.1f', $name / 10 if $group eq 'version'; $name = sprintf '%s', EncodeURI("/chars/$group/$name"), EscapeHTML($name) if $row->{count} and $row->{count} < 1280; print '', $name;