git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
apl: click to expand all descriptions
[sheet.git]
/
tools
/
mkcharinfo
diff --git
a/tools/mkcharinfo
b/tools/mkcharinfo
index 2c006c5d34fd202cc8aec19648953516796116be..66f3a0022d94058a525bce55cb90c476e13826b7 100755
(executable)
--- a/
tools/mkcharinfo
+++ b/
tools/mkcharinfo
@@
-8,7
+8,7
@@
no if $] >= 5.018, warnings => 'experimental::smartmatch';
use open OUT => ':utf8', ':std';
use Data::Dump 'pp';
use open OUT => ':utf8', ':std';
use Data::Dump 'pp';
-our $VERSION = '1.0
0
';
+our $VERSION = '1.0
1
';
my %info = (
# prepare presentational string for some control(lish) entries
my %info = (
# prepare presentational string for some control(lish) entries
@@
-54,11
+54,12
@@
my %diinc = (
for (sort keys %diinc) {
-e $_ or next;
my $di = do $_ or die "Error reading digraphs file $_: ", $@ || $!;
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{$_};
length $mnem == 2 or next; # limit to digraphs
my $class = $diinc{$_};
- $info{
chr
$cp}->{di} //= $mnem;
- $info{
chr
$cp}->{class}->{$class}++;
+ $info{$cp}->{di} //= $mnem;
+ $info{$cp}->{class}->{$class}++;
}
}
}
}