#!/usr/bin/env perl
-use 5.010;
-use strict;
+use 5.014;
use warnings;
use utf8;
no if $] >= 5.018, warnings => 'experimental::smartmatch';
use open OUT => ':utf8', ':std';
use Data::Dump 'pp';
-our $VERSION = '1.01';
+our $VERSION = '1.02';
my %info = (
# prepare presentational string for some control(lish) entries
"\xAD" => {string => '-'},
"\x{200E}" => {string => '→'},
"\x{200F}" => {string => '←'},
- "\x{200B}" => {string => '␣'},
+ "\x{200B}" => {string => '␣'}, # nbsp: ~ in TeX
"\x{200C}" => {string => '|'}, # ISO-9995-7-081 lookalike (alt: ∣ ⊺ ⟙)
"\x{200D}" => {string => '⁀'}, # join (alt: ∤ |ͯ ⨝)
);
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;
$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};