if (my ($parent, $part) = pairfirst { defined $visible->{$a} } @parents) {
$row{parent} = $parent;
- $params = $visible->{$parent} ? $part : 128;
+ $params = $part;
+ $params = 128 unless $visible->{$parent}
+ or ($input eq 'MacCroatian' and defined $visible->{MacRomanian});
}
elsif (defined $visible->{ascii}) {
$row{parent} = $parents[0];
next;
}
+ if (exists $get{compare}) {
+ state $visible = {};
+ my $cp = $offset + $row->{offset};
+ printf '<td class="%s" title="%3$s">%2$s',
+ $cp == ord $glyph ? 'l4' :
+ $row->{parent} && $glyph eq
+ Encode::decode($row->{parent}, pack 'C', $cp) ? 'l3' :
+ $visible->{$glyph} ? 'l2' :
+ 'l1',
+ $glyphs->glyph_html($glyph);
+ $visible->{$glyph}++;
+ next;
+ }
+
print "\n".$glyphs->glyph_cell($glyph);
}
continue {
<hr>
<div class="legend">
- <table class="glyphs"><tr>
+ <table class="glyphs"><tr><: if (exists $get{compare}) { :>
+ <td class="X l4">unicode
+ <td class="X l3">inherited
+ <td class="X l2">existing
+ <td class="X l1">original
+ <td class="">unassigned
+<: } else { :>
<td class="X Cc">control
<td class="X Zs"><span>whitespace</span>
<td class="X Mn">diacritic<table class="glyphs"><tr>
<td class="X Xd">deprecated
<td class="">unassigned
<td class="X Xi">invalid
- </table>
+<: } :> </table>
</div>