keyboard/altgr: cache code include (package)
[sheet.git] / keyboard / altgr / macos.eng.inc.pl
index ea31116619168e98e3a121ea54e4fb529c7e1984..4c80397d0bab490780d89d5fb46c773a79046ff3 100644 (file)
@@ -1,7 +1,10 @@
 use utf8;
 use strict;
 use warnings;
-our %rows = (
+require './keyboard/altgr/groups.inc.pl';
+Shiar_Sheet::KeyboardChars->import('kbchars');
+
+my %rows = (
        'A' => 'Å',
        'a' => 'å',
        'B' => 'ı',
@@ -99,9 +102,9 @@ our %rows = (
 );
 
 +{
-       %{ do 'keyboard/altgr/groups.inc.pl' },
+       %{ kbchars(\%rows) },
        version => '1.3',
-       title => 'option key',
+       title => 'US option',
        intro => join("\n",
                'Resulting <a href="/unicode">selection</a> of <a href="/charset">Unicode</a> characters',
                "while pressing ⌥ Option (Alt) with Apple's US (or US International) layout",
@@ -113,5 +116,5 @@ our %rows = (
                "Apple US International keyboard layout table",
                "with the Option modifier key.",
        ],
-       image => 'keyboard/altgr/macoption.jpg',
+       image => 'keyboard/altgr/matias-fk302.jpg',
 }