X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/a9e35dc01c35745eb872e14041a61c030139c252..e50cae0ec4af55472c2cf91951e13bed049eea94:/digraphs.plp diff --git a/digraphs.plp b/digraphs.plp index 84ac971..b40eac0 100644 --- a/digraphs.plp +++ b/digraphs.plp @@ -36,6 +36,18 @@ my @chars2 = (['_'], @chars); # trailing character (extended set) my @columns = !exists $get{split} ? \@chars2 : ([@chars2[0, 1, 3, 4, 6]], [@chars2[2, 5, 7]]); +if (exists $get{xorg}) { + my $xorg = do 'data/digraphs-xorg.inc.pl' + or die "Error loading Xorg data: ", $@ // $!; + $_ = [ord $_] for values %{$xorg}; + $xorg->{$_}->[2] = # class = same as rfc | any other spec | xorg only + $di->{$_} ? $di->{$_}->[2] =~ /\bu-di\b/ ? 'l5' : 'l3' : 'l1' + for keys %{$xorg}; + $chars2[0] = [qw( # ^ _ ` ~ )]; + @chars = @chars2; + $di = $xorg; +} + for my $colchars (@columns) { print ''; print qq'' for map {scalar @$_} @{$colchars};