index: release v1.18 with only altgr index linked
[sheet.git] / digraphs.plp
index 05d9241f41cdef1c86dc6671d807c1cd9e170524..9f96c502b0ebd820116105b89adbd96f39e01543 100644 (file)
@@ -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,7 +79,7 @@ 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);