keyboard/altgr: msx-graph mode counterpart to msx code
[sheet.git] / keyboard / altgr / msx.eng.inc.pl
index 6ea44e2d8f07d190193f3c8e46c2fc83432491ef..a7d8c0bfcb75ba517a6489f9744e429cb116dca7 100644 (file)
@@ -1,7 +1,9 @@
 use utf8;
 use strict;
 use warnings;
-our %rows = (
+use Shiar_Sheet::KeyboardChars 'kbchars';
+
+my %rows = (
        '!' => '¡',
        '1' => 'ƒ',
        '@' => '₧',
@@ -79,18 +81,36 @@ our %rows = (
        '/' => 'º',
 );
 
+my %uc = (
+       (map { (uc $_ => uc $rows{$_}) } grep {
+               !defined $rows{uc $_}
+       } keys %rows),
+       '|' => '€',
+       'M' => 'Ú',
+       '+' => 'Ø',
+);
+
+my $groups = kbchars({%rows, %uc});
+$groups->{def}{''}{$_} .= ' ext' for keys %uc;
+$groups->{flag}{ext} = ['anachrone', 'expected uppercase variants if allowed by charset'];
+
 +{
-       %{ do 'keyboard/altgr/groups.inc.pl' },
-       version => '1.0',
-       title => 'msx code',
+       %{ $groups },
+       version => '1.2',
+       title => 'MSX code',
+       category => 'legacy/msx/latin',
        intro => join("\n",
-               'Resulting <a href="/unicode">selection</a> of equivalent <a href="/charset">Unicode</a> characters',
+               'Resulting <a href="/unicode">selection</a>',
+               'of equivalent <a href="/charset">Unicode</a> characters',
                "when the <em>code</em> key is pressed on an MSX home computer",
                "(International model such as Toshiba HX10 or Phillips NMS 8245).",
+               'See also <a href="/keyboard/altgr/msx-graph">block graphics</a>',
+               "from pressing <em>graph</em>.",
        ),
        description => [
                "MSX keyboard layout table",
                "with the code modifier key.",
        ],
-       image => 'keyboard/altgr/msxcode.jpg',
+       image => 'data/keyboard/thumb/msxcode.jpg',
+       imagealt => 'Code key on a Toshiba HX10 with graph labels',
 }