X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/b7fdc8bc4fb07d537722ed0ab50922035e4fd148..800cd11bec46c84a8187b9180f0a7684e7be7d1c:/digraphs.plp diff --git a/digraphs.plp b/digraphs.plp index 6e0608c..05d9241 100644 --- a/digraphs.plp +++ b/digraphs.plp @@ -83,7 +83,8 @@ for my $c1group (@chars) { 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} }; :>