is revision bfd7cbc1
1154daed1Smrg// based on
2154daed1Smrg// XKB keyboard by Hrafnkell Eiriksson - hkelle@rhi.hi.is
3154daed1Smrg//     fixes by Olafur Osvaldsson - oli@isnic.is
4154daed1Smrg//
5154daed1Smrg
6154daed1Smrgdefault partial alphanumeric_keys
7154daed1Smrgxkb_symbols "basic" {
8154daed1Smrg
9154daed1Smrg    include "latin(type4)"
10154daed1Smrg
11bfd7cbc1Smrg    name[Group1]="Icelandic";
12154daed1Smrg
13154daed1Smrg    key <AE02>	{ [         2,   quotedbl,  twosuperior,    oneeighth ]	};
14154daed1Smrg    key <AE04>	{ [         4,     dollar,   onequarter,     currency ]	};
15154daed1Smrg    key <AE11>	{ [odiaeresis, Odiaeresis,    backslash, questiondown ]	};
16154daed1Smrg    key <AE12>	{ [     minus, underscore,     ccedilla,  dead_ogonek ]	};
17154daed1Smrg
18154daed1Smrg    key <AD11>	{ [       eth,        ETH, dead_diaeresis, dead_abovering ] };
19154daed1Smrg    key <AD12>	{ [apostrophe,   question,   asciitilde,  dead_macron ]	};
20154daed1Smrg
21154daed1Smrg    key <AC10>	{ [        ae,         AE,  asciicircum, dead_doubleacute ] };
225a35480eSmrg    key <AC11>	{ [dead_acute, dead_circumflex, dead_circumflex ] };
23154daed1Smrg    key <TLDE>	{ [    degree,  diaeresis,      notsign,      notsign ]	};
24154daed1Smrg
25154daed1Smrg    key <BKSL>	{ [      plus,   asterisk,        grave,   dead_breve ]	};
26154daed1Smrg    key <AB10>	{ [     thorn,      THORN, dead_belowdot, dead_abovedot ] };
27154daed1Smrg
28154daed1Smrg    include "level3(ralt_switch)"
29154daed1Smrg};
30154daed1Smrg
31154daed1Smrgpartial alphanumeric_keys
32154daed1Smrgxkb_symbols "Sundeadkeys" {
33154daed1Smrg
34154daed1Smrg    // modify the basic Icelandic layout to use Sun dead keys
35154daed1Smrg
36154daed1Smrg    include "is(basic)"
37154daed1Smrg
38bfd7cbc1Smrg    name[Group1]="Icelandic (Sun dead keys)";
39154daed1Smrg
40c067fea9Sghen    key <TLDE>	{ [dead_circumflex,     degree,      notsign,    notsign ]	};
41c067fea9Sghen    key <AE12>	{ [dead_acute, dead_grave, dead_cedilla, dead_cedilla ] };
42c067fea9Sghen    key <AD11>	{ [udiaeresis, Udiaeresis, dead_diaeresis, dead_diaeresis ] };
43c067fea9Sghen    key <AD12>	{ [      plus,   asterisk,  dead_tilde,  dead_macron ]	};
44c067fea9Sghen    key <AC10>	{ [odiaeresis, Odiaeresis,  dead_acute,  dead_acute ]	};
45c067fea9Sghen    key <AC11>	{ [adiaeresis, Adiaeresis, dead_circumflex, dead_circumflex ]	};
46c067fea9Sghen    key <BKSL>	{ [numbersign,      acute,  dead_grave,  dead_grave ]	};
47154daed1Smrg};
48154daed1Smrg
49154daed1Smrgpartial alphanumeric_keys
50154daed1Smrgxkb_symbols "nodeadkeys" {
51154daed1Smrg
52154daed1Smrg    // modify the basic Icelandic layout to not have any dead keys
53154daed1Smrg
54154daed1Smrg    include "is(basic)"
55154daed1Smrg
56bfd7cbc1Smrg    name[Group1]="Icelandic (eliminate dead keys)";
57154daed1Smrg
58154daed1Smrg    key <TLDE>	{ [asciicircum,    degree,      notsign,      notsign ]	};
59154daed1Smrg    key <AE12>	{ [apostrophe,      grave,      cedilla,      cedilla ]	};
60154daed1Smrg    key <AD11>	{ [udiaeresis, Udiaeresis,    diaeresis,    diaeresis ]	};
61154daed1Smrg    key <AD12>	{ [      plus,   asterisk,   asciitilde,       macron ]	};
62154daed1Smrg    key <AC10>	{ [odiaeresis, Odiaeresis,        acute,        acute ]	};
63154daed1Smrg    key <AC11>	{ [adiaeresis, Adiaeresis,  asciicircum,  asciicircum ]	};
64154daed1Smrg    key <BKSL>	{ [numbersign,      acute,        grave,        grave ]	};
65154daed1Smrg    key <AB10>	{ [     thorn,      THORN, dead_belowdot,    abovedot ]	};
66154daed1Smrg};
67154daed1Smrg
68154daed1Smrg// Copyright (C) 2004, 2006 Ævar Arnfjörð Bjarmason <avarab@gmail.com>
69154daed1Smrg//
70154daed1Smrg// = HISTORY
71154daed1Smrg// * 2004-09-28:
72154daed1Smrg//   Initial cleanroom writing of the keymap, I just booted Mac OS X, opened
73154daed1Smrg//   TextEdit.app and wrote down what the value produced by each key was when I
74154daed1Smrg//   pressed it, a for a, A for shift + a, å for lalt + a etc and made the
75154daed1Smrg//   keymap from that information
76154daed1Smrg//
77154daed1Smrg// * 2006-01-14:
78154daed1Smrg//   Revised the comments in the file
79154daed1Smrg//
80154daed1Smrg// = NOTES
81154daed1Smrg// * 20 characters in this keymap have no named character defined in
82154daed1Smrg//   include/keysymdef.h and as a result their Unicode code points in
83154daed1Smrg//   hexadecimal are listed here, these can be generated with the following
84154daed1Smrg//   perl command:
85154daed1Smrg//     $ perl -CA -e 'printf "U%x\n", ord shift' Æ
86154daed1Smrg//   and converted back like:
87154daed1Smrg//     $ perl -CO -le '$_=shift;s/[^a-f0-9]//ig;print chr hex' Uc6
88154daed1Smrg// * The Apple logo appears twice on this keymap like the Mac OS and Mac OS X
89154daed1Smrg//   keymaps. In the MacRoman encoding it has the code point 0xF0 (240) but it
90154daed1Smrg//   has no assigned code point in Unicode, the code point Apple uses for it is
91154daed1Smrg//   U+F8FF (63743) which is in the BMP's Private Use Area (U+E000–U+F8FF)
92154daed1Smrg// * This keymap has only been tested on a PowerBook6,5 (iBook G4) but it
93154daed1Smrg//   should work on other Apple laptop models which use the same keyboard
94154daed1Smrg//   layout. It will probably work on standard sized keyboards with little or
95154daed1Smrg//   no modification but it might not support them fully, please report if
96154daed1Smrg//   you're able to get it running with such a keyboard
97154daed1Smrg
98154daed1Smrg// Copied from macintosh_vndr/is
99154daed1Smrgpartial alphanumeric_keys
100154daed1Smrgxkb_symbols "mac" {
101bfd7cbc1Smrg    name[Group1]= "Icelandic (Macintosh)";
102154daed1Smrg
103154daed1Smrg	//-- Row 5 (E) --//
104154daed1Smrg	key <TLDE> {	[	sterling,	section, 	UF8FF,		apostrophe	]	};
105154daed1Smrg	key <AE01> {	[	1,		exclam, 	exclamdown,	VoidSymbol	]	};
106154daed1Smrg	key <AE02> {	[	2,		quotedbl, 	at,		VoidSymbol	]	};
107154daed1Smrg	key <AE03> {	[	3,		numbersign, 	U2122,		sterling	]	};
108154daed1Smrg	key <AE04> {	[	4,		dollar, 	U00A2,		EuroSign	]	};
109154daed1Smrg	key <AE05> {	[	5,		percent, 	U2030,		infinity	]	};
110154daed1Smrg	key <AE06> {	[	6,		ampersand, 	asciicircum,	U2044		]	};
111154daed1Smrg	key <AE07> {	[	7,		slash, 	backslash,	U00F7		]	};
112154daed1Smrg	key <AE08> {	[	8,		parenleft, 	bracketleft,	braceleft	]	};
113154daed1Smrg	key <AE09> {	[	9,		parenright, 	bracketright,	braceright	]	};
114154daed1Smrg	key <AE10> {	[	0,		equal, 	U2260,		U2248		]	};
115154daed1Smrg	key <AE11> {	[	odiaeresis,	Odiaeresis, 	oslash,		Ooblique	]	};
116154daed1Smrg	key <AE12> {	[	minus,		underscore, 	endash,		emdash		]	};
117154daed1Smrg
118154daed1Smrg	
119154daed1Smrg	//-- Row 4 (D) --//
120154daed1Smrg	key <AD01> {	[	q,		Q, 	paragraph,	VoidSymbol	]	};
121154daed1Smrg	key <AD02> {	[	w,		W, 	U2211,		VoidSymbol	]	};
122154daed1Smrg	key <AD03> {	[	e,		E, 	dead_grave,	VoidSymbol	]	};
123154daed1Smrg	key <AD04> {	[	r,		R, 	registered,	VoidSymbol	]	};
124154daed1Smrg	key <AD05> {	[	t,		T, 	degree,		VoidSymbol	]	};
125154daed1Smrg	key <AD06> {	[	y,		Y, 	yen,		VoidSymbol	]	};
126154daed1Smrg	key <AD07> {	[	u,		U, 	dead_diaeresis,	VoidSymbol	]	};
127154daed1Smrg	key <AD08> {	[	i,		I, 	U0131,		U00AA		]	};
128154daed1Smrg	key <AD09> {	[	o,		O, 	dead_circumflex,U00BA		]	};
129154daed1Smrg	key <AD10> {	[	p,		P, 	Greek_pi,	Greek_PI	]	};
130154daed1Smrg	key <AD11> {	[	eth,		Eth, 	U201e,		U201c		]	};
131154daed1Smrg	key <AD12> {	[	apostrophe,	question, 	questiondown,	U00B7		]	};
132154daed1Smrg	
133154daed1Smrg	
134154daed1Smrg	//-- Row 3 (C) --//
135154daed1Smrg	key <AC01> {	[	a,		A, 	aring,		Aring		]	};
136154daed1Smrg	key <AC02> {	[	s,		S, 	ssharp,		abovedot	]	};
137154daed1Smrg	key <AC03> {	[	d,		D, 	U2202,		U2DA		]	};
138154daed1Smrg	key <AC04> {	[	f,		F, 	U192,		macron		]	};
139154daed1Smrg	key <AC05> {	[	g,		G, 	copyright,	breve		]	};
140154daed1Smrg	key <AC06> {	[	h,		H, 	bar,		VoidSymbol	]	};
141154daed1Smrg	key <AC07> {	[	j,		J, 	U2206,		U2dd		]	};
142154daed1Smrg	key <AC08> {	[	k,		K, 	U00AC,		VoidSymbol	]	};
143154daed1Smrg	key <AC09> {	[	l,		L, 	U2026,		caron		]	};
144154daed1Smrg	key <AC10> {	[	ae,		AE, 	oe,		OE		]	};
145154daed1Smrg	key <AC11> {	[	dead_acute,	dead_diaeresis, 	U201A,		U2018		]	};
146154daed1Smrg	key <BKSL> {	[	plus,		asterisk, 	U2022,		plusminus	]	};
147154daed1Smrg	
148154daed1Smrg	
149154daed1Smrg	//-- Row 2  (B) --//
150154daed1Smrg	key <LSGT> {	[	less,		greater, 	section,	UF8FF		]	};
151154daed1Smrg	key <AB01> {	[	z,		Z, 	U3A9,		VoidSymbol	]	};
152154daed1Smrg	key <AB02> {	[	x,		X, 	asciitilde,	VoidSymbol	]	};
153154daed1Smrg	key <AB03> {	[	c,		C, 	ccedilla,	Ccedilla	]	};
154154daed1Smrg	key <AB04> {	[	v,		V, 	U221A,		U25CA		]	};
155154daed1Smrg	key <AB05> {	[	b,		B, 	U222B,		VoidSymbol	]	};
156154daed1Smrg	key <AB06> {	[	n,		N, 	dead_tilde,	VoidSymbol	]	};
157154daed1Smrg	key <AB07> {	[	m,		M, 	U00B5,		VoidSymbol	]	};
158154daed1Smrg	key <AB08> {	[	comma,		semicolon, 	lessthanequal,	guillemotleft	]	};
159154daed1Smrg	key <AB09> {	[	period,		colon, 	greaterthanequal,guillemotright	]	};
160154daed1Smrg	key <AB10> {	[	thorn,		Thorn, 	U2019,		U201d		]	};
161154daed1Smrg
162154daed1Smrg    include "level3(ralt_switch)"
163154daed1Smrg};
164154daed1Smrg
1655a35480eSmrg// This is a modified version of the English Dvorak layout that allows
1665a35480eSmrg// you to type all Icelandic letters under X. It's not a full attempt at
1675a35480eSmrg// nationalizing the layout as e.g. the Norwegian, Swedish and French
1685a35480eSmrg// layouts which modify the primary keys of the basic Dvorak layout
1695a35480eSmrg// extensively.
1705a35480eSmrg
1715a35480eSmrg// Rather it's a simple modification of 5 keys of the US Dvorak layout,
1725a35480eSmrg// it adds Germanic/Icelandic style quotation marks („“), eth (ðÐ), ae
17347fb91feSmrg// (æÆ), endash and emdash (–—), thorn (þÞ), EuroSign (€) and the German
17447fb91feSmrg// Sharp S (ßẞ). These keys aren't used in the US version, making the
17547fb91feSmrg// Icelandic version a superset of it.
1765a35480eSmrg
1775a35480eSmrg// Maybe someone else will make a "full" attempt at an Icelandic layout
1785a35480eSmrg// but I was mostly interested in continuing to type English comfortably
1795a35480eSmrg// as a primary function while being able to type the full Icelandic
1805a35480eSmrg// alphabet as a secondary function.
18147fb91feSmrg//     -- Ævar Arnfjörð Bjarmason <avarab@gmail.com>
1825a35480eSmrg
1835a35480eSmrg// Icelandic Dvorak
1845a35480eSmrgpartial alphanumeric_keys 
1855a35480eSmrgxkb_symbols "dvorak" {
186bfd7cbc1Smrg    name[Group1]= "Icelandic (Dvorak)";
1875a35480eSmrg
1885a35480eSmrg    include "us(dvorak)"
18947fb91feSmrg    include "eurosign(4)"
1905a35480eSmrg
1915a35480eSmrg    key <AD11> { [      slash,  question,    U201e,   U201c   ] };
1925a35480eSmrg    key <AC06> { [       d,     D,           eth,     ETH     ] };
1935a35480eSmrg    key <AC10> { [       s,     S,           ae,      AE      ] };
1945a35480eSmrg    key <AC11> { [   minus,     underscore,  endash,  emdash  ] };
1955a35480eSmrg    key <AB10> { [       z,     Z,           thorn,   Thorn   ] };
19647fb91feSmrg    key <AB06> { [       b,     B,           ssharp,  U1E9E   ] };
1975a35480eSmrg
1985a35480eSmrg    include "level3(ralt_switch)"
1995a35480eSmrg};
200