X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/b7fdc8bc4fb07d537722ed0ab50922035e4fd148..885337ac8f6df8b7971248d0c31eed25ab5b8123:/digraphs.plp diff --git a/digraphs.plp b/digraphs.plp index 6e0608c..5b5f414 100644 --- a/digraphs.plp +++ b/digraphs.plp @@ -79,11 +79,12 @@ for my $c1group (@chars) { my ($codepoint, $name, $support, $script, $string) = @{ $di->{key}->{$mnem} }; - my $glyph = $string || chr $codepoint; + my $glyph = $string || !!$codepoint && chr $codepoint; utf8::upgrade($glyph); # prevent latin1 output my $desc = $mnem . ($name && " ($name)"); my @class = ('X', grep {$_} $script); - push @class, $cmp ? $support : "u-$support" if $support; + push @class, $cmp ? $support : + $di->{flagclass}->{$support} // "u-$support" if $support; $glyph = EscapeHTML($glyph); $glyph = "$glyph" if $script =~ /\bZs\b/; @@ -122,7 +123,7 @@ print '
' if exists $get{split}; <: } :> <: - printf qq(\n\t
%s), (!$cmp && 'u-').$_, $di->{flag}->{$_} + printf qq(\n\t%s), $cmp ? $_ : $di->{flagclass}{$_} // "u-$_", $di->{flag}->{$_} for sort keys %{ $di->{flag} }; :>