keyboard/altgr/apl: force lookalike keys as transliterated
[sheet.git] / keyboard / altgr / apl.eng.inc.pl
index 85d49ea54e0a43fe6836f2159c5ecb2c1c26026a..a2459967cae39a5d83959b5cbcf762282ae60366 100644 (file)
@@ -1,6 +1,15 @@
 use utf8;
 use strict;
 use warnings;
+
+my %dyalogx = (
+       'Q' => '⍰',
+       'R' => '⌾',
+       'G' => '⍢',
+       'B' => '⍭',
+       'N' => '⍡',
+       'M' => '∥',
+);
 our %rows = (
        '~' => '⌺',
        '!' => '⌶',
@@ -40,12 +49,12 @@ our %rows = (
        'w' => '⍵',
        'e' => '∊',
        'r' => '⍴',
-       't' => '~',
+       't' => '∼', # ~
        'y' => '↑',
        'u' => '↓',
        'i' => '⍳',
        'o' => '○',
-       'p' => '*',
+       'p' => '⋆', # *
        '[' => '←',
        ']' => '→',
        '\\'=> '⊢',
@@ -79,10 +88,16 @@ our %rows = (
        ',' => '⍝',
        '.' => '⍀',
        '/' => '⌿',
+       %dyalogx,
 );
 
+my $groups = do 'keyboard/altgr/groups.inc.pl';
+$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",