keyboard/altgr: move code include to project packages
[sheet.git] / keyboard / altgr / apl.eng.inc.pl
index d5eb309ec796af05d0cdafdb226ef2bfd65d8c32..b8636b7d49454ee544b6330d9be1c0c5742f3e64 100644 (file)
@@ -1,6 +1,7 @@
 use utf8;
 use strict;
 use warnings;
+use Shiar_Sheet::KeyboardChars 'kbchars';
 
 my %dyalogx = (
        'Q' => '⍰',
@@ -10,7 +11,7 @@ my %dyalogx = (
        'N' => '⍡',
        'M' => '∥',
 );
-our %rows = (
+my %rows = (
        '~' => '⌺',
        '!' => '⌶',
        '@' => '⍫',
@@ -91,7 +92,8 @@ our %rows = (
        %dyalogx,
 );
 
-my $groups = do 'keyboard/altgr/groups.inc.pl';
+my $groups = kbchars(\%rows);
+$groups->{def}{''}{$_} = 'g4' for split //,'weEriIoOa/*'; # lookalikes
 $groups->{def}{''}{$_} .= ' ext' for keys %dyalogx;
 $groups->{flag}{ext} = ['extended', 'optional operators not available in all variants'];