keyboard/altgr: mkcharinfo from updated include structure
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 25 Jan 2024 19:00:13 +0000 (20:00 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 29 Jan 2024 17:16:03 +0000 (18:16 +0100)
Derive from returned object as intermediate key data was replaced in commit
v1.16-32-g23f7b10a84 (2024-01-01) [proper function to convert char maps].

tools/mkcharinfo

index c04ca8a3a5cd5c314d0eca115bb783f28c71d8ba..61f674ff34974ab80ceaa77940340f33824f564b 100755 (executable)
@@ -3,11 +3,12 @@ use 5.014;
 use warnings;
 use utf8;
 no if $] >= 5.018, warnings => 'experimental::smartmatch';
+use lib '.';
 
 use open OUT => ':encoding(utf-8)', ':std';
 use Data::Dump 'pp';
 
-our $VERSION = '1.02';
+our $VERSION = '1.03';
 
 my %info = (
        # prepare presentational string for some control(lish) entries
@@ -35,9 +36,8 @@ eval {
 } or warn "Failed reading unicode tables: $@";
 
 eval {
-       do './keyboard/altgr/macos-abc.eng.inc.pl' or die $@ || $!;
-       our %rows;
-       $info{$_} //= {} for values %rows;
+       my $kbd = do './keyboard/altgr/macos-abc.eng.inc.pl' or die $@ || $!;
+       $info{$_} //= {} for map {s/◌//g; m/\A./g} values %{ $kbd->{key} };
        1;
 } or warn "Failed reading additional keyboard map: $@";