keyboard/altgr: override unidecode transliterations
[sheet.git] / keyboard / altgr / apl.eng.inc.pl
index 644450d55054f17919f0989592c6fa0315259e57..c796cb31f61169737c74cb102addcd2529301e0a 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,12 +89,18 @@ our %rows = (
        ',' => '⍝',
        '.' => '⍀',
        '/' => '⌿',
+       %dyalogx,
 );
 
+my $groups = kbchars(\%rows);
+$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',
+       category => 'specialised',
        intro => join("\n",
                'Resulting <a href="/charset">Unicode</a> characters',
                'of a typical <a href="/apl">APL</a> keyboard layout',
@@ -96,5 +112,6 @@ our %rows = (
                'Typical IBM-derived APL keyboard layout,',
                'as found in APLX and Dyalog implementations.',
        ],
-       image => 'keyboard/altgr/unicomp-apl.jpg',
+       image => 'data/keyboard/thumb/unicomp-apl.jpg',
+       imagealt => 'Alt on a custom keyboard with APL labels',
 }