Distinguish only u-di and u-prop for supported and proposed digraphs,
without overloading ex for unofficial entries.
Fixes unwanted styling if digraphs are otherwise unmarked (charset tables)
without affecting other pages (unicode, chars, writing) where it's already
ignored.
use open OUT => ':utf8', ':std';
use Data::Dump 'pp';
use open OUT => ':utf8', ':std';
use Data::Dump 'pp';
my %info = (
# prepare presentational string for some control(lish) entries
my %info = (
# prepare presentational string for some control(lish) entries
my %diinc = (
'data/digraphs-rfc.inc.pl' => 'u-di',
my %diinc = (
'data/digraphs-rfc.inc.pl' => 'u-di',
- 'data/digraphs-shiar.inc.pl' => 'u-prop ex',
- 'data/digraphs-vim.inc.pl' => 'u-prop',
+ 'data/digraphs-shiar.inc.pl' => 'u-prop',
+ 'data/digraphs-vim.inc.pl' => 'u-vim',
);
for (sort keys %diinc) {
-e $_ or next;
);
for (sort keys %diinc) {
-e $_ or next;
$info->{$_} = $info{$chr}->{$_} for keys %{ $info{$chr} };
$info->{$_} = $info{$chr}->{$_} for keys %{ $info{$chr} };
- # official digraphs either lose vim flag or gain experimental
- delete $info->{class}->{'u-prop'} or $info->{class}->{ex}++
- if $info->{class}->{'u-di'};
+ # ignore vim flag in addition to rfc support, replace otherwise
+ $info->{class}->{'u-di'} or $info->{class}->{'u-prop'}++
+ if delete $info->{class}->{'u-vim'};
# categorise by unicode types and writing script
$info->{class}->{$_}++ for $info->{category};
# categorise by unicode types and writing script
$info->{class}->{$_}++ for $info->{category};