no revision bb3a541c
1default partial alphanumeric_keys 2xkb_symbols "basic" { 3 4 // Describes the differences between a very simple en_US 5 // keyboard and a Norwegian keyboard with dead key support 6 // and all of ISO-8859-1 characters available. 7 8 include "latin(type2)" 9 10 name[Group1]="Norwegian"; 11 12 key <AB09> { [ period, colon, ellipsis, periodcentered ] }; 13 key <AB10> { [ minus, underscore, endash, emdash ] }; 14 key <AD04> { [ r, R, registered, trademark ] }; 15 key <AD10> { [ p, P, Greek_pi, Greek_PI ] }; 16 key <AE05> { [ 5, percent, onehalf, 0x1002030 ] }; 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 "nbsp(level3n)" 30 include "keypad(ossmath)" 31 include "kpdl(comma)" 32 33 include "level3(ralt_switch)" 34}; 35 36partial alphanumeric_keys 37xkb_symbols "nodeadkeys" { 38 39 // Modifies the basic Norwegian layout to no dead keys 40 41 include "no(basic)" 42 43 name[Group1]="Norwegian (no dead keys)"; 44 45 key <AE12> { [ backslash, grave, acute, ogonek ] }; 46 key <AD12> { [ diaeresis, asciicircum, asciitilde, macron ] }; 47 key <AC10> { [ oslash, Ooblique, acute, doubleacute ] }; 48 key <AC11> { [ ae, AE, asciicircum, caron ] }; 49 key <AB08> { [ comma, semicolon, cedilla, ogonek ] }; 50 key <AB09> { [ period, colon, periodcentered, abovedot ] }; 51}; 52 53partial alphanumeric_keys 54xkb_symbols "winkeys" { 55 56 include "no(basic)" 57 name[Group1]="Norwegian (Windows)"; 58 include "eurosign(5)" 59}; 60 61// Norwegian Dvorak 62partial alphanumeric_keys 63xkb_symbols "dvorak" { 64 include "us(dvorak)" 65 66 name[Group1]="Norwegian (Dvorak)"; 67 68 key <TLDE> { [ bar, section, brokenbar, paragraph ] }; 69 70 key <AE01> { [ 1, exclam, exclamdown, onesuperior ] }; 71 key <AE02> { [ 2, quotedbl, at, twosuperior ] }; 72 key <AE03> { [ 3, numbersign, sterling, threesuperior ] }; 73 key <AE04> { [ 4, currency, dollar, onequarter ] }; 74 key <AE05> { [ 5, percent, onehalf, onehalf ] }; 75 key <AE06> { [ 6, ampersand, threequarters, threequarters ] }; 76 key <AE07> { [ 7, slash, braceleft, division ] }; 77 key <AE08> { [ 8, parenleft, bracketleft ] }; 78 key <AE09> { [ 9, parenright, bracketright ] }; 79 key <AE10> { [ 0, equal, braceright ] }; 80 key <AE11> { [ plus, question, plusminus, questiondown ] }; 81 key <AE12> { [ backslash, grave, dead_acute, dead_grave ] }; 82 83 key <AD01> { [ aring, Aring, braceright, bracketright ] }; 84 key <AD02> { [ comma, semicolon, dead_cedilla, cedilla ] }; 85 key <AD03> { [ period, colon, periodcentered ] }; 86 key <AD04> { [ p, P, thorn, THORN ] }; 87 key <AD05> { [ y, Y, yen ] }; 88 key <AD06> { [ f, F, ordfeminine ] }; 89 key <AD08> { [ c, C, ccedilla, copyright ] }; 90 key <AD09> { [ r, R, registered ] }; 91 key <AD11> { [ apostrophe, asterisk, dead_circumflex, acute ] }; 92 key <AD12> { [dead_diaeresis, dead_circumflex, dead_tilde, dead_caron ] }; 93 94 key <AC03> { [ e, E, EuroSign, cent ] }; 95 key <AC05> { [ i, I, idotless, Iabovedot] }; 96 key <AC06> { [ d, D, eth, ETH ] }; 97 key <AC10> { [ s, S, ssharp, U1E9E ] }; 98 key <AC11> { [ minus, underscore, hyphen, diaeresis] }; 99 100 key <AB01> { [ ae, AE, braceleft, bracketleft] }; 101 key <AB05> { [ x, X, multiply ] }; 102 key <AB07> { [ m, M, mu ] }; 103 key <BKSL> { [ less, greater, guillemotleft, guillemotright ] }; 104 105 key <SPCE> { [ space, space, nobreakspace, nobreakspace] }; 106 107 key <LSGT> { [ oslash, Ooblique, bar, backslash ] }; 108 109 // fixed https://bugs.freedesktop.org/show_bug.cgi?id=4397 110 include "level3(ralt_switch)" 111}; 112 113partial alphanumeric_keys 114xkb_symbols "smi" { 115 116 // Northern Sami keyboards for Finland, Norway and Sweden 117 // 118 // Describes the differences between a very simple en_US 119 // keyboard and a Norwegian Northern Sami keyboard (with 120 // dead-key support) according to the spec on 121 // http://www.hum.uit.no/a/trond/se-lat9-no-keys.html 122 // Written by Børre Gaup <boerre.gaup@pc.nu>. 123 124 include "latin" 125 126 name[Group1]= "Northern Saami (Norway)"; 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 no dead keys 186 187 include "no(smi)" 188 189 name[Group1]= "Northern Saami (Norway, no 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 keyboard. 200 201 include "latin(type4)" 202 name[Group1]= "Norwegian (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 220partial alphanumeric_keys 221xkb_symbols "mac_nodeadkeys" { 222 223 // Modifies the basic Norwegian layout to no dead keys 224 include "no(mac)" 225 name[Group1]= "Norwegian (Macintosh, no dead keys)"; 226 227 key <AE12> { [ grave, acute, acute, ogonek ] }; 228 key <AD12> { [ diaeresis, asciicircum, asciitilde, macron ] }; 229}; 230 231partial alphanumeric_keys 232xkb_symbols "colemak" { 233 234 // Colemak layout - http://colemak.com/ 235 // Q W F P G J L U Y Ø Å ¨ 236 // A R S T D H N E I O Æ ' 237 // < Z X C V B K M , . - 238 include "no(basic)" 239 name[Group1]= "Norwegian (Colemak)"; 240 241 key <AB06> { [ k, K, kra, ampersand ] }; 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 key <AD03> { [ f, F, dstroke, ordfeminine ] }; 251 key <AD04> { [ p, P, Greek_pi, Greek_PI ] }; 252 key <AD05> { [ g, G, eng, ENG ] }; 253 key <AD06> { [ j, J ] }; 254 key <AD07> { [ l, L, lstroke, Lstroke ] }; 255 key <AD08> { [ u, U, downarrow, uparrow ] }; 256 key <AD09> { [ y, Y, leftarrow, yen ] }; 257 key <AD10> { [ oslash, Ooblique, dead_acute, dead_doubleacute ] }; 258}; 259 260// EXTRAS: 261 262partial alphanumeric_keys 263 xkb_symbols "sun_type6" { 264 include "sun_vndr/no(sun_type6)" 265}; 266