// Keyboard layouts for Portugal. default partial alphanumeric_keys xkb_symbols "basic" { include "latin(type4)" name[Group1]="Portuguese"; key { [ backslash, bar, notsign, notsign ] }; key { [ 3, numbersign, sterling, sterling ] }; key { [ 4, dollar, section, dollar ] }; key { [ apostrophe, question, backslash, questiondown ] }; key { [ guillemotleft, guillemotright, dead_cedilla, dead_ogonek ] }; key { [ plus, asterisk, dead_diaeresis, dead_abovering ] }; key { [ dead_acute, dead_grave, dead_tilde, dead_macron ] }; key { [ dead_tilde, dead_circumflex, dead_grave, dead_breve ] }; key { [ ccedilla, Ccedilla, dead_acute, dead_doubleacute ] }; key { [ masculine, ordfeminine,dead_circumflex, dead_caron ] }; key { [ less, greater, backslash, backslash ] }; include "level3(ralt_switch)" }; partial alphanumeric_keys xkb_symbols "nodeadkeys" { include "pt(basic)" name[Group1]="Portuguese (no dead keys)"; key { [ guillemotleft, guillemotright, cedilla, ogonek ] }; key { [ plus, asterisk, quotedbl, quotedbl ] }; key { [ acute, grave ] }; key { [ asciitilde, asciicircum ] }; key { [ ccedilla, Ccedilla, acute, doubleacute ] }; key { [ masculine, ordfeminine, asciicircum, caron ] }; key { [ minus, underscore, dead_belowdot, abovedot ] }; }; // Layout variant for Mac, by Ricardo Cabral . partial alphanumeric_keys xkb_symbols "mac" { include "pt(basic)" name[Group1]= "Portuguese (Macintosh)"; key { [ grave, asciitilde, notsign, notsign ] }; key { [ 6, ampersand, threequarters, fiveeighths ] }; key { [ 8, parenleft, bracketleft, braceleft ] }; key { [ 9, parenright, bracketright, braceright ] }; key { [ plus, asterisk, dead_diaeresis ] }; key { [ masculine, ordfeminine ] }; key { [ backslash, bar, dead_grave, dead_breve ] }; key { [ dead_tilde, dead_circumflex ] }; }; partial alphanumeric_keys xkb_symbols "mac_nodeadkeys" { include "pt(mac)" name[Group1]= "Portuguese (Macintosh, no dead keys)"; key { [ plus, asterisk, quotedbl, quotedbl ] }; key { [ acute, grave ] }; key { [ asciitilde, asciicircum ] }; }; // // Portuguese Nativo layout. // A Dvorak-inspired layout designed for the Portuguese language. // // Ari Caldeira 2005-07-19 // partial alphanumeric_keys xkb_symbols "nativo" { name[Group1]="Portuguese (Nativo)"; key { [ plus, asterisk, dead_diaeresis, plusminus ] }; key { [ 1, exclam, onesuperior, exclamdown ] }; key { [ 2, quotedbl, at, twosuperior ] }; key { [ 3, numbersign, sterling, threesuperior ] }; key { [ 4, dollar, section, onequarter ] }; key { [ 5, percent, cent, 0x01002030 ] }; key { [ 6, ampersand, notsign, diaeresis ] }; key { [ 7, slash, braceleft, 0x0100032D ] }; key { [ 8, parenleft, bracketleft, 0x01000331 ] }; key { [ 9, parenright, bracketright, dead_horn ] }; key { [ 0, equal, braceright, dead_hook ] }; key { [ masculine, ordfeminine, dead_ogonek, 0x01000326 ] }; key { [ less, greater, dead_cedilla, dead_abovering ] }; key { [ apostrophe, question, degree, questiondown ] }; key { [ comma, semicolon, 0x01000329, 0x01000315 ] }; key { [ period, colon, 0x01002022, periodcentered ] }; key { [ h, H, paragraph, paragraph ] }; key { [ x, X, multiply, division ] }; key { [ w, W, ubreve, Ubreve ] }; key { [ l, L, lstroke, Lstroke ] }; key { [ t, T, trademark, trademark ] }; key { [ c, C, copyright, copyright ] }; key { [ p, P, thorn, THORN ] }; key { [ dead_tilde, dead_circumflex, dead_caron, dead_doubleacute ] }; key { [ minus, underscore, 0x01002015, 0x01000336 ] }; key { [ i, I, idotless, Iabovedot ] }; key { [ e, E, EuroSign, EuroSign ] }; key { [ a, A, ae, AE ] }; key { [ o, O, oe, OE ] }; key { [ u, U, oslash, Oslash ] }; key { [ m, M, mu, mu ] }; key { [ d, D, eth, ETH ] }; key { [ s, S, ssharp, 0x01001E9E ] }; key { [ r, R, registered, registered ] }; key { [ n, N, eng, ENG ] }; key { [ dead_acute, dead_grave, dead_macron, dead_breve ] }; key { [ backslash, bar, dead_belowdot, dead_abovedot ] }; key { [ guillemotleft, guillemotright, 0x01002039, 0x0100203A ] }; key { [ y, Y, yen, yen ] }; key { [ ccedilla, Ccedilla ] }; key { [ j, J, 0x01000292, 0x010001B7 ] }; key { [ b, B, apostrophe, quotedbl ] }; key { [ k, K, currency, brokenbar ] }; key { [ q, Q, 0x01000259, 0x0100018F ] }; key { [ v, V, doublelowquotemark, singlelowquotemark ] }; key { [ g, G, leftdoublequotemark, leftsinglequotemark ] }; key { [ f, F, rightdoublequotemark, rightsinglequotemark ] }; key { [ z, Z, 0x0100201F, 0x0100201B ] }; key { [ space, space, nobreakspace, nobreakspace ] }; include "level3(ralt_switch)" }; // // Portuguese Nativo layout for US keyboards (lacking an LSGT key). // // Ari Caldeira 2005-07-19 // partial alphanumeric_keys xkb_symbols "nativo-us" { include "pt(nativo)" name[Group1]="Portuguese (Nativo for US keyboards)"; key { [ y, Y, ccedilla, Ccedilla ] }; key { [ guillemotleft, guillemotright, 0x01002039, 0x0100203A ] }; }; // // Portuguese Nativo layout for typing Esperanto. // // Ari Caldeira 2005-07-19 // partial alphanumeric_keys xkb_symbols "nativo-epo" { include "pt(nativo)" name[Group1]="Esperanto (Portugal, Nativo)"; key { [ h, H, hcircumflex, Hcircumflex ] }; key { [ ccircumflex, Ccircumflex, x, X ] }; key { [ ubreve, Ubreve, w, W ] }; key { [ jcircumflex, Jcircumflex, y, Y ] }; key { [ scircumflex, Scircumflex, ccedilla, Ccedilla ] }; key { [ gcircumflex, Gcircumflex, q, Q ] }; }; // EXTRAS: partial alphanumeric_keys xkb_symbols "sun_type6" { include "sun_vndr/pt(sun_type6)" }; // // Portuguese Colemak layout. // partial alphanumeric_keys xkb_symbols "colemak" { include "pt(basic)" name[Group1]="Portuguese (Colemak)"; key { [ q, Q, at, Greek_OMEGA ] }; key { [ w, W, lstroke, Lstroke ] }; key { [ f, F, dstroke, ordfeminine ] }; key { [ p, P, thorn, THORN ] }; key { [ g, G, eng, ENG ] }; key { [ j, J, dead_hook, dead_horn ] }; key { [ l, L, lstroke, Lstroke ] }; key { [ u, U, downarrow, uparrow ] }; key { [ y, Y, leftarrow, yen ] }; key { [ ccedilla, Ccedilla, dead_acute, dead_doubleacute ] }; key { [ a, A, ae, AE ] }; key { [ r, R, paragraph, registered ] }; key { [ s, S, ssharp, section ] }; key { [ t, T, tslash, Tslash ] }; key { [ d, D, eth, ETH ] }; key { [ h, H, hstroke, Hstroke ] }; key { [ n, N, n, N ] }; key { [ e, E, EuroSign, cent ] }; key { [ i, I, rightarrow, idotless ] }; key { [ o, O, oslash, Oslash ] }; key { [ z, Z, guillemotleft, less ] }; key { [ x, X, guillemotright, greater ] }; key { [ c, C, cent, copyright ] }; key { [ k, K, kra, ampersand ] }; key { [ m, M, mu, masculine ] }; key { [ BackSpace, BackSpace, BackSpace, BackSpace ] }; };