X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/99317852aa1e1dc5f4a07ed93b50c6dcb19b1565..55fccedff787f05a5950ff827b5bbd41ba597e3f:/tools/mkcharinfo diff --git a/tools/mkcharinfo b/tools/mkcharinfo index 0f5d9bb..61f674f 100755 --- a/tools/mkcharinfo +++ b/tools/mkcharinfo @@ -3,11 +3,12 @@ use 5.014; use warnings; use utf8; no if $] >= 5.018, warnings => 'experimental::smartmatch'; +use lib '.'; -use open OUT => ':utf8', ':std'; +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 @@ -34,6 +35,12 @@ eval { 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: $@"; + eval { require HTML::Entities; our %char2entity;