keyboard/altgr: move code include to project packages
[sheet.git] / keyboard / altgr / windows.eng.inc.pl
index f110c863fe728bd8262819f9337c4ad2a0f24766..06c29931e7f3c1c1015c3daca29fe9ebdeadb836 100644 (file)
@@ -1,6 +1,7 @@
 use utf8;
 use strict;
 use warnings;
+use Shiar_Sheet::KeyboardChars 'kbchars';
 
 my @az = ('A'..'Z', 'a'..'z');
 my @letters = qw(
@@ -21,7 +22,7 @@ my %xkb = (
        '?' => "\N{COMBINING HOOK ABOVE}",
 );
 
-our %rows = (
+my %rows = (
        '~' => "\N{COMBINING TILDE}",
        '`' => "\N{COMBINING GRAVE ACCENT}",
        '!' => 'ยน',
@@ -60,7 +61,7 @@ our %rows = (
        } 0 .. $#az
 );
 
-my $groups = do './keyboard/altgr/groups.inc.pl';
+my $groups = kbchars(\%rows);
 $groups->{def}{''}{$_} .= ' ext' for keys %xkb;
 $groups->{flag}{ext} = ['xkb', 'unofficial extensions added in Linux (Gnome, KDE)'];