+ push @class, 'l1'; # basic unicode
+ }
+ }
+
+ my $anno = '';
+ if ($cell ne '') {
+ for (@{ $self->{anno} }) {
+ if (/html$/) {
+ if (defined $entity) {
+ $entity = "&$entity;" if /^&/;
+ $anno = sprintf(' <small class="digraph">%s</small>', EscapeHTML($entity));
+ last;
+ }
+ }
+ elsif ($_ eq 'xml') {
+ $anno = sprintf(' <small class="digraph">%s</small>',
+ sprintf '#%d', ord($cell)
+ );
+ last;
+ }
+ elsif ($_ eq '&xml') {
+ $anno = sprintf(' <small class="digraph">%s</small>',
+ sprintf '&#%d;', ord($cell)
+ );
+ last;
+ }
+ elsif ($_ eq 'di') {
+ if (defined $mnem and length $mnem) {
+ $anno = sprintf(' <small class="digraph">%s</small>', EscapeHTML($mnem));
+ last;
+ }
+ }
+ else {
+ if ($_ eq 'hex' or $cell =~ /^[^a-zA-Z]$/) {
+ $anno = sprintf(' <small class="%s">%04X</small>', 'value', ord $cell);
+ last;
+ }
+ }