keyboard/altgr: cache code include (package)
[sheet.git] / keyboard / altgr / ukext.eng.inc.pl
index 29702ec64b32f9da08c60431fab9807fe48c9ec5..87d629a012652ec5a8372dac5601200096a306cb 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 = (
        '~' => '¦',
        '!' => '¡',
        '1' => '¹',
@@ -85,8 +88,8 @@ our %rows = (
        'v' => '“',
        'B' => '’',
        'b' => '”',
-       'N' => 'N',
-       'n' => 'n',
+       #'N'=> 'N',
+       #'n'=> 'n',
        'M' => 'º',
        'm' => 'µ',
        '<' => '×',
@@ -100,7 +103,7 @@ $rows{'['} = $rows{'2'};
 $rows{']'} = $rows{'#'};
 
 +{
-       %{ do 'keyboard/altgr/groups.inc.pl' },
+       %{ kbchars(\%rows) },
        title => 'UK-extended',
        version => '1.0',
        intro => join("\n",
@@ -112,4 +115,5 @@ $rows{']'} = $rows{'#'};
                "Google UK-Extended keyboard layout table for Chrome OS",
                "with the AltGr modifier key.",
        ],
+       image => 'keyboard/altgr/chromebook-hp11.jpg',
 }