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