X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/a6a157c7e2fcc9eab6d334d5118f4e0120a6fdcc..18606a64db0a6c02e5e289074b62728c93b5231b:/keyboard/altgr/windows.eng.inc.pl?ds=sidebyside diff --git a/keyboard/altgr/windows.eng.inc.pl b/keyboard/altgr/windows.eng.inc.pl index 3b68cf7..329cb7f 100644 --- a/keyboard/altgr/windows.eng.inc.pl +++ b/keyboard/altgr/windows.eng.inc.pl @@ -1,28 +1,84 @@ use utf8; use strict; use warnings; +require './keyboard/altgr/groups.inc.pl'; +Shiar_Sheet::KeyboardChars->import('kbchars'); + my @az = ('A'..'Z', 'a'..'z'); my @letters = qw( Á B ¢ Ð É F G H Í J Œ Ø µ Ñ Ó Ö Ä ® § Þ Ú V Å X Ü Æ á b © ð é f g h í j œ ø µ ñ ó ö ä ® ß þ ú v å x ü æ ); -our %rows = map { - $az[$_] => $letters[$_] -} 0 .. $#az; +my %xkb = ( + '@' => "\N{COMBINING DOUBLE ACUTE ACCENT}", + '#' => "\N{COMBINING MACRON}", + '%' => "\N{COMBINING CEDILLA}", + '&' => "\N{COMBINING HORN}", + '*' => "\N{COMBINING OGONEK}", + '(' => "\N{COMBINING BREVE}", + ')' => "\N{COMBINING RING ABOVE}", + '_' => "\N{COMBINING DOT BELOW}", + '>' => "\N{COMBINING CARON}", + '.' => "\N{COMBINING DOT ABOVE}", + '?' => "\N{COMBINING HOOK ABOVE}", +); + +my %rows = ( + '~' => "\N{COMBINING TILDE}", + '`' => "\N{COMBINING GRAVE ACCENT}", + '!' => '¹', + '1' => '¡', + '2' => '²', + '3' => '³', + '$' => '£', + '4' => '¤', + '5' => '€', + '^' => "\N{COMBINING CIRCUMFLEX ACCENT}", + '6' => '¼', + '7' => '½', + '8' => '¾', + '9' => '‘', + '0' => '’', + '-' => '¥', + '+' => '÷', + '=' => '×', + '{' => '“', + '}' => '”', + '[' => '«', + ']' => '»', + ':' => '°', + ';' => '¶', + "'" => "\N{COMBINING ACUTE ACCENT}", + '"' => "\N{COMBINING DIAERESIS}", + '<' => 'Ç', + ',' => 'ç', + '/' => '¿', + '|' => '¦', + '\\'=> '¬', + %xkb, + map { + ($az[$_] eq $letters[$_]) ? () : + ($az[$_] => $letters[$_]) + } 0 .. $#az +); + +my $groups = kbchars(\%rows); +$groups->{def}{''}{$_} .= ' ext' for keys %xkb; +$groups->{flag}{ext} = ['xkb', 'unofficial extensions added in Linux (Gnome, KDE)']; +{ - %{ do 'keyboard/altgr/groups.inc.pl' }, - title => 'altgr', - version => '1.2', + %{$groups}, + title => 'Windows AltGr', + version => '1.4', intro => join("\n", - 'Special characters returned with the AltGr modifier', - 'for the Windows US international layout.', - 'Similar to Apple options.', + 'Resulting selection of Unicode characters', + 'while pressing the AltGr modifier', + 'with the Windows US international layout.', + 'Macs have option options instead.', ), description => [ "Windows US international keyboard layout table", "with the AltGr modifier key.", ], - image => 'keyboard/altgr/ibmmkey.jpg', - moderows => '21-', + image => 'keyboard/altgr/ku2971b-usint.jpg', }