no revision 797b363d
1// based on a keyboard map from an 'xkb/symbols/no' file 2 3default partial alphanumeric_keys 4xkb_symbols "basic" { 5 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. 9 10 include "latin(type2)" 11 12 name[Group1]="Norwegian"; 13 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 ] }; 19 20 key <AE11> { [ plus, question, plusminus, questiondown ] }; 21 key <AE12> { [ backslash, dead_grave, dead_acute, notsign ] }; 22 23 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 ] }; 27 28 key <BKSL> { [apostrophe, asterisk, dead_doubleacute, multiply ] }; 29 key <LSGT> { [ less, greater, onehalf, threequarters] }; 30 31 include "nbsp(level3n)" 32 include "keypad(ossmath)" 33 include "kpdl(comma)" 34 35 include "level3(ralt_switch)" 36}; 37 38partial alphanumeric_keys 39xkb_symbols "nodeadkeys" { 40 41 // Modifies the basic Norwegian layout to eliminate dead keys 42 43 include "no(basic)" 44 45 name[Group1]="Norwegian (eliminate dead keys)"; 46 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 ] }; 53}; 54 55// Norwegian Dvorak 56partial alphanumeric_keys 57xkb_symbols "dvorak" { 58 include "us(dvorak)" 59 60 name[Group1]="Norwegian (Dvorak)"; 61 62 key <TLDE> { [ bar, section, brokenbar, paragraph ] }; 63 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 ] }; 76 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 ] }; 87 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] }; 93 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 ] }; 98 99 key <SPCE> { [ space, space, nobreakspace, nobreakspace] }; 100 101 key <LSGT> { [ oslash, Ooblique, bar, backslash ] }; 102 103 // fixed https://bugs.freedesktop.org/show_bug.cgi?id=4397 104 include "level3(ralt_switch)" 105}; 106 107partial alphanumeric_keys 108xkb_symbols "smi" { 109 110 // Northern Sami keyboards for Finland, Norway and Sweden 111 // 112 // Describes the differences between a very simple en_US 113 // keyboard and a Norwegian Northern Sami keyboard (with 114 // dead-key support) according to the spec on 115 // http://www.hum.uit.no/a/trond/se-lat9-no-keys.html 116 // Written by Børre Gaup <boerre.gaup@pc.nu>. 117 118 include "latin" 119 120 name[Group1]= "Northern Saami (Norway)"; 121 122 key <AE01> { [ 1, exclam, copyright, exclamdown ] }; 123 key <AE02> { [ 2, quotedbl, at, registered ] }; 124 key <AE03> { [ 3, numbersign, sterling, less ] }; 125 key <AE04> { [ 4, dollar, dollar, greater ] }; 126 key <AE05> { [ 5, percent, U2022, U2030 ] }; 127 key <AE06> { [ 6, ampersand, section, paragraph ] }; 128 key <AE07> { [ 7, slash, braceleft, bar ] }; 129 key <AE08> { [ 8, parenleft, bracketleft, braceleft ] }; 130 key <AE09> { [ 9, parenright, bracketright, braceright ] }; 131 key <AE10> { [ 0, equal, braceright, notequal ] }; 132 key <AE11> { [ plus, question, division, questiondown ] }; 133 key <AE12> { [ backslash, grave, acute, asciitilde ] }; 134 135 key <AD01> { [ aacute, Aacute, q, Q ] }; 136 key <AD02> { [ scaron, Scaron, w, W ] }; 137 key <AD03> { [ e, E, eacute, Eacute ] }; 138 key <AD04> { [ r, R, registered, trademark ] }; 139 key <AD06> { [ y, Y, yacute, Yacute ] }; 140 key <AD07> { [ u, U, udiaeresis, Udiaeresis ] }; 141 key <AD08> { [ i, I, idiaeresis, Idiaeresis ] }; 142 key <AD09> { [ o, O, oe, OE ] }; 143 key <AD11> { [ aring, Aring, acircumflex, Acircumflex ] }; 144 key <AD12> { [ eng, ENG, quotedbl, asciicircum ] }; 145 146 key <AC01> { [ a, A, agrave, Agrave ] }; 147 key <AC02> { [ s, S, ssharp, apostrophe ] }; 148 key <AC04> { [ f, F, ordfeminine, ordfeminine ] }; 149 key <AC05> { [ g, G, gcaron, Gcaron ] }; 150 key <AC06> { [ h, H, U01E5, U01E4 ] }; 151 key <AC07> { [ j, J, notsign, multiply ] }; 152 key <AC08> { [ k, K, U01E9, U01E8 ] }; 153 key <AC09> { [ l, L, degree, hyphen ] }; 154 key <AC10> { [ oslash, Ooblique, odiaeresis, Odiaeresis ] }; 155 key <AC11> { [ ae, AE, adiaeresis, Adiaeresis ] }; 156 key <TLDE> { [ bar, section, brokenbar, paragraph ] }; 157 158 key <BKSL> { [ dstroke, Dstroke, apostrophe, asterisk ] }; 159 key <AB01> { [ z, Z, U0292, U01B7 ] }; 160 key <AB02> { [ ccaron, Ccaron, x, X ] }; 161 key <AB03> { [ c, C, ccedilla, Ccedilla ] }; 162 key <AB04> { [ v, V, lessthanequal, guillemotleft ] }; 163 key <AB05> { [ b, B, greaterthanequal, guillemotright ] }; 164 key <AB06> { [ n, N, leftsinglequotemark, leftdoublequotemark ] }; 165 key <AB07> { [ m, M, rightsinglequotemark, rightdoublequotemark ] }; 166 key <AB08> { [ comma, semicolon, singlelowquotemark, doublelowquotemark ] }; 167 key <AB09> { [ period, colon, ellipsis, periodcentered ] }; 168 key <AB10> { [ minus, underscore, endash, emdash ] }; 169 170 key <LSGT> { type[Group1] = "FOUR_LEVEL", 171 [ zcaron, Zcaron, U01EF, U01EE ] }; 172 173 include "level3(ralt_switch)" 174}; 175 176partial alphanumeric_keys 177xkb_symbols "smi_nodeadkeys" { 178 179 // Modifies the basic Norwegian layout to eliminate dead keys 180 181 include "no(smi)" 182 183 name[Group1]= "Northern Saami (Norway, eliminate dead keys)"; 184 185 key <AE12> { [ backslash, grave, acute, ogonek ] }; 186}; 187 188// Copied from macintosh_vndr/no 189partial alphanumeric_keys 190xkb_symbols "mac" { 191 192 // Describes the differences between a very simple en_US 193 // keyboard and a very simple Norwegian keyboard. 194 195 include "latin(type4)" 196 name[Group1]= "Norwegian (Macintosh)"; 197 198 key <TLDE> { [ bar, section ] }; 199 key <AE03> { [ 3, numbersign, sterling, sterling ] }; 200 key <AE04> { [ 4, currency, dollar, dollar ] }; 201 key <AE06> { [ 6, ampersand, threequarters, fiveeighths ] }; 202 key <AE07> { [ 7, slash, bar, backslash ] }; 203 key <AE08> { [ 8, parenleft, bracketleft, braceleft ] }; 204 key <AE09> { [ 9, parenright, bracketright, braceright ] }; 205 key <AC10> { [ oslash, Ooblique, odiaeresis, Odiaeresis ] }; 206 key <AE11> { [ plus, question ] }; 207 key <AC11> { [ ae, AE ] }; 208 key <AD11> { [ aring, Aring ] }; 209 key <AE12> { [ dead_grave, dead_acute, acute, dead_ogonek ] }; 210 key <AD12> { [ diaeresis, asciicircum, asciitilde, dead_macron ] }; 211 key <BKSL> { [ at, asterisk ] }; 212}; 213 214partial alphanumeric_keys 215xkb_symbols "mac_nodeadkeys" { 216 217 // Modifies the basic Norwegian layout to eliminate dead keys 218 include "no(mac)" 219 name[Group1]= "Norwegian (Macintosh, eliminate dead keys)"; 220 221 key <AE12> { [ grave, acute, acute, ogonek ] }; 222 key <AD12> { [ diaeresis, asciicircum, asciitilde, macron ] }; 223}; 224 225partial alphanumeric_keys 226xkb_symbols "colemak" { 227 228 // Colemak layout - http://colemak.com/ 229 // Q W F P G J L U Y Ø Å ¨ 230 // A R S T D H N E I O Æ ' 231 // < Z X C V B K M , . - 232 include "no(basic)" 233 name[Group1]= "Norwegian (Colemak)"; 234 235 key <AB06> { [ k, K, kra, ampersand ] }; 236 key <AC02> { [ r, R, registered, trademark ] }; 237 key <AC03> { [ s, S, ssharp, section ] }; 238 key <AC04> { [ t, T, thorn, THORN ] }; 239 key <AC05> { [ d, D, eth, ETH ] }; 240 key <AC07> { [ n, N ] }; 241 key <AC08> { [ e, E, EuroSign, cent ] }; 242 key <AC09> { [ i, I, rightarrow, idotless ] }; 243 key <AC10> { [ o, O, oe, OE ] }; 244 key <AD03> { [ f, F, dstroke, ordfeminine ] }; 245 key <AD04> { [ p, P, Greek_pi, Greek_PI ] }; 246 key <AD05> { [ g, G, eng, ENG ] }; 247 key <AD06> { [ j, J ] }; 248 key <AD07> { [ l, L, lstroke, Lstroke ] }; 249 key <AD08> { [ u, U, downarrow, uparrow ] }; 250 key <AD09> { [ y, Y, leftarrow, yen ] }; 251 key <AD10> { [ oslash, Ooblique, dead_acute, dead_doubleacute ] }; 252}; 253 254// EXTRAS: 255 256partial alphanumeric_keys 257 xkb_symbols "sun_type6" { 258 include "sun_vndr/no(sun_type6)" 259}; 260