keyboard/altgr: move code include to project packages
[sheet.git] / keyboard / altgr / apl.eng.inc.pl
index 644450d55054f17919f0989592c6fa0315259e57..b8636b7d49454ee544b6330d9be1c0c5742f3e64 100644 (file)
@@ -1,7 +1,17 @@
 use utf8;
 use strict;
 use warnings;
-our %rows = (
+use Shiar_Sheet::KeyboardChars 'kbchars';
+
+my %dyalogx = (
+       'Q' => '⍰',
+       'R' => '⌾',
+       'G' => '⍢',
+       'B' => '⍭',
+       'N' => '⍡',
+       'M' => '∥',
+);
+my %rows = (
        '~' => '⌺',
        '!' => '⌶',
        '@' => '⍫',
@@ -79,10 +89,16 @@ our %rows = (
        ',' => '⍝',
        '.' => '⍀',
        '/' => '⌿',
+       %dyalogx,
 );
 
+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'];
+
 +{
-       %{ do 'keyboard/altgr/groups.inc.pl' },
+       %{$groups},
        version => '1.0',
        title => 'APL',
        intro => join("\n",