- if ($self->{style} = 'di') {
- if (defined $mnem) {
- push @class, $class =~ /\bXz\b/ ? ('l2', 'u-prop') # unofficial
- : ('l3', 'u-di'); # standard digraph
+ if ($self->{style} eq 'di') {
+ if ($class =~ /\bu-di\b/) {
+ push @class, ('l3', 'u-di'); # standard digraph
+ }
+ elsif ($class =~ /\bu-prop\b/) {
+ push @class, ('l2', 'u-prop'); # unofficial
+ }
+ }
+ elsif ($self->{style} eq 'html') {
+ if (defined $entity) {
+ push @class, ('l3', 'u-html');