X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/dbe8796e044611c3d0f0f83b2f2e152e339acd48..f1b14de9ebe722dfb26594fe50d66e1c2db6471f:/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;