keyboard/altgr/apl: optional dyalog shift extensions
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 30 Dec 2023 04:18:32 +0000 (05:18 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 1 Jan 2024 08:32:47 +0000 (09:32 +0100)
Shifted characters documented in Dyalog APL/Linux variants.

keyboard/altgr/apl.eng.inc.pl

index 644450d55054f17919f0989592c6fa0315259e57..d5eb309ec796af05d0cdafdb226ef2bfd65d8c32 100644 (file)
@@ -1,6 +1,15 @@
 use utf8;
 use strict;
 use warnings;
+
+my %dyalogx = (
+       'Q' => '⍰',
+       'R' => '⌾',
+       'G' => '⍢',
+       'B' => '⍭',
+       'N' => '⍡',
+       'M' => '∥',
+);
 our %rows = (
        '~' => '⌺',
        '!' => '⌶',
@@ -79,10 +88,15 @@ our %rows = (
        ',' => '⍝',
        '.' => '⍀',
        '/' => '⌿',
+       %dyalogx,
 );
 
+my $groups = do 'keyboard/altgr/groups.inc.pl';
+$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",