digraphs: distinguishing class for rfc-only in include
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 22 Feb 2015 20:56:57 +0000 (21:56 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 9 Jun 2015 03:43:42 +0000 (05:43 +0200)
Vim does not support all entries in the standard, typically characters
without modern Unicode code points.

tools/mkdigraphlist

index 500abbb0f6438fa7748f94808eb25fce5f75fbb6..216be6aebdd6cc6866a244382af2a0f99fb7d88d 100755 (executable)
@@ -35,8 +35,8 @@ printf "q{%s}=>[%s],\n", s/(?=[\\}])/\\/gr, join(',',
        map {"'$_'"}
        $uninfo->{ $di->{$_} }->[1] // '',  # name
        $vim->{$_}
-               ? $rfc->{$_} ? 'u-di' : 'u-prop'  # vim+rfc or vim-only
-               :              'u-prop ex',  # neither
+               ? $rfc->{$_} ? 'u-di' : 'u-prop'  # vim+rfc or vim only
+               : $rfc->{$_} ? 'ex'   : 'u-prop ex',  # rfc only or neither
        ($uninfo->{ $di->{$_} }->[0] // '') =~ s/ u-di| u-prop| ex//gr,  # class
        $uninfo->{ $di->{$_} }->[4] // (),  # string
 ) for sort keys %{$di};