X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/b7fdc8bc4fb07d537722ed0ab50922035e4fd148..HEAD:/digraphs.plp diff --git a/digraphs.plp b/digraphs.plp index 6e0608c..9f96c50 100644 --- a/digraphs.plp +++ b/digraphs.plp @@ -9,7 +9,7 @@ warn "error in $include: ", @{$@} if ref $@; Html({ title => "$mode digraph cheat sheet", - version => '1.3', + version => '1.4', description => $di->{description} // [ "Complete table of digraph characters from", ($di->{title} // $mode) . ".", @@ -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} }; :>