// Latvian keymap version 1.1 // Copyright (C) Dmitry Golubev , 2003-2004 // // Reworked to get rid of dead_keys (use of which in this case // is a dirty hack). It is now not dependent on locale settings // and GTK_IM_MODULES in Gnome. The map is also providing some of // ISO9995-3 alternate characters. Note that this version works // correctly under Gnome 2.6. This is to be put into symbols/ // directory, or somewhere else. // // Permission to use, copy, modify, distribute, and sell this software and its // documentation for any purpose is hereby granted without fee, provided that // the above copyright notice appear in all copies and that both that // copyright notice and this permission notice appear in supporting // documentation, and that the name of the copyright holder(s) not be used in // advertising or publicity pertaining to distribution of the software without // specific, written prior permission. The copyright holder(s) makes no // representations about the suitability of this software for any purpose. It // is provided "as is" without express or implied warranty. // // THE COPYRIGHT HOLDER(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO // EVENT SHALL THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR // PERFORMANCE OF THIS SOFTWARE. // Modified by Aldis Berjoza , 12 april 2011 // Changes: // * Added Latvian Ergonomic, Latvian Adapted and Latvian Modernd variants // Author of this work is Valdis Vītoliņš // http://odo.lv/LatvianKeyboard // http://odo.lv/Recipes/LatvianKeyboard#HErgonomiskC481stastatC5ABrasuzlikC5A1anauzLinuxdatora%22 // * Added guillemotleft, leftdoublequotemark, guillemotright, // rightdoublequotemark to Latvian modern layout for AD11 and AD12 // * Added US-Dvorac compatible Latvian layouts // * Added programmer US-Dvorac compatible Latvian layouts // * Added US-Colemak compatible Latvian layouts // * Reformatted layouts //============================================================================ // Latvian QWERTY layout // http://en.wikipedia.org/wiki/QWERTY // partial default alphanumeric_keys modifier_keys xkb_symbols "basic" { name[Group1]= "Latvian"; key {[ grave, asciitilde, acute, asciitilde ]}; key {[ 1, exclam, onesuperior, exclamdown ]}; key {[ 2, at, twosuperior, oneeighth ]}; key {[ 3, numbersign, threesuperior, sterling ]}; key {[ 4, dollar, EuroSign, cent ]}; key {[ 5, percent, onehalf, threeeighths ]}; key {[ 6, asciicircum, threequarters, fiveeighths ]}; key {[ 7, ampersand, braceleft, seveneighths ]}; key {[ 8, asterisk, bracketleft, trademark ]}; key {[ 9, parenleft, bracketright, plusminus ]}; key {[ 0, parenright, braceright, degree ]}; key {[ minus, underscore, backslash, questiondown ]}; key {[ equal, plus, endash, emdash ]}; key {[ q, Q, q, Q ]}; key {[ w, W, w, W ]}; key {[ e, E, emacron, Emacron ]}; key {[ r, R, rcedilla, Rcedilla ]}; key {[ t, T, t, T ]}; key {[ y, Y, y, Y ]}; key {[ u, U, umacron, Umacron ]}; key {[ i, I, imacron, Imacron ]}; key {[ o, O, omacron, Omacron ]}; key {[ p, P, p, P ]}; key {[ bracketleft, braceleft, guillemotleft, leftdoublequotemark ]}; key {[ bracketright, braceright, guillemotright, rightdoublequotemark ]}; key {[ a, A, amacron, Amacron ]}; key {[ s, S, scaron, Scaron ]}; key {[ d, D, d, D ]}; key {[ f, F, f, F ]}; key {[ g, G, gcedilla, Gcedilla ]}; key {[ h, H, h, H ]}; key {[ j, J, j, J ]}; key {[ k, K, kcedilla, Kcedilla ]}; key {[ l, L, lcedilla, Lcedilla ]}; key {[ semicolon, colon, semicolon, colon ]}; key {[ apostrophe, quotedbl, leftdoublequotemark, doublelowquotemark ]}; key {[ z, Z, zcaron, Zcaron ]}; key {[ x, X, x, X ]}; key {[ c, C, ccaron, Ccaron ]}; key {[ v, V, v, V ]}; key {[ b, B, b, B ]}; key {[ n, N, ncedilla, Ncedilla ]}; key {[ m, M, m, M ]}; key {[ comma, less, horizconnector, multiply ]}; key {[ period, greater, periodcentered, division ]}; key {[ slash, question, slash, abovedot ]}; key {[ backslash, bar, grave, breve ]}; key {[ space, space, space, space ]}; include "level3(ralt_switch)" }; partial alphanumeric_keys modifier_keys xkb_symbols "apostrophe" { include "lv(basic)" name[Group1]= "Latvian (apostrophe variant)"; key {[ISO_Level3_Latch, quotedbl, apostrophe, quotedbl]}; key {[space, space, apostrophe]}; modifier_map Mod5 { }; }; partial alphanumeric_keys modifier_keys xkb_symbols "tilde" { include "lv(basic)" name[Group1]= "Latvian (tilde variant)"; key {[ISO_Level3_Latch, asciitilde, grave, acute]}; key {[space, space, asciitilde]}; modifier_map Mod5 { }; }; partial alphanumeric_keys modifier_keys xkb_symbols "fkey" { include "lv(basic)" name[Group1]= "Latvian (F variant)"; key {[ISO_Level3_Latch, ISO_Level3_Latch, f, F]}; key {[space, space, f, F]}; modifier_map Mod5 { }; }; //============================================================================ // Latvian Adapted keyboard layout // http://odo.lv/xwiki/bin/download/Main/LatvianKeyboard/Adapted.png // // http://odo.lv/LatvianKeyboard // http://odo.lv/LatvianKeyboard5 // partial alphanumeric_keys modifier_keys xkb_symbols "adapted" { include "lv(basic)" name[Group1]= "Latvian (adapted)"; key {[ 2, Ccaron, at, twosuperior ]}; key {[ 3, ccaron, numbersign, threesuperior ]}; key {[ 4, Zcaron, dollar, EuroSign ]}; key {[ 5, zcaron, percent, onehalf ]}; key {[ scaron, Scaron, q, Q ]}; key {[ emacron, Emacron, w, W ]}; key {[ e, E, e, E ]}; key {[ amacron, Amacron, y, Y ]}; key {[ u, U, u, U ]}; key {[ i, I, i, I ]}; key {[ umacron, Umacron, bracketleft, braceleft ]}; key {[ ncedilla, Ncedilla, bracketright, braceright ]}; key {[ a, A, a, A ]}; key {[ s, S, s, S ]}; key {[ g, G, g, G ]}; key {[ k, K, k, K ]}; key {[ l, L, l, L ]}; key {[ imacron, Imacron, semicolon, colon ]}; key {[ z, Z, z, Z ]}; key {[ kcedilla, Kcedilla, x, X ]}; key {[ c, C, c, C ]}; key {[ n, N, n, N ]}; key {[ comma, gcedilla, less, multiply ]}; key {[ period, Gcedilla, greater, division ]}; key {[ lcedilla, Lcedilla, slash, question ]}; }; //============================================================================ // Latvian Ergonomic (ŪGJRMV) keyboard layout by Valdis Vītoliņš // http://odo.lv/xwiki/bin/download/Main/LatvianKeyboard/Ergonomic.png // // http://odo.lv/LatvianKeyboard // http://odo.lv/LatvianKeyboard5 // partial alphanumeric_keys modifier_keys xkb_symbols "ergonomic" { include "lv(apostrophe)" name[Group1]= "Latvian (ergonomic, ŪGJRMV)"; key {[ 2, at, gcedilla, Gcedilla ]}; key {[ minus, underscore, endash, emdash ]}; key {[ f, F, equal, plus ]}; key {[ umacron, Umacron, q, Q ]}; key {[ g, G, g, G ]}; key {[ j, J, j, J ]}; key {[ r, R, rcedilla, Rcedilla ]}; key {[ m, M, m, M ]}; key {[ v, V, w, W ]}; key {[ n, N, y, Y ]}; key {[ z, Z, z, Z ]}; key {[ emacron, Emacron, emacron, Emacron ]}; key {[ ccaron, Ccaron, ccaron, Ccaron ]}; key {[ zcaron, Zcaron, bracketleft, braceleft ]}; key {[ h, H, bracketright, braceright ]}; key {[ scaron, Scaron, scaron, Scaron ]}; key {[ u, U, u, U ]}; key {[ s, S, s, S ]}; key {[ i, I, i, I ]}; key {[ l, L, l, L ]}; key {[ d, D, d, D ]}; key {[ a, A, a, A ]}; key {[ t, T, t, T ]}; key {[ e, E, e, E ]}; key {[ c, C, c, C ]}; key {[ ISO_Level3_Latch, quotedbl, apostrophe, quotedbl ]}; key {[ kcedilla, Kcedilla, slash, backslash ]}; key {[ gcedilla, Gcedilla, gcedilla, Gcedilla ]}; key {[ ncedilla, Ncedilla, ncedilla, Ncedilla ]}; key {[ b, B, x, X ]}; key {[ imacron, Imacron, imacron, Imacron ]}; key {[ k, K, k, K ]}; key {[ p, P, p, P ]}; key {[ o, O, omacron, Omacron ]}; key {[ amacron, Amacron, amacron, Amacron ]}; key {[ comma, semicolon, less, multiply ]}; key {[ period, colon, greater, division ]}; key {[ lcedilla, Lcedilla, question, slash ]}; }; //============================================================================ // Latvian Modern keyboard layout by Valdis Vītoliņš // http://odo.lv/xwiki/bin/download/Recipes/LatvianKeyboard/Modern.png // // http://odo.lv/LatvianKeyboard // http://odo.lv/LatvianKeyboard5 // partial alphanumeric_keys modifier_keys xkb_symbols "modern" { name[Group1]= "Latvian (modern)"; key {[ grave, asciitilde, acute, copyright ]}; key {[ 1, exclam, onesuperior, exclamdown ]}; key {[ 2, at, twosuperior, oneeighth ]}; key {[ 3, numbersign, threesuperior, sterling ]}; key {[ 4, dollar, EuroSign, cent ]}; key {[ 5, percent, onehalf, threeeighths ]}; key {[ 6, asciicircum, threequarters, fiveeighths ]}; key {[ 7, ampersand, braceleft, seveneighths ]}; key {[ 8, asterisk, bracketleft, trademark ]}; key {[ 9, parenleft, bracketright, plusminus ]}; key {[ 0, parenright, braceright, degree ]}; key {[ minus, underscore, backslash, questiondown ]}; key {[ equal, plus, endash, emdash ]}; key {[ emacron, Emacron, emacron, Emacron ]}; key {[ o, O, omacron, Omacron ]}; key {[ amacron, Amacron, amacron, Amacron ]}; key {[ p, P, p, P ]}; key {[ b, B, b, B ]}; key {[ j, J, j, J ]}; key {[ d, D, d, D ]}; key {[ imacron, Imacron, imacron, Imacron ]}; key {[ l, L, lcedilla, Lcedilla ]}; key {[ g, G, gcedilla, Gcedilla ]}; Key {[ bracketleft, braceleft, guillemotleft, leftdoublequotemark ]}; key {[ bracketright, braceright, guillemotright, rightdoublequotemark ]}; key {[ e, E, e, E ]}; key {[ u, U, umacron, Umacron ]}; key {[ a, A, a, A ]}; key {[ n, N, ncedilla, Ncedilla ]}; key {[ k, K, kcedilla, Kcedilla ]}; key {[ ISO_Level3_Latch, quotedbl, apostrophe, quotedbl ]}; key {[ s, S, scaron, Scaron ]}; key {[ i, I, i, I ]}; key {[ t, T, t, T ]}; key {[ r, R, rcedilla, Rcedilla ]}; key {[ m, M, bar, M ]}; key {[ slash, question, backslash, U263A ]}; key {[ q, Q, q, Q ]}; key {[ x, X, q, Q ]}; key {[ z, Z, zcaron, Zcaron ]}; key {[ c, C, ccaron, Ccaron ]}; key {[ v, V, v, V ]}; key {[ w, W, w, W ]}; key {[ f, F, f, F ]}; key {[ y, Y, y, Y ]}; key {[ h, H, h, H ]}; key {[ comma, semicolon, less, multiply ]}; key {[ period, colon, greater, division ]}; key {[ space, space, apostrophe ]}; modifier_map Mod5 { }; include "level3(ralt_switch)" }; // EXTRAS: //============================================================================ // US Dvorak compatible Latvian layout // http://en.wikipedia.org/wiki/Dvorak_Simplified_Keyboard // partial alphanumeric_keys modifier_keys xkb_symbols "dvorak" { name[Group1]= "Latvian (US Dvorak)"; key {[ asciitilde, grave, acute, asciitilde ]}; key {[ 1, exclam, onesuperior, exclamdown ]}; key {[ 2, at, twosuperior, oneeighth ]}; key {[ 3, numbersign, threesuperior, sterling ]}; key {[ 4, dollar, EuroSign, cent ]}; key {[ 5, percent, onehalf, threeeighths ]}; key {[ 6, asciicircum, threequarters, fiveeighths ]}; key {[ 7, ampersand, braceleft, seveneighths ]}; key {[ 8, asterisk, bracketleft, trademark ]}; key {[ 9, parenleft, bracketright, plusminus ]}; key {[ 0, parenright, braceright, degree ]}; key {[ bracketleft, braceleft, leftdoublequotemark, guillemotleft ]}; key {[ bracketright, braceright, rightdoublequotemark, guillemotright ]}; key {[ apostrophe, quotedbl, leftdoublequotemark, doublelowquotemark ]}; key {[ comma, less, guillemotleft, multiply ]}; key {[ period, greater, guillemotright, division ]}; key {[ p, P, p, P ]}; key {[ y, Y, y, Y ]}; key {[ f, F, f, F ]}; key {[ g, G, gcedilla, Gcedilla ]}; key {[ c, C, ccaron, Ccaron ]}; key {[ r, R, rcedilla, Rcedilla ]}; key {[ l, L, lcedilla, Lcedilla ]}; key {[ slash, question, slash, abovedot ]}; key {[ equal, plus, endash, emdash ]}; key {[ a, A, amacron, Amacron ]}; key {[ o, O, omacron, Omacron ]}; key {[ e, E, emacron, Emacron ]}; key {[ u, U, umacron, Umacron ]}; key {[ i, I, imacron, Imacron ]}; key {[ d, D, d, D ]}; key {[ h, H, h, H ]}; key {[ t, T, t, T ]}; key {[ n, N, ncedilla, Ncedilla ]}; key {[ s, S, scaron, Scaron ]}; key {[ minus, underscore, backslash, questiondown ]}; key {[ semicolon, colon, semicolon, colon ]}; key {[ q, Q, q, Q ]}; key {[ j, J, j, J ]}; key {[ k, K, kcedilla, Kcedilla ]}; key {[ x, X, x, X ]}; key {[ b, B, b, B ]}; key {[ m, M, m, M ]}; key {[ w, W, w, W ]}; key {[ v, V, v, V ]}; key {[ z, Z, zcaron, Zcaron ]}; key {[ backslash, bar, grave, breve ]}; key {[ space, space, space, space ]}; include "level3(ralt_switch)" }; partial alphanumeric_keys modifier_keys xkb_symbols "ykeydvorak" { include "lv(dvorak)" name[Group1]= "Latvian (US Dvorak, Y variant)"; key {[ISO_Level3_Latch, ISO_Level3_Latch, y, Y]}; key {[space, space, y, Y]}; modifier_map Mod5 { }; }; partial alphanumeric_keys modifier_keys xkb_symbols "minuskeydvorak" { include "lv(dvorak)" name[Group1]= "Latvian (US Dvorak, minus variant)"; key {[ISO_Level3_Latch, ISO_Level3_Latch, mimus, underscore]}; key {[space, space, minus, underscore]}; modifier_map Mod5 { }; }; //============================================================================ // US Dvorak programmers layput compatible Latvian layout // http://www.kaufmann.no/roland/dvorak/ // partial alphanumeric_keys modifier_keys xkb_symbols "dvorakprogr" { include "lv(dvorak)" name[Group1]= "Latvian (programmer US Dvorak)"; key {[ dollar, asciitilde, EuroSign, cent ]}; key {[ ampersand, percent, acute, asciitilde ]}; key {[ bracketleft, 7, onesuperior, twosuperior ]}; key {[ braceleft, 5, guillemotleft, leftdoublequotemark ]}; key {[ braceright, 3, guillemotright, rightdoublequotemark ]}; key {[ parenleft, 1, onehalf, threeeighths ]}; key {[ equal, 9, threequarters, fiveeighths ]}; key {[ asterisk, 0, degree, copyright ]}; key {[ parenright, 2, endash, emdash ]}; key {[ plus, 4, plusminus, section ]}; key {[ bracketright, 6, registered, trademark ]}; key {[ exclam, 8, exclam, exclamdown ]}; key {[ numbersign, grave, Greek_alpha, Greek_beta ]}; key {[ semicolon, colon, semicolon, colon ]}; key {[ at, asciicircum, at, asciicircum ]}; key {[ apostrophe, quotedbl, leftdoublequotemark, doublelowquotemark ]}; include "level3(ralt_switch)" }; partial alphanumeric_keys modifier_keys xkb_symbols "ykeydvorakprogr" { include "lv(dvorakprogr)" name[Group1]= "Latvian (programmer US-Dvorak, Y variant)"; key {[ISO_Level3_Latch, ISO_Level3_Latch, y, Y]}; key {[space, space, y, Y]}; modifier_map Mod5 { }; }; partial alphanumeric_keys modifier_keys xkb_symbols "minuskeydvorakprogr" { include "lv(dvorakprogr)" name[Group1]= "Latvian (programmer US Dvorak, minus variant)"; key {[ISO_Level3_Latch, ISO_Level3_Latch, mimus, underscore]}; key {[space, space, minus, underscore]}; modifier_map Mod5 { }; }; //============================================================================ // Colemak compatible Latvian layout // http://colemak.com/ // partial alphanumeric_keys modifier_keys xkb_symbols "colemak" { include "lv(basic)" name[Group1]= "Latvian (US Colemak)"; key {[ f, F, f, F ]}; key {[ p, P, p, P ]}; key {[ g, G, gcedilla, Gcedilla ]}; key {[ j, J, j, J ]}; key {[ l, L, lcedilla, Lcedilla ]}; key {[ u, U, umacron, Umacron ]}; key {[ y, Y, y, Y ]}; key {[ semicolon, colon, semicolon, colon ]}; key {[ r, R, rcedilla, Rcedilla ]}; key {[ s, S, scaron, Scaron ]}; key {[ t, T, t, T ]}; key {[ d, D, d, D ]}; key {[ n, N, ncedilla, Ncedilla ]}; key {[ e, E, emacron, Emacron ]}; key {[ i, I, imacron, Imacron ]}; key {[ o, O, omacron, Omacron ]}; key {[ k, K, kcedilla, Kcedilla ]}; include "level3(ralt_switch)" }; partial alphanumeric_keys modifier_keys xkb_symbols "apostrophecolemak" { include "lv(colemak)" name[Group1]= "Latvian (US Colemak, apostrophe variant)"; key {[ISO_Level3_Latch, quotedbl, apostrophe, quotedbl]}; key {[space, space, apostrophe]}; modifier_map Mod5 { }; };