X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/054d1037c3f618df44d195a3e63b4832d0eab3b7..a3fad23d030ff035fc47cb4a2a929fad5b0d2831:/tools/mkcharinfo diff --git a/tools/mkcharinfo b/tools/mkcharinfo index 2c006c5..dfcd13d 100755 --- a/tools/mkcharinfo +++ b/tools/mkcharinfo @@ -54,7 +54,8 @@ my %diinc = ( for (sort keys %diinc) { -e $_ or next; my $di = do $_ or die "Error reading digraphs file $_: ", $@ || $!; - while (my ($mnem, $cp) = each %$di) { + for my $mnem (sort keys %{$di}) { + my $cp = $di->{$mnem}; length $mnem == 2 or next; # limit to digraphs my $class = $diinc{$_}; $info{chr $cp}->{di} //= $mnem;