%X', $msb + ($row->{offset} >> 4);
for my $lsb (0 .. $#nibble) {
+ my $val = ( ($msb<<4) + $lsb ) * $nibsize;
if ($row->{cell}) {
- print $row->{cell}->(($msb<<4) + $lsb);
+ print $row->{cell}->($val);
next;
}
- my $glyph = substr $row->{table}, ($msb<<4) + $lsb, 1;
+ my $glyph = substr $row->{table}, $val, 1;
if ($glyph eq $NOCHAR) {
print ' | ';
next;
}
- my $info = [ord $glyph];
- if (defined (my $mnem = $di{ord $glyph})) {
- $info = $diinfo->{$mnem};
- }
- else {
- require Unicode::UCD;
- my $fullinfo = Unicode::UCD::charinfo(ord $glyph);
- $info = [@$fullinfo{qw/code name category script string/}] if $fullinfo;
- }
- my ($codepoint, $name, $prop, $script, $string) = @$info;
-
- $glyph = EscapeHTML($string || $glyph);
- my $desc = sprintf 'U+%04X%s', $codepoint, $name && " ($name)";
- my @class = ('X', grep {$_} $prop, $script);
-
- $glyph = "$glyph" if $prop eq 'Zs';
-
- printf "\n".' | %s',
- join(' ', @class), EscapeHTML($desc), $glyph;
+ print "\n".$glyphs->glyph_cell($glyph);
}
print "\n";
}
@@ -182,7 +169,7 @@ for my $row (@request) {
|
---|