keyboard/altgr: cache code include (package)
[sheet.git] / keyboard / altgr / apl.eng.inc.pl
index a2459967cae39a5d83959b5cbcf762282ae60366..215fc8ed81fe605af4a92f273953b7a55efc4cb6 100644 (file)
@@ -1,6 +1,8 @@
 use utf8;
 use strict;
 use warnings;
+require './keyboard/altgr/groups.inc.pl';
+Shiar_Sheet::KeyboardChars->import('kbchars');
 
 my %dyalogx = (
        'Q' => '⍰',
@@ -10,7 +12,7 @@ my %dyalogx = (
        'N' => '⍡',
        'M' => '∥',
 );
-our %rows = (
+my %rows = (
        '~' => '⌺',
        '!' => '⌶',
        '@' => '⍫',
@@ -91,7 +93,7 @@ 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'];