$c1";
for my $c2 (@chars2) {
my $mnem = $c1 . $c2;
if (not defined $di->{$mnem}) {
print ' | ';
next;
}
my $chr = $di->{$mnem};
my $glyph = chr $chr;
utf8::upgrade($glyph); # prevent latin1 output
my $info = charinfo($chr);
my $desc = $mnem;
$desc .= " ($_)" for $info->{name} || ();
my @class = 'X';
push @class, $_ for $info->{category} || ();
push @class, $_ for $info->{script} || ();
$glyph = quote($glyph);
$glyph = "$glyph" if $info->{category} eq 'Zs';
printf "\n".' | %s',
join(' ', @class), quote($desc), $glyph;
}
print "\n | $c1\n";
}
print " |
---|