no revision bfd7cbc1
1// based on a keyboard map from an 'xkb/symbols/no' file 2 3partial default 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, dollar, currency,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> { [ asciitilde, asciicircum, dead_diaeresis, dead_tilde ] }; 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 107// based on 108// Northern Sami keyboards for Finland, Norway and Sweden 109// 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> 115// 116 117partial alphanumeric_keys 118xkb_symbols "smi" { 119 include "latin" 120 121 name[Group1]= "Northern Saami (Norway)"; 122 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 ] }; 135 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 ] }; 146 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 ] }; 158 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 ] }; 170 171 key <LSGT> { type[Group1] = "FOUR_LEVEL", 172 [ zcaron, Zcaron, U01EF, U01EE ] }; 173 174 include "level3(ralt_switch)" 175}; 176 177partial alphanumeric_keys 178xkb_symbols "smi_nodeadkeys" { 179 180 // Modifies the basic Norwegian layout to eliminate dead keys 181 182 include "no(smi)" 183 184 name[Group1]= "Northern Saami (Norway, eliminate dead keys)"; 185 186 key <AE12> { [ backslash, grave, acute, ogonek ] }; 187}; 188 189// Copied from macintosh_vndr/no 190partial alphanumeric_keys 191xkb_symbols "mac" { 192 193 // Describes the differences between a very simple en_US 194 // keyboard and a very simple Norwegian keybaord 195 196 include "latin(type4)" 197 name[Group1]= "Norwegian (Macintosh)"; 198 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 ] }; 213}; 214 215 216partial alphanumeric_keys 217xkb_symbols "mac_nodeadkeys" { 218 219 // Modifies the basic Norwegian layout to eliminate dead keys 220 include "no(mac)" 221 name[Group1]= "Norwegian (Macintosh, eliminate dead keys)"; 222 223 key <AE12> { [ grave, acute, acute, ogonek ] }; 224 key <AD12> { [ diaeresis, asciicircum, asciitilde, macron ] }; 225}; 226