use 5.014;
use warnings;
use utf8;
-no if $] >= 5.018, warnings => 'experimental::smartmatch';
use lib '.';
use open OUT => ':encoding(utf-8)', ':std';
1;
} or warn "Failed reading unicode tables: $@";
-eval {
- 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: $@";
+for my $layout ('macos-abc', 'windows') {
+ eval {
+ my $kbd = do "./keyboard/altgr/$layout.eng.inc.pl" or die $@ || $!;
+ $info{$_} //= {} for map {s/◌//g; m/\A./g} values %{ $kbd->{key} };
+ 1;
+ } or warn "Failed reading additional keyboard map $layout: $@";
+}
eval {
require HTML::Entities;