| 1 |
// Keyboard layouts for Norway. |
| 2 |
|
| 3 |
default partial alphanumeric_keys |
| 4 |
xkb_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, permille ] }; |
| 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 |
|
| 35 |
partial alphanumeric_keys |
| 36 |
xkb_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 <AD11> { [ aring, Aring, radical, dagger ] }; |
| 44 |
key <AD12> { [ diaeresis, asciicircum, asciitilde, macron ] }; |
| 45 |
key <AC07> { [ j, J, ezh, EZH ] }; |
| 46 |
key <AC10> { [ oslash, Oslash, acute, doubleacute ] }; |
| 47 |
key <AC11> { [ ae, AE, asciicircum, caron ] }; |
| 48 |
key <BKSL> { [apostrophe, asterisk, ellipsis, multiply ] }; |
| 49 |
key <AB08> { [ comma, semicolon, cedilla, ogonek ] }; |
| 50 |
key <AB09> { [ period, colon, periodcentered, abovedot ] }; |
| 51 |
}; |
| 52 |
|
| 53 |
partial alphanumeric_keys |
| 54 |
xkb_symbols "winkeys" { |
| 55 |
|
| 56 |
include "no(basic)" |
| 57 |
|
| 58 |
name[Group1]="Norwegian (Windows)"; |
| 59 |
|
| 60 |
include "eurosign(5)" |
| 61 |
}; |
| 62 |
|
| 63 |
// Norwegian Dvorak |
| 64 |
partial alphanumeric_keys |
| 65 |
xkb_symbols "dvorak" { |
| 66 |
|
| 67 |
include "us(dvorak)" |
| 68 |
|
| 69 |
name[Group1]="Norwegian (Dvorak)"; |
| 70 |
|
| 71 |
key <TLDE> { [ bar, section, brokenbar, paragraph ] }; |
| 72 |
key <AE01> { [ 1, exclam, exclamdown, onesuperior ] }; |
| 73 |
key <AE02> { [ 2, quotedbl, at, twosuperior ] }; |
| 74 |
key <AE03> { [ 3, numbersign, sterling, threesuperior ] }; |
| 75 |
key <AE04> { [ 4, currency, dollar, onequarter ] }; |
| 76 |
key <AE05> { [ 5, percent, onehalf, onehalf ] }; |
| 77 |
key <AE06> { [ 6, ampersand, threequarters, threequarters ] }; |
| 78 |
key <AE07> { [ 7, slash, braceleft, division ] }; |
| 79 |
key <AE08> { [ 8, parenleft, bracketleft ] }; |
| 80 |
key <AE09> { [ 9, parenright, bracketright ] }; |
| 81 |
key <AE10> { [ 0, equal, braceright ] }; |
| 82 |
key <AE11> { [ plus, question, plusminus, questiondown ] }; |
| 83 |
key <AE12> { [ backslash, grave, dead_acute, dead_grave ] }; |
| 84 |
|
| 85 |
key <AD01> { [ aring, Aring, braceright, bracketright ] }; |
| 86 |
key <AD02> { [ comma, semicolon, dead_cedilla, cedilla ] }; |
| 87 |
key <AD03> { [ period, colon, periodcentered ] }; |
| 88 |
key <AD04> { [ p, P, thorn, THORN ] }; |
| 89 |
key <AD05> { [ y, Y, yen ] }; |
| 90 |
key <AD06> { [ f, F, ordfeminine ] }; |
| 91 |
key <AD08> { [ c, C, ccedilla, copyright ] }; |
| 92 |
key <AD09> { [ r, R, registered ] }; |
| 93 |
key <AD11> { [ apostrophe, asterisk, dead_circumflex, acute ] }; |
| 94 |
key <AD12> { [dead_diaeresis, dead_circumflex, dead_tilde, dead_caron ] }; |
| 95 |
|
| 96 |
key <AC03> { [ e, E, EuroSign, cent ] }; |
| 97 |
key <AC05> { [ i, I, idotless, Iabovedot] }; |
| 98 |
key <AC06> { [ d, D, eth, ETH ] }; |
| 99 |
key <AC10> { [ s, S, ssharp, U1E9E ] }; |
| 100 |
key <AC11> { [ minus, underscore, hyphen, diaeresis] }; |
| 101 |
key <BKSL> { [ less, greater, guillemotleft, guillemotright ] }; |
| 102 |
|
| 103 |
key <LSGT> { [ oslash, Oslash, bar, backslash ] }; |
| 104 |
key <AB01> { [ ae, AE, braceleft, bracketleft] }; |
| 105 |
key <AB05> { [ x, X, multiply ] }; |
| 106 |
key <AB07> { [ m, M, mu ] }; |
| 107 |
|
| 108 |
key <SPCE> { [ space, space, nobreakspace, nobreakspace] }; |
| 109 |
|
| 110 |
include "level3(ralt_switch)" |
| 111 |
}; |
| 112 |
|
| 113 |
partial alphanumeric_keys |
| 114 |
xkb_symbols "smi" { |
| 115 |
|
| 116 |
// Northern Sami layout for Finland, Norway and Sweden. |
| 117 |
// Originally implemented by Børre Gaup <[email protected]>. |
| 118 |
|
| 119 |
name[Group1]= "Northern Saami (Norway)"; |
| 120 |
|
| 121 |
key <TLDE> { [ bar, section, grave, asciitilde ] }; |
| 122 |
key <AE01> { [ 1, exclam, U2022, exclamdown ] }; // bullet |
| 123 |
key <AE02> { [ 2, quotedbl, at, copyright ] }; |
| 124 |
key <AE03> { [ 3, numbersign, sterling, none ] }; |
| 125 |
key <AE04> { [ 4, currency, dollar, cent ] }; |
| 126 |
key <AE05> { [ 5, percent, EuroSign, permille ] }; |
| 127 |
key <AE06> { [ 6, ampersand, asciicircum, multiply ] }; |
| 128 |
key <AE07> { [ 7, slash, braceleft, division ] }; |
| 129 |
key <AE08> { [ 8, parenleft, bracketleft, lessthanequal ]}; |
| 130 |
key <AE09> { [ 9, parenright, bracketright, greaterthanequal ]}; |
| 131 |
key <AE10> { [ 0, equal, braceright, notequal ] }; |
| 132 |
key <AE11> { [ plus, question, plusminus, questiondown ] }; |
| 133 |
key <AE12> { [ backslash, dead_grave, dead_acute, notsign ] }; |
| 134 |
|
| 135 |
key <AD01> { [ aacute, Aacute, q, Q ] }; |
| 136 |
key <AD02> { [ scaron, Scaron, w, W ] }; |
| 137 |
key <AD03> { [ e, E, EuroSign, none ] }; |
| 138 |
key <AD04> { [ r, R, registered, trademark ] }; |
| 139 |
key <AD05> { [ t, T, thorn, THORN ] }; |
| 140 |
key <AD06> { [ tslash, Tslash, y, Y ] }; |
| 141 |
key <AD07> { [ u, U, udiaeresis, Udiaeresis ] }; |
| 142 |
key <AD08> { [ i, I, idiaeresis, Idiaeresis ] }; |
| 143 |
key <AD09> { [ o, O, otilde, Otilde ] }; |
| 144 |
key <AD10> { [ p, P, oe, OE ] }; |
| 145 |
key <AD11> { [ aring, Aring, dead_diaeresis, dead_circumflex ] }; |
| 146 |
key <AD12> { [ eng, ENG, dead_tilde, dead_caron ] }; |
| 147 |
|
| 148 |
key <AC01> { [ a, A, acircumflex, Acircumflex ] }; |
| 149 |
key <AC02> { [ s, S, ssharp, U1E9E ] }; // ß ẞ |
| 150 |
key <AC03> { [ d, D, eth, ETH ] }; |
| 151 |
key <AC04> { [ f, F, none, ordfeminine ] }; |
| 152 |
key <AC05> { [ g, G, gcaron, Gcaron ] }; |
| 153 |
key <AC06> { [ h, H, U01E5, U01E4 ] }; // ǥ Ǥ |
| 154 |
key <AC07> { [ j, J, doublelowquotemark, singlelowquotemark ]}; // „ ‚ |
| 155 |
key <AC08> { [ k, K, U01E9, U01E8 ] }; // ǩ Ǩ |
| 156 |
key <AC09> { [ l, L, degree, hyphen ] }; |
| 157 |
key <AC10> { [ oslash, Oslash, odiaeresis, Odiaeresis ] }; |
| 158 |
key <AC11> { [ ae, AE, adiaeresis, Adiaeresis ] }; |
| 159 |
key <BKSL> { [ dstroke, Dstroke, apostrophe, asterisk ] }; |
| 160 |
|
| 161 |
key <LSGT> { [ zcaron, Zcaron, U01EF, U01EE ] }; // ǯ Ǯ |
| 162 |
key <AB01> { [ z, Z, ezh, EZH ] }; // ʒ Ʒ |
| 163 |
key <AB02> { [ ccaron, Ccaron, x, X ] }; |
| 164 |
key <AB03> { [ c, C, leftdoublequotemark, leftsinglequotemark ]}; // “ ‘ |
| 165 |
key <AB04> { [ v, V, guillemotleft, U2039 ]}; // « ‹ |
| 166 |
key <AB05> { [ b, B, guillemotright, U203A ]}; // » › |
| 167 |
key <AB06> { [ n, N, rightdoublequotemark, rightsinglequotemark ]}; // ” ’ |
| 168 |
key <AB07> { [ m, M, mu, masculine ] }; |
| 169 |
key <AB08> { [ comma, semicolon, less, periodcentered ] }; |
| 170 |
key <AB09> { [ period, colon, greater, ellipsis ] }; |
| 171 |
key <AB10> { [ minus, underscore, endash, emdash ] }; |
| 172 |
|
| 173 |
include "level3(ralt_switch)" |
| 174 |
}; |
| 175 |
|
| 176 |
partial alphanumeric_keys |
| 177 |
xkb_symbols "smi_nodeadkeys" { |
| 178 |
|
| 179 |
include "no(smi)" |
| 180 |
|
| 181 |
name[Group1]= "Northern Saami (Norway, no dead keys)"; |
| 182 |
|
| 183 |
key <AE12> { [ backslash, grave, acute, ogonek ] }; |
| 184 |
}; |
| 185 |
|
| 186 |
partial alphanumeric_keys |
| 187 |
xkb_symbols "mac" { |
| 188 |
|
| 189 |
include "latin(type4)" |
| 190 |
|
| 191 |
name[Group1]= "Norwegian (Macintosh)"; |
| 192 |
|
| 193 |
key <TLDE> { [apostrophe, section ] }; |
| 194 |
key <AE03> { [ 3, numbersign, sterling, sterling ] }; |
| 195 |
key <AE04> { [ 4, currency, dollar, dollar ] }; |
| 196 |
key <AE06> { [ 6, ampersand, threequarters, fiveeighths ] }; |
| 197 |
key <AE07> { [ 7, slash, bar, backslash ] }; |
| 198 |
key <AE08> { [ 8, parenleft, bracketleft, braceleft ] }; |
| 199 |
key <AE09> { [ 9, parenright, bracketright, braceright ] }; |
| 200 |
key <AE11> { [ plus, question ] }; |
| 201 |
key <AE12> { [dead_grave, dead_acute, acute, dead_ogonek ] }; |
| 202 |
|
| 203 |
key <AD11> { [ aring, Aring ] }; |
| 204 |
key <AD12> { [ diaeresis, asciicircum, asciitilde, dead_macron ] }; |
| 205 |
|
| 206 |
key <AC10> { [ oslash, Oslash, odiaeresis, Odiaeresis ] }; |
| 207 |
key <AC11> { [ ae, AE ] }; |
| 208 |
key <BKSL> { [ at, asterisk ] }; |
| 209 |
}; |
| 210 |
|
| 211 |
partial alphanumeric_keys |
| 212 |
xkb_symbols "mac_nodeadkeys" { |
| 213 |
|
| 214 |
include "no(mac)" |
| 215 |
|
| 216 |
name[Group1]= "Norwegian (Macintosh, no dead keys)"; |
| 217 |
|
| 218 |
key <AE12> { [ grave, acute, acute, ogonek ] }; |
| 219 |
key <AD12> { [ diaeresis, asciicircum, asciitilde, macron ] }; |
| 220 |
}; |
| 221 |
|
| 222 |
partial alphanumeric_keys |
| 223 |
xkb_symbols "colemak" { |
| 224 |
|
| 225 |
include "no(basic)" |
| 226 |
|
| 227 |
name[Group1]= "Norwegian (Colemak)"; |
| 228 |
|
| 229 |
// See https://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 , . - |
| 233 |
|
| 234 |
key <AD03> { [ f, F, dstroke, ordfeminine ] }; |
| 235 |
key <AD04> { [ p, P, Greek_pi, Greek_PI ] }; |
| 236 |
key <AD05> { [ g, G, eng, ENG ] }; |
| 237 |
key <AD06> { [ j, J ] }; |
| 238 |
key <AD07> { [ l, L, lstroke, Lstroke ] }; |
| 239 |
key <AD08> { [ u, U, downarrow, uparrow ] }; |
| 240 |
key <AD09> { [ y, Y, leftarrow, yen ] }; |
| 241 |
key <AD10> { [ oslash, Oslash, dead_acute, dead_doubleacute ] }; |
| 242 |
|
| 243 |
key <AC02> { [ r, R, registered, trademark ] }; |
| 244 |
key <AC03> { [ s, S, ssharp, section ] }; |
| 245 |
key <AC04> { [ t, T, thorn, THORN ] }; |
| 246 |
key <AC05> { [ d, D, eth, ETH ] }; |
| 247 |
key <AC07> { [ n, N ] }; |
| 248 |
key <AC08> { [ e, E, EuroSign, cent ] }; |
| 249 |
key <AC09> { [ i, I, rightarrow, idotless ] }; |
| 250 |
key <AC10> { [ o, O, oe, OE ] }; |
| 251 |
|
| 252 |
key <AB06> { [ k, K, kra, ampersand ] }; |
| 253 |
}; |
| 254 |
|
| 255 |
// Having a Colemak-DH variant in the Norwegian layout provides validation for users that this layout is suitable for typing Norwegian text. |
| 256 |
// Furthermore, staying true to the US layout gives interchangabilty benefits which far outperforms the benefits of providing a unique layout. |
| 257 |
// You can use the referenced layout to type Norwegian characters. See: https://colemak.com/Multilingual#Norwegian_.28Norsk_bokm.C3.A5l.29 |
| 258 |
|
| 259 |
// Colemak-DH (ISO) symbols for xkb on X.Org Server 7.x |
| 260 |
// 2014-10-25 by SteveP, https://colemakmods.github.io/mod-dh/ |
| 261 |
|
| 262 |
xkb_symbols "colemak_dh" { |
| 263 |
|
| 264 |
include "us(colemak_dh_iso)" |
| 265 |
name[Group1]= "Norwegian (Colemak-DH)"; |
| 266 |
}; |
| 267 |
|
| 268 |
// Colemak-DH (Wide ISO) symbols for xkb on X.Org Server 7.x |
| 269 |
// https://colemakmods.github.io/mod-dh/ |
| 270 |
|
| 271 |
xkb_symbols "colemak_dh_wide" { |
| 272 |
|
| 273 |
include "us(colemak_dh_wide_iso)" |
| 274 |
name[Group1]= "Norwegian (Colemak-DH Wide)"; |
| 275 |
}; |
| 276 |
|
| 277 |
// EXTRAS: |
| 278 |
|
| 279 |
partial alphanumeric_keys |
| 280 |
xkb_symbols "sun_type6" { |
| 281 |
include "sun_vndr/no(sun_type6)" |
| 282 |
}; |