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