1// based on a keyboard 2// Modified for a real Latin American Keyboard by Fabian Mandelbaum 3 4default partial alphanumeric_keys 5xkb_symbols "basic" { 6 7 include "latin(type4)" 8 9 name[Group1]="Spanish (Latin American)"; 10 11 key <AE01> { [ 1, exclam, bar, exclamdown ] }; 12 key <AE03> { [ 3, numbersign, periodcentered, sterling ] }; 13 key <AE04> { [ 4, dollar, asciitilde, dollar ] }; 14 key <AE06> { [ 6, ampersand, notsign, fiveeighths ] }; 15 key <AE11> { [apostrophe, question, backslash, questiondown ] }; 16 key <AE12> { [questiondown, exclamdown, dead_cedilla, dead_ogonek] }; 17 18 key <AD11> { [dead_acute, dead_diaeresis, dead_diaeresis, dead_abovering ] }; 19 key <AD12> { [ plus, asterisk, asciitilde, dead_macron ] }; 20 21 key <AC10> { [ ntilde, Ntilde, asciitilde, dead_doubleacute ] }; 22 key <AC11> { [ braceleft, bracketleft, dead_circumflex, braceleft] }; 23 key <TLDE> { [ bar, degree, notsign, notsign ] }; 24 25 key <BKSL> { [braceright, bracketright, dead_grave, braceright ] }; 26 27 include "level3(ralt_switch)" 28}; 29 30partial alphanumeric_keys 31xkb_symbols "Sundeadkeys" { 32 include "latam(basic)" 33 34 key <AC11> { [dead_acute, dead_diaeresis, braceleft, braceleft ] }; 35 key <AD11> { [dead_grave, dead_circumflex, bracketleft, dead_abovering ] }; 36}; 37 38partial alphanumeric_keys 39xkb_symbols "sundeadkeys" { 40 include "latam(Sundeadkeys)" 41 name[Group1]="Spanish (Latin American, Sun dead keys)"; 42}; 43 44partial alphanumeric_keys 45xkb_symbols "nodeadkeys" { 46 47 include "latam(basic)" 48 49 name[Group1]="Spanish (Latin American, no dead keys)"; 50 51 key <AE12> { [questiondown, exclamdown, cedilla, ogonek ] }; 52 key <AD11> { [ grave, asciicircum, bracketleft, degree ] }; 53 key <AD12> { [ plus, asterisk, bracketright, macron ] }; 54 key <AC10> { [ ntilde, Ntilde, asciitilde, doubleacute ] }; 55 key <AC11> { [ acute, diaeresis, braceleft, braceleft ] }; 56 key <BKSL> { [ ccedilla, Ccedilla, braceright, breve ] }; 57 key <AB10> { [ minus, underscore, dead_belowdot, abovedot ] }; 58}; 59 60partial alphanumeric_keys 61xkb_symbols "deadtilde" { 62 63 include "latam(basic)" 64 65 name[Group1]="Spanish (Latin American, dead tilde)"; 66 67 key <AD12> { [ plus, asterisk, dead_tilde, dead_macron ] }; 68}; 69 70// Latin American Spanish Dvorak mapping (note R-H exchange) 71partial alphanumeric_keys 72xkb_symbols "dvorak" { 73 74 name[Group1]="Spanish (Latin American, Dvorak)"; 75 76 key <TLDE> {[ bar, degree, notsign, notsign ]}; 77 key <AE01> {[ 1, exclam, bar, exclamdown ]}; 78 key <AE02> {[ 2, quotedbl, at, oneeighth ]}; 79 key <AE03> {[ 3, numbersign, periodcentered, sterling ]}; 80 key <AE04> {[ 4, dollar, asciitilde, dollar ]}; 81 key <AE05> {[ 5, percent, onehalf, threeeighths ]}; 82 key <AE06> {[ 6, ampersand, notsign, fiveeighths ]}; 83 key <AE07> {[ 7, slash, braceleft, seveneighths ]}; 84 key <AE08> {[ 8, parenleft, bracketleft, trademark ]}; 85 key <AE09> {[ 9, parenright, bracketright, plusminus ]}; 86 key <AE10> {[ 0, equal, braceright, degree ]}; 87 key <AE11> {[ apostrophe, question, backslash, questiondown ]}; 88 key <AE12> {[ questiondown, exclamdown, dead_cedilla, dead_ogonek ]}; 89 90 key <AD01> {[ period, colon, at ]}; 91 key <AD02> {[ comma, semicolon ]}; 92 key <AD03> {[ ntilde, Ntilde, lstroke, Lstroke ]}; 93 key <AD04> {[ p, P, paragraph ]}; 94 key <AD05> {[ y, Y, yen ]}; 95 key <AD06> {[ f, F, tslash, Tslash ]}; 96 key <AD07> {[ g, G, dstroke, Dstroke ]}; 97 key <AD08> {[ c, C, cent, copyright ]}; 98 key <AD09> {[ h, H, hstroke, Hstroke ]}; 99 key <AD10> {[ l, L, sterling ]}; 100 key <AD11> {[ dead_acute, dead_diaeresis, dead_diaeresis, dead_abovering ]}; 101 key <AD12> {[ plus, asterisk, asciitilde, dead_macron ]}; 102 103 key <AC01> {[ a, A, ae, AE ]}; 104 key <AC02> {[ o, O, oslash, Oslash ]}; 105 key <AC03> {[ e, E, EuroSign ]}; 106 key <AC04> {[ u, U, aring, Aring ]}; 107 key <AC05> {[ i, I, oe, OE ]}; 108 key <AC06> {[ d, D, eth, ETH ]}; 109 key <AC07> {[ r, R, registered, trademark ]}; 110 key <AC08> {[ t, T, thorn, THORN ]}; 111 key <AC09> {[ n, N, eng, ENG ]}; 112 key <AC10> {[ s, S, ssharp, section ]}; 113 key <AC11> {[ braceleft, bracketleft, dead_circumflex, braceleft ]}; 114 key <BKSL> {[ braceright, bracketright, dead_grave, braceright ]}; 115 116 key <LSGT> {[ less, greater, guillemotleft, guillemotright ]}; 117 key <AB01> {[ minus, underscore, hyphen, macron ]}; 118 key <AB02> {[ q, Q, currency ]}; 119 key <AB03> {[ j, J ]}; 120 key <AB04> {[ k, K, kra ]}; 121 key <AB05> {[ x, X, multiply, division ]}; 122 key <AB06> {[ b, B ]}; 123 key <AB07> {[ m, M, mu ]}; 124 key <AB08> {[ w, W ]}; 125 key <AB09> {[ v, V ]}; 126 key <AB10> {[ z, Z ]}; 127 128 include "level3(ralt_switch)" 129}; 130 131// Latin American Spanish Colemak mapping (by eDreymaR) 132partial alphanumeric_keys 133xkb_symbols "colemak" { 134 135 name[Group1]="Spanish (Latin American, Colemak)"; 136 137 key <TLDE> {[ bar, degree, notsign, notsign ]}; 138 key <AE01> {[ 1, exclam, bar, exclamdown ]}; 139 key <AE02> {[ 2, quotedbl, at, oneeighth ]}; 140 key <AE03> {[ 3, numbersign, periodcentered, sterling ]}; 141 key <AE04> {[ 4, dollar, asciitilde, dollar ]}; 142 key <AE05> {[ 5, percent, onehalf, threeeighths ]}; 143 key <AE06> {[ 6, ampersand, notsign, fiveeighths ]}; 144 key <AE07> {[ 7, slash, braceleft, seveneighths ]}; 145 key <AE08> {[ 8, parenleft, bracketleft, trademark ]}; 146 key <AE09> {[ 9, parenright, bracketright, plusminus ]}; 147 key <AE10> {[ 0, equal, braceright, degree ]}; 148 key <AE11> {[ apostrophe, question, backslash, questiondown ]}; 149 key <AE12> {[ questiondown, exclamdown, dead_cedilla, dead_ogonek ]}; 150 151 key <AD01> {[ q, Q, U201A, U201E ]}; 152 key <AD02> {[ w, W, U2018, U201C ]}; 153 key <AD03> {[ f, F, U2019, U201D ]}; 154 key <AD04> {[ p, P, U2293, paragraph ]}; 155 key <AD05> {[ g, G, eng, ENG ]}; 156 key <AD06> {[ j, J, U222B, U03A3 ]}; 157 key <AD07> {[ l, L, lstroke, Lstroke ]}; 158 key <AD08> {[ u, U, U2039, guillemotleft ]}; 159 key <AD09> {[ y, Y, U203A, guillemotright ]}; 160 key <AD10> {[ ntilde, Ntilde, asciitilde, U02EE ]}; 161 key <AD11> {[ dead_acute, dead_diaeresis, dead_diaeresis, dead_abovering ]}; 162 key <AD12> {[ plus, asterisk, asciitilde, dead_macron ]}; 163 164 key <AC01> {[ a, A, ae, AE ]}; 165 key <AC02> {[ r, R, registered, trademark ]}; 166 key <AC03> {[ s, S, ssharp, section ]}; 167 key <AC04> {[ t, T, thorn, THORN ]}; 168 key <AC05> {[ d, D, eth, ETH ]}; 169 key <AC06> {[ h, H, hstroke, Hstroke ]}; 170 key <AC07> {[ n, N, hyphen, U2190 ]}; 171 key <AC08> {[ e, E, EuroSign, U2191 ]}; 172 key <AC09> {[ i, I, U2015, U2192 ]}; 173 key <AC10> {[ o, O, U00BA, U00AA ]}; 174 key <AC11> {[ braceleft, bracketleft, dead_circumflex, braceleft ]}; 175 key <BKSL> {[ braceright, bracketright, dead_grave, braceright ]}; 176 177 key <LSGT> {[ less, greater, bar, U00A6 ]}; 178 key <AB01> {[ z, Z, U0292, U01B7 ]}; 179 key <AB02> {[ x, X, U2020, U2021 ]}; 180 key <AB03> {[ c, C, cent, copyright ]}; 181 key <AB04> {[ v, V, division, U03B3 ]}; 182 key <AB05> {[ b, B, U2022, U03B2 ]}; 183 key <AB06> {[ k, K, U00E7, U00C7 ]}; 184 key <AB07> {[ m, M, multiply, U2193 ]}; 185 key <AB08> {[ comma, semicolon, hyphen, multiply ]}; 186 key <AB09> {[ period, colon, U0323, division ]}; 187 key <AB10> {[ minus, underscore ]}; 188 189 include "level3(ralt_switch)" 190}; 191 192 193// Latin American Spanish Colemak mapping (by eDreymaR), customized to 194// keep WASD in a qwerty-like layout 195partial alphanumeric_keys 196xkb_symbols "colemak-gaming" { 197 198 name[Group1]="Spanish (Latin American, Colemak for gaming)"; 199 200 key <TLDE> {[ bar, degree, notsign, notsign ]}; 201 key <AE01> {[ 1, exclam, bar, exclamdown ]}; 202 key <AE02> {[ 2, quotedbl, at, oneeighth ]}; 203 key <AE03> {[ 3, numbersign, periodcentered, sterling ]}; 204 key <AE04> {[ 4, dollar, asciitilde, dollar ]}; 205 key <AE05> {[ 5, percent, onehalf, threeeighths ]}; 206 key <AE06> {[ 6, ampersand, notsign, fiveeighths ]}; 207 key <AE07> {[ 7, slash, braceleft, seveneighths ]}; 208 key <AE08> {[ 8, parenleft, bracketleft, trademark ]}; 209 key <AE09> {[ 9, parenright, bracketright, plusminus ]}; 210 key <AE10> {[ 0, equal, braceright, degree ]}; 211 key <AE11> {[ apostrophe, question, backslash, questiondown ]}; 212 key <AE12> {[ questiondown, exclamdown, dead_cedilla, dead_ogonek ]}; 213 214 key <AD01> {[ q, Q, U201A, U201E ]}; 215 key <AD02> {[ w, W, U2018, U201C ]}; 216 key <AD03> {[ f, F, U2019, U201D ]}; 217 key <AD04> {[ p, P, U2293, paragraph ]}; 218 key <AD05> {[ g, G, eng, ENG ]}; 219 key <AD06> {[ j, J, U222B, U03A3 ]}; 220 key <AD07> {[ l, L, lstroke, Lstroke ]}; 221 key <AD08> {[ u, U, U2039, guillemotleft ]}; 222 key <AD09> {[ y, Y, U203A, guillemotright ]}; 223 key <AD10> {[ ntilde, Ntilde, asciitilde, U02EE ]}; 224 key <AD11> {[ dead_acute, dead_diaeresis, dead_diaeresis, dead_abovering ]}; 225 key <AD12> {[ plus, asterisk, asciitilde, dead_macron ]}; 226 227 key <AC01> {[ a, A, ae, AE ]}; 228 key <AC02> {[ s, S, ssharp, section ]}; 229 key <AC03> {[ d, D, eth, ETH ]}; 230 key <AC04> {[ t, T, thorn, THORN ]}; 231 key <AC05> {[ r, R, registered, trademark ]}; 232 key <AC06> {[ h, H, hstroke, Hstroke ]}; 233 key <AC07> {[ n, N, hyphen, U2190 ]}; 234 key <AC08> {[ e, E, EuroSign, U2191 ]}; 235 key <AC09> {[ i, I, U2015, U2192 ]}; 236 key <AC10> {[ o, O, U00BA, U00AA ]}; 237 key <AC11> {[ braceleft, bracketleft, dead_circumflex, braceleft ]}; 238 key <BKSL> {[ braceright, bracketright, dead_grave, braceright ]}; 239 240 key <LSGT> {[ less, greater, bar, U00A6 ]}; 241 key <AB01> {[ z, Z, U0292, U01B7 ]}; 242 key <AB02> {[ x, X, U2020, U2021 ]}; 243 key <AB03> {[ c, C, cent, copyright ]}; 244 key <AB04> {[ v, V, division, U03B3 ]}; 245 key <AB05> {[ b, B, U2022, U03B2 ]}; 246 key <AB06> {[ k, K, U00E7, U00C7 ]}; 247 key <AB07> {[ m, M, multiply, U2193 ]}; 248 key <AB08> {[ comma, semicolon, hyphen, multiply ]}; 249 key <AB09> {[ period, colon, U0323, division ]}; 250 key <AB10> {[ minus, underscore ]}; 251 252 include "level3(ralt_switch)" 253}; 254