is revision 154daed1
1// $XKeyboardConfig: xkeyboard-config/symbols/macintosh_vndr/is,v 1.4 2006/09/17 20:03:34 svu Exp $
2//
3// This file describes the differences between a Macintosh US Extended
4// keymap and an Icelandic keyboard layout in the style of Mac OS and Mac OS X
5//
6// Copyright (C) 2004, 2006 Ævar Arnfjörð Bjarmason <avarab@gmail.com>
7//
8// Permission to use, copy, modify, distribute, and sell this software and its
9// documentation for any purpose is hereby granted without fee, provided that
10// the above copyright notice appear in all copies and that both that
11// copyright notice and this permission notice appear in supporting
12// documentation.
13//
14// The above copyright notice and this permission notice shall be
15// included in all copies or substantial portions of the Software.
16//
17// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20// IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
21// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23// OTHER DEALINGS IN THE SOFTWARE.
24//
25// Except as contained in this notice, the name of a copyright holder shall
26// not be used in advertising or otherwise to promote the sale, use or
27// other dealings in this Software without prior written authorization of
28// the copyright holder.
29//
30// = HISTORY
31// * 2004-09-28:
32//   Initial cleanroom writing of the keymap, I just booted Mac OS X, opened
33//   TextEdit.app and wrote down what the value produced by each key was when I
34//   pressed it, a for a, A for shift + a, å for lalt + a etc and made the
35//   keymap from that information
36//
37// * 2006-01-14:
38//   Revised the comments in the file
39//
40// = NOTES
41// * 20 characters in this keymap have no named character defined in
42//   include/keysymdef.h and as a result their Unicode code points in
43//   hexadecimal are listed here, these can be generated with the following
44//   perl command:
45//     $ perl -CA -e 'printf "U%x\n", ord shift' Æ
46//   and converted back like:
47//     $ perl -CO -le '$_=shift;s/[^a-f0-9]//ig;print chr hex' Uc6
48// * The Apple logo appears twice on this keymap like the Mac OS and Mac OS X
49//   keymaps. In the MacRoman encoding it has the code point 0xF0 (240) but it
50//   has no assigned code point in Unicode, the code point Apple uses for it is
51//   U+F8FF (63743) which is in the BMP's Private Use Area (U+E000–U+F8FF)
52// * This keymap has only been tested on a PowerBook6,5 (iBook G4) but it
53//   should work on other Apple laptop models which use the same keyboard
54//   layout. It will probably work on standard sized keyboards with little or
55//   no modification but it might not support them fully, please report if
56//   you're able to get it running with such a keyboard
57
58partial default alphanumeric_keys
59xkb_symbols "basic" {
60    name[Group1]= "Iceland - Mac";
61
62	//-- Row 5 (E) --//
63	key <TLDE> {	[	sterling,	section, 	UF8FF,		apostrophe	]	};
64	key <AE01> {	[	1,		exclam, 	exclamdown,	VoidSymbol	]	};
65	key <AE02> {	[	2,		quotedbl, 	at,		VoidSymbol	]	};
66	key <AE03> {	[	3,		numbersign, 	U2122,		sterling	]	};
67	key <AE04> {	[	4,		dollar, 	U00A2,		EuroSign	]	};
68	key <AE05> {	[	5,		percent, 	U2030,		infinity	]	};
69	key <AE06> {	[	6,		ampersand, 	asciicircum,	U2044		]	};
70	key <AE07> {	[	7,		slash, 	backslash,	U00F7		]	};
71	key <AE08> {	[	8,		parenleft, 	bracketleft,	braceleft	]	};
72	key <AE09> {	[	9,		parenright, 	bracketright,	braceright	]	};
73	key <AE10> {	[	0,		equal, 	U2260,		U2248		]	};
74	key <AE11> {	[	odiaeresis,	Odiaeresis, 	oslash,		Ooblique	]	};
75	key <AE12> {	[	minus,		underscore, 	endash,		emdash		]	};
76
77	
78	//-- Row 4 (D) --//
79	key <AD01> {	[	q,		Q, 	paragraph,	VoidSymbol	]	};
80	key <AD02> {	[	w,		W, 	U2211,		VoidSymbol	]	};
81	key <AD03> {	[	e,		E, 	dead_grave,	VoidSymbol	]	};
82	key <AD04> {	[	r,		R, 	registered,	VoidSymbol	]	};
83	key <AD05> {	[	t,		T, 	degree,		VoidSymbol	]	};
84	key <AD06> {	[	y,		Y, 	yen,		VoidSymbol	]	};
85	key <AD07> {	[	u,		U, 	dead_diaeresis,	VoidSymbol	]	};
86	key <AD08> {	[	i,		I, 	U0131,		U00AA		]	};
87	key <AD09> {	[	o,		O, 	dead_circumflex,U00BA		]	};
88	key <AD10> {	[	p,		P, 	Greek_pi,	Greek_PI	]	};
89	key <AD11> {	[	eth,		Eth, 	U201e,		U201c		]	};
90	key <AD12> {	[	apostrophe,	question, 	questiondown,	U00B7		]	};
91	
92	
93	//-- Row 3 (C) --//
94	key <AC01> {	[	a,		A, 	aring,		Aring		]	};
95	key <AC02> {	[	s,		S, 	ssharp,		abovedot	]	};
96	key <AC03> {	[	d,		D, 	U2202,		U2DA		]	};
97	key <AC04> {	[	f,		F, 	U192,		macron		]	};
98	key <AC05> {	[	g,		G, 	copyright,	breve		]	};
99	key <AC06> {	[	h,		H, 	bar,		VoidSymbol	]	};
100	key <AC07> {	[	j,		J, 	U2206,		U2dd		]	};
101	key <AC08> {	[	k,		K, 	U00AC,		VoidSymbol	]	};
102	key <AC09> {	[	l,		L, 	U2026,		caron		]	};
103	key <AC10> {	[	ae,		AE, 	oe,		OE		]	};
104	key <AC11> {	[	dead_acute,	dead_diaeresis, 	U201A,		U2018		]	};
105	key <BKSL> {	[	plus,		asterisk, 	U2022,		plusminus	]	};
106	
107	
108	//-- Row 2  (B) --//
109	key <LSGT> {	[	less,		greater, 	section,	UF8FF		]	};
110	key <AB01> {	[	z,		Z, 	U3A9,		VoidSymbol	]	};
111	key <AB02> {	[	x,		X, 	asciitilde,	VoidSymbol	]	};
112	key <AB03> {	[	c,		C, 	ccedilla,	Ccedilla	]	};
113	key <AB04> {	[	v,		V, 	U221A,		U25CA		]	};
114	key <AB05> {	[	b,		B, 	U222B,		VoidSymbol	]	};
115	key <AB06> {	[	n,		N, 	dead_tilde,	VoidSymbol	]	};
116	key <AB07> {	[	m,		M, 	U00B5,		VoidSymbol	]	};
117	key <AB08> {	[	comma,		semicolon, 	lessthanequal,	guillemotleft	]	};
118	key <AB09> {	[	period,		colon, 	greaterthanequal,guillemotright	]	};
119	key <AB10> {	[	thorn,		Thorn, 	U2019,		U201d		]	};
120
121    include "level3(ralt_switch)"
122};
123
124partial alphanumeric_keys
125xkb_symbols "nodeadkeys" {
126    include	"macintosh_vndr/is(basic)" // for consistent naming
127    name[Group1]= "Iceland - Mac, eliminate dead keys";
128};
129