use utf8;
use strict;
use warnings;
use Shiar_Sheet::KeyboardChars 'kbchars';

my %rows = (
	'~' => '¦',
	'!' => '¡',
	'1' => '¹',
	'@' => '½', # uk "
	'2' => "\N{COMBINING DIAERESIS}",
	'#' => '⅓', # uk £
	'3' => '³',
	'$' => '¼',
	'4' => '€',
	'%' => '⅜',
	'5' => '½',
	'^' => '⅝',
	'6' => "\N{COMBINING CIRCUMFLEX ACCENT}",
	'&' => '⅞',
	'7' => '{',
	'*' => '™',
	'8' => '[',
	'(' => '±',
	'9' => ']',
	')' => '°',
	'0' => '}',
	'_' => '¿',
	'-' => '\\',
	'+' => "\N{COMBINING OGONEK}",
	'=' => "\N{COMBINING CEDILLA}",
	'Q' => 'Ω',
	'q' => '@',
	'W' => 'Ẃ',
	'w' => 'ẃ',
	'E' => 'É',
	'e' => 'é',
	'R' => '®',
	'r' => '¶',
	'T' => 'Ŧ',
	't' => 'ŧ',
	'Y' => 'Ý',
	'y' => 'ý',
	'U' => 'Ú',
	'u' => 'ú',
	'I' => 'Í',
	'i' => 'í',
	'O' => 'Ó',
	'o' => 'ó',
	'P' => 'Þ',
	'p' => 'þ',
	'{' => "\N{COMBINING RING ABOVE}",
	'}' => "\N{COMBINING MACRON}",
	'A' => 'Á',
	'a' => 'á',
	'S' => '§',
	's' => 'ß',
	'D' => 'Ð',
	'd' => 'ð',
	'F' => 'ª',
	'f' => 'đ',
	'G' => 'Ŋ',
	'g' => 'ŋ',
	'H' => 'Ħ',
	'h' => 'ħ',
	'J' => "\N{COMBINING HORN}",
	'j' => "\N{COMBINING HOOK ABOVE}",
	'K' => '&',
	'k' => 'ĸ',
	'L' => 'Ł',
	'l' => 'ł',
	':' => "\N{COMBINING DOUBLE ACUTE ACCENT}",
	';' => "\N{COMBINING ACUTE ACCENT}",
	'"' => "\N{COMBINING CARON}", # uk @
	"'" => "\N{COMBINING ACUTE ACCENT}", # same as ;?
	'|' => "\N{COMBINING TILDE}",
	'\\'=> "\N{COMBINING BREVE}",
	'~' => "\N{COMBINING GRAVE ACCENT}",
	'`' => '¦',
	'Z' => '<',
	'z' => '«',
	'X' => '>',
	'x' => '»',
	'C' => 'Ç',
	'c' => 'ç',
	'V' => '‘',
	'v' => '“',
	'B' => '’',
	'b' => '”',
	#'N'=> 'N',
	#'n'=> 'n',
	'M' => 'º',
	'm' => 'µ',
	'<' => '×',
	',' => '─',
	'>' => '÷',
	'.' => '·',
	'?' => "\N{COMBINING DOT ABOVE}",
	'/' => "\N{COMBINING DOT BELOW}",
);
$rows{'['} = $rows{'2'};
$rows{']'} = $rows{'#'};

+{
	%{ kbchars(\%rows) },
	title => 'UK-extended',
	category => 'latin/thirdparty',
	version => '1.0',
	intro => join("\n",
		"A Chrome OS extension",
		"expanding on Windows' UK Extended QWERTY keyboard.",
		'Similar to the <a href="/keyboard/altgr">US international</a> variant.',
	),
	description => [
		"Google UK-Extended keyboard layout table for Chrome OS",
		"with the AltGr modifier key.",
	],
	image => 'data/keyboard/thumb/chromebook-hp11.jpg',
	imagealt => 'AltGr key on a HP Chromebook 11 G2',
}
