[defined $mnem ? $class =~ /\bu-di\b/ ? 'l4' : 'l3' : $ascii ? 'l5' : 'l1',
EscapeHTML($mnem) // sprintf('%s%0*X', $codepoint < 256 ? (x => 2) : (u => 4), $codepoint)],
[defined $html ? 'l4' : $ascii ? 'l5' : 'l1', $html // "#$codepoint"],
);
printf(
[defined $mnem ? $class =~ /\bu-di\b/ ? 'l4' : 'l3' : $ascii ? 'l5' : 'l1',
EscapeHTML($mnem) // sprintf('%s%0*X', $codepoint < 256 ? (x => 2) : (u => 4), $codepoint)],
[defined $html ? 'l4' : $ascii ? 'l5' : 'l1', $html // "#$codepoint"],
);
printf(