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