keyboard/altgr: order index by subpage categories
[sheet.git] / keyboard / altgr / windows.eng.inc.pl
index f110c863fe728bd8262819f9337c4ad2a0f24766..252884dc9c978700ae516b1dbb0b4544a10ed324 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,13 +61,14 @@ 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)'];
 
 +{
        %{$groups},
        title => 'Windows AltGr',
+       category => 'latin/windows',
        version => '1.4',
        intro => join("\n",
                'Resulting <a href="/unicode">selection</a> of <a href="/charset">Unicode</a> characters',
@@ -78,5 +80,6 @@ $groups->{flag}{ext} = ['xkb', 'unofficial extensions added in Linux (Gnome, KDE
                "Windows US international keyboard layout table",
                "with the AltGr modifier key.",
        ],
-       image => 'keyboard/altgr/ku2971b-usint.jpg',
+       image => 'data/keyboard/thumb/ku2971b-usint.jpg',
+       imagealt => 'AltGr on a KeyboardCompany KU2971B with USA International keycaps',
 }