no revision 46185892
1// Keyboard layouts for Norway.
2
3default partial alphanumeric_keys
4xkb_symbols "basic" {
5
6    // With dead-key support and all ISO-8859-1 characters available.
7
8    include "latin(type2)"
9
10    name[Group1]="Norwegian";
11
12    key <TLDE>	{ [       bar,    section,    brokenbar,    paragraph ]	};
13    key <AE05>	{ [         5,    percent,      onehalf,    0x1002030 ]	};
14    key <AE11>	{ [      plus,   question,    plusminus, questiondown ]	};
15    key <AE12>	{ [ backslash, dead_grave,   dead_acute,      notsign ]	};
16
17    key <AD04>	{ [         r,          R,   registered,    trademark ]	};
18    key <AD10>	{ [         p,          P,     Greek_pi,     Greek_PI ]	};
19
20    key <AC10>	{ [    oslash,     Oslash,   dead_acute, dead_doubleacute ] };
21    key <AC11>	{ [        ae,         AE, dead_circumflex, dead_caron]	};
22    key <BKSL>	{ [apostrophe,   asterisk, dead_doubleacute, multiply ]	};
23
24    key <LSGT>	{ [      less,    greater,      onehalf, threequarters]	};
25    key <AB09>	{ [    period,      colon,   ellipsis, periodcentered ]	};
26    key <AB10>	{ [     minus, underscore,       endash,       emdash ]	};
27
28    include "nbsp(level3n)"
29    include "keypad(ossmath)"
30    include "kpdl(comma)"
31
32    include "level3(ralt_switch)"
33};
34
35partial alphanumeric_keys
36xkb_symbols "nodeadkeys" {
37
38    include "no(basic)"
39
40    name[Group1]="Norwegian (no dead keys)";
41
42    key <AE12>	{ [ backslash,      grave,        acute,       ogonek ]	};
43    key <AD12>	{ [ diaeresis, asciicircum,  asciitilde,       macron ]	};
44    key <AC10>	{ [    oslash,     Oslash,        acute,  doubleacute ]	};
45    key <AC11>	{ [        ae,         AE,  asciicircum,        caron ]	};
46    key <AB08>	{ [     comma,  semicolon,      cedilla,       ogonek ]	};
47    key <AB09>	{ [    period,      colon, periodcentered,   abovedot ]	};
48};
49
50partial alphanumeric_keys
51xkb_symbols "winkeys" {
52
53     include "no(basic)"
54
55     name[Group1]="Norwegian (Windows)";
56
57     include "eurosign(5)"
58};
59
60// Norwegian Dvorak
61partial alphanumeric_keys
62xkb_symbols "dvorak" {
63
64    include "us(dvorak)"
65
66    name[Group1]="Norwegian (Dvorak)";
67
68    key <TLDE> { [	  bar,	section, brokenbar, paragraph	] };
69    key <AE01> { [	    1,	exclam, exclamdown, onesuperior	] };
70    key <AE02> { [	    2,	quotedbl,   at,     twosuperior	] };
71    key <AE03> { [	    3,	numbersign, sterling, threesuperior ] };
72    key <AE04> { [	    4,	currency,   dollar,  onequarter	] };
73    key <AE05> { [	    5,	percent,    onehalf,	onehalf	] };
74    key <AE06> { [	    6,	ampersand,  threequarters, threequarters ] };
75    key <AE07> { [	    7,	slash,      braceleft, division	] };
76    key <AE08> { [	    8,	parenleft,  bracketleft		] };
77    key <AE09> { [	    9,	parenright, bracketright	] };
78    key <AE10> { [	    0,	equal,	    braceright		] };
79    key <AE11> { [	 plus,	question,   plusminus, questiondown ] };
80    key <AE12> { [  backslash,	grave,	    dead_acute,	dead_grave ] };
81
82    key <AD01> { [       aring,	Aring,  braceright, bracketright ] };
83    key <AD02> { [	comma,	semicolon, dead_cedilla, cedilla ] };
84    key <AD03> { [      period,	colon,  periodcentered		 ] };
85    key <AD04> { [	    p,	P,      thorn,	THORN		 ] };
86    key <AD05> { [	    y,	Y,      yen			 ] };
87    key <AD06> { [	    f,	F,      ordfeminine		 ] };
88    key <AD08> { [	    c,	C,      ccedilla, copyright	 ] };
89    key <AD09> { [	    r,	R,      registered		 ] };
90    key <AD11> { [  apostrophe,	asterisk, dead_circumflex, acute ] };
91    key <AD12> { [dead_diaeresis, dead_circumflex, dead_tilde, dead_caron ] };
92
93    key <AC03> { [	    e,	E,      EuroSign,	cent	 ] };
94    key <AC05> { [	    i,	I,      idotless,       Iabovedot] };
95    key <AC06> { [	    d,	D,      eth,		ETH	 ] };
96    key <AC10> { [	    s,	S,      ssharp,		U1E9E	 ] };
97    key <AC11> { [	minus,	underscore, hyphen,	diaeresis] };
98    key <BKSL> { [	 less,	greater, guillemotleft, guillemotright	] };
99
100    key <LSGT> { [     oslash,	Oslash, bar,	       backslash ] };
101    key <AB01> { [	   ae,	AE,     braceleft,    bracketleft] };
102    key <AB05> { [	    x,	X,      multiply		 ] };
103    key <AB07> { [	    m,	M,	mu			 ] };
104
105    key <SPCE> { [	 space,	space, nobreakspace, nobreakspace] };
106
107    include "level3(ralt_switch)"
108};
109
110partial alphanumeric_keys
111xkb_symbols "smi" {
112
113    // Northern Sami layouts for Finland, Norway and Sweden.
114    //
115    // From spec on http://www.hum.uit.no/a/trond/se-lat9-no-keys.html.
116    // Written by Børre Gaup <boerre.gaup@pc.nu>.
117
118    name[Group1]= "Northern Saami (Norway)";
119
120    key <TLDE>	{ [       bar,    section,    brokenbar,    paragraph ]	};
121    key <AE01>	{ [         1,     exclam,    copyright,   exclamdown ]	};
122    key <AE02>	{ [         2,   quotedbl,           at,   registered ]	};
123    key <AE03>	{ [         3, numbersign,     sterling,         less ]	};
124    key <AE04>	{ [         4,     dollar,       dollar,      greater ]	};
125    key <AE05>	{ [         5,    percent,        U2022,        U2030 ]	};
126    key <AE06>	{ [         6,  ampersand,      section,    paragraph ]	};
127    key <AE07>	{ [         7,      slash,    braceleft,          bar ]	};
128    key <AE08>	{ [         8,  parenleft,  bracketleft,    braceleft ]	};
129    key <AE09>	{ [         9, parenright, bracketright,   braceright ]	};
130    key <AE10>	{ [         0,      equal,   braceright,     notequal ]	};
131    key <AE11>	{ [      plus,   question,     division, questiondown ]	};
132    key <AE12>	{ [ backslash,      grave,        acute,   asciitilde ]	};
133
134    key <AD01>	{ [    aacute,     Aacute,            q,            Q ]	};
135    key <AD02>	{ [    scaron,     Scaron,            w,            W ]	};
136    key <AD03>	{ [         e,          E,       eacute,       Eacute ]	};
137    key <AD04>	{ [         r,          R,   registered,    trademark ]	};
138    key <AD05>	{ [         t,          T,       tslash,       Tslash ]	};
139    key <AD06>	{ [         y,          Y,       yacute,       Yacute ]	};
140    key <AD07>	{ [         u,          U,   udiaeresis,   Udiaeresis ]	};
141    key <AD08>	{ [         i,          I,   idiaeresis,   Idiaeresis ]	};
142    key <AD09>	{ [         o,          O,           oe,           OE ]	};
143    key <AD10>	{ [         p,          P,        thorn,        THORN ]	};
144    key <AD11>	{ [     aring,      Aring,  acircumflex,  Acircumflex ]	};
145    key <AD12>	{ [       eng,        ENG,     quotedbl,  asciicircum ]	};
146
147    key <AC01>	{ [         a,          A,       agrave,       Agrave ]	};
148    key <AC02>	{ [         s,          S,       ssharp,   apostrophe ]	};
149    key <AC03>	{ [         d,          D,          eth,          ETH ]	};
150    key <AC04>	{ [         f,          F,  ordfeminine,  ordfeminine ]	};
151    key <AC05>	{ [         g,          G,       gcaron,       Gcaron ]	};
152    key <AC06>	{ [         h,          H,        U01E5,        U01E4 ]	};
153    key <AC07>	{ [         j,          J,      notsign,     multiply ]	};
154    key <AC08>	{ [         k,          K,        U01E9,        U01E8 ]	};
155    key <AC09>	{ [         l,          L,       degree,       hyphen ]	};
156    key <AC10>	{ [    oslash,     Oslash,   odiaeresis,   Odiaeresis ]	};
157    key <AC11>	{ [        ae,         AE,   adiaeresis,   Adiaeresis ]	};
158    key <BKSL>	{ [   dstroke,    Dstroke,   apostrophe,     asterisk ]	};
159
160    key <LSGT>	{ [    zcaron,     Zcaron,        U01EF,        U01EE ] }; // ǯ Ǯ
161    key <AB01>	{ [         z,          Z,          ezh,          EZH ]	}; // ʒ Ʒ
162    key <AB02>	{ [    ccaron,     Ccaron,            x,            X ]	};
163    key <AB03>	{ [         c,          C,     ccedilla,     Ccedilla ]	};
164    key <AB04>	{ [         v,          V, lessthanequal, guillemotleft ] };
165    key <AB05>	{ [         b,          B, greaterthanequal, guillemotright ] };
166    key <AB06>	{ [         n,          N, leftsinglequotemark, leftdoublequotemark ] };
167    key <AB07>	{ [         m,          M, rightsinglequotemark, rightdoublequotemark ]	};
168    key <AB08>	{ [     comma,  semicolon, singlelowquotemark, doublelowquotemark ] };
169    key <AB09>	{ [    period,      colon,     ellipsis, periodcentered ] };
170    key <AB10>	{ [     minus, underscore,       endash,       emdash ]	};
171
172    include "level3(ralt_switch)"
173};
174
175partial alphanumeric_keys
176xkb_symbols "smi_nodeadkeys" {
177
178    include "no(smi)"
179
180    name[Group1]= "Northern Saami (Norway, no dead keys)";
181
182    key <AE12>	{ [ backslash,      grave,        acute,       ogonek ]	};
183};
184
185partial alphanumeric_keys
186xkb_symbols "mac" {
187
188    include "latin(type4)"
189
190    name[Group1]= "Norwegian (Macintosh)";
191
192    key <TLDE>	{ [       bar,    section     ]	};
193    key <AE03>	{ [         3, numbersign,     sterling,     sterling ]	};
194    key <AE04>	{ [         4,   currency,       dollar,       dollar ]	};
195    key <AE06>	{ [         6,  ampersand, threequarters, fiveeighths ]	};
196    key <AE07>	{ [         7,      slash,          bar,    backslash ]	};
197    key <AE08>	{ [         8,  parenleft,  bracketleft,    braceleft ]	};
198    key <AE09>	{ [         9, parenright, bracketright,   braceright ]	};
199    key <AE11>	{ [      plus,   question     ]	};
200    key <AE12>	{ [dead_grave, dead_acute,        acute,  dead_ogonek ]	};
201
202    key <AD11>	{ [     aring,      Aring     ]	};
203    key <AD12>	{ [ diaeresis, asciicircum,  asciitilde,  dead_macron ]	};
204
205    key <AC10>	{ [    oslash,     Oslash,   odiaeresis,   Odiaeresis ]	};
206    key <AC11>	{ [        ae,         AE     ]	};
207    key <BKSL>	{ [        at,   asterisk     ]	};
208};
209
210partial alphanumeric_keys
211xkb_symbols "mac_nodeadkeys" {
212
213    include "no(mac)"
214
215    name[Group1]= "Norwegian (Macintosh, no dead keys)";
216
217    key <AE12>	{ [      grave,     acute,        acute,       ogonek ]	};
218    key <AD12>	{ [  diaeresis, asciicircum, asciitilde,       macron ]	};
219};
220
221partial alphanumeric_keys
222xkb_symbols "colemak" {
223
224    include "no(basic)"
225
226    name[Group1]= "Norwegian (Colemak)";
227
228    // See https://colemak.com/.
229    // Q W F P G   J L U Y Ø Å ¨
230    // A R S T D   H N E I O Æ '
231    // < Z X C V   B K M , . -
232
233    key <AD03>	{ [         f,          F,      dstroke,  ordfeminine ] };
234    key <AD04>	{ [         p,          P,     Greek_pi,     Greek_PI ] };
235    key <AD05>	{ [         g,          G,          eng,          ENG ] };
236    key <AD06>	{ [         j,          J ] };
237    key <AD07>	{ [         l,          L,      lstroke,      Lstroke ] };
238    key <AD08>	{ [         u,          U,    downarrow,      uparrow ] };
239    key <AD09>	{ [         y,          Y,    leftarrow,          yen ] };
240    key <AD10>	{ [    oslash,     Oslash,   dead_acute, dead_doubleacute ] };
241
242    key <AC02>	{ [         r,          R,   registered,    trademark ] };
243    key <AC03>	{ [         s,          S,       ssharp,      section ] };
244    key <AC04>	{ [         t,          T,        thorn,        THORN ] };
245    key <AC05>	{ [         d,          D,          eth,          ETH ] };
246    key <AC07>	{ [         n,          N ] };
247    key <AC08>	{ [         e,          E,     EuroSign,         cent ] };
248    key <AC09>	{ [         i,          I,   rightarrow,     idotless ] };
249    key <AC10>	{ [         o,          O,           oe,           OE ] };
250
251    key <AB06>	{ [         k,          K,          kra,    ampersand ] };
252};
253
254// EXTRAS:
255
256partial alphanumeric_keys
257	xkb_symbols "sun_type6" {
258	include "sun_vndr/no(sun_type6)"
259};
260