Html({
title => "$mode digraph cheat sheet",
- version => '1.3',
+ version => '1.4',
description => $di->{description} // [
"Complete table of digraph characters from",
($di->{title} // $mode) . ".",
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 = "<span>$glyph</span>" if $script =~ /\bZs\b/;
</table>
<: } :>
<table class="glyphs"><tr><:
- printf qq(\n\t<td class="X %s">%s), (!$cmp && 'u-').$_, $di->{flag}->{$_}
+ printf qq(\n\t<td class="X %s">%s), $cmp ? $_ : $di->{flagclass}{$_} // "u-$_", $di->{flag}->{$_}
for sort keys %{ $di->{flag} };
:>
</table>