if ($self->{digraph}) {
if (defined $mnem) {
push @class, $class =~ /\bXz\b/ ? ('l2', 'u-prop') # unofficial
- : ('l4', 'u-di'); # standard digraph
+ : ('l3', 'u-di'); # standard digraph
}
}
else {
my $codepoint = ord(substr $input, 0, 1);
if ($codepoint <= 0xFF) {
- push @class, 'l4', 'u-lat1'; # latin1
+ push @class, 'l3', 'u-lat1'; # latin1
}
elsif ($codepoint <= 0xD7FF) {
push @class, 'l2', 'u-bmp'; # bmp
}
if ($input =~ /[ -~]/) {
- push @class, 'l5', 'u-ascii'; # ascii
+ push @class, 'l4', 'u-ascii'; # ascii
}
else {
- push @class, 'l0'; # basic unicode
+ push @class, 'l1'; # basic unicode
}
}