From f797dc90551a6a1d4022f426bfd9ec8b94511181 Mon Sep 17 00:00:00 2001 From: Mathieu Meisser Date: Mon, 31 Mar 2014 17:02:03 +0200 Subject: Add support for Latvian (qwerty) keyboard mapping Add kcm mapping files for Latvian keyboard layout based on US-international keylayout (qwerty). Change-Id: I667081d3e7bb0ece3b278da3f97926f54c319ff8 Signed-off-by: Olivier Gay Signed-off-by: Myriam Douve Signed-off-by: Mathieu Meisser --- .../res/raw/keyboard_layout_latvian_qwerty.kcm | 362 +++++++++++++++++++++ packages/InputDevices/res/values/strings.xml | 3 + packages/InputDevices/res/xml/keyboard_layouts.xml | 4 + 3 files changed, 369 insertions(+) create mode 100644 packages/InputDevices/res/raw/keyboard_layout_latvian_qwerty.kcm (limited to 'packages/InputDevices') diff --git a/packages/InputDevices/res/raw/keyboard_layout_latvian_qwerty.kcm b/packages/InputDevices/res/raw/keyboard_layout_latvian_qwerty.kcm new file mode 100644 index 0000000..d4bc0c0 --- /dev/null +++ b/packages/InputDevices/res/raw/keyboard_layout_latvian_qwerty.kcm @@ -0,0 +1,362 @@ +# Copyright (C) 2014 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# +# Latvian (QWERTY-US-intl based) keyboard layout. +# + +type OVERLAY + +map key 86 BACKSLASH +map key 43 POUND + +### ROW 1 + +key GRAVE { + label: '\u0300' + base: '\u0300' + shift: '\u0303' + ralt: '-' +} + +key 1 { + label: '1' + base: '1' + shift: '!' + ralt: '\u00a0' +} + +key 2 { + label: '2' + base: '2' + shift: '@' + ralt: '\u00ab' +} + +key 3 { + label: '3' + base: '3' + shift: '#' + ralt: '\u00bb' +} + +key 4 { + label: '4' + base: '4' + shift: '$' + ralt: '\u20ac' + ralt+shift: '\u00a7' +} + +key 5 { + label: '5' + base: '5' + shift: '%' + ralt+shift: '\u00b0' +} + +key 6 { + label: '6' + base: '6' + shift: '\u0302' + ralt: '\u2019' +} + +key 7 { + label: '7' + base: '7' + shift: '&' + ralt+shift: '\u00b1' +} + +key 8 { + label: '8' + base: '8' + shift: '*' + ralt+shift: '\u00d7' +} + +key 9 { + label: '9' + base: '9' + shift: '(' +} + +key 0 { + label: '0' + base: '0' + shift: ')' +} + +key MINUS { + label: '-' + base: '-' + shift: '_' + ralt: '\u2013' + ralt+shift: '\u2014' +} + +key EQUALS { + label: '=' + base: '=' + shift: '+' +} + +### ROW 2 + +key Q { + label: 'Q' + base: 'q' + shift, capslock: 'Q' +} + +key W { + label: 'W' + base: 'w' + shift, capslock: 'W' +} + +key E { + label: 'E' + base: 'e' + shift, capslock: 'E' + ralt: '\u0113' + shift+ralt, ralt+capslock: '\u0112' +} + +key R { + label: 'R' + base: 'r' + shift, capslock: 'R' + ralt: '\u0157' + shift+ralt, ralt+capslock: '\u0156' +} + +key T { + label: 'T' + base: 't' + shift, capslock: 'T' +} + +key Y { + label: 'Y' + base: 'y' + shift, capslock: 'Y' +} + +key U { + label: 'U' + base: 'u' + shift, capslock: 'U' + ralt: '\u016b' + shift+ralt, ralt+capslock: '\u016a' +} + +key I { + label: 'I' + base: 'i' + shift, capslock: 'I' + ralt: '\u012b' + shift+ralt, ralt+capslock: '\u012a' +} + +key O { + label: 'O' + base: 'o' + shift, capslock: 'O' + ralt: '\u00f5' + shift+ralt, ralt+capslock: '\u00d5' +} + +key P { + label: 'P' + base: 'p' + shift, capslock: 'P' +} + +key LEFT_BRACKET { + label: '[' + base: '[' + shift: '{' +} + +key RIGHT_BRACKET { + label: ']' + base: ']' + shift: '}' +} + + +### ROW 3 + +key A { + label: 'A' + base: 'a' + shift, capslock: 'A' + ralt: '\u0101' + shift+ralt, ralt+capslock: '\u0100' +} + +key S { + label: 'S' + base: 's' + shift, capslock: 'S' + ralt: '\u0161' + shift+ralt, ralt+capslock: '\u0160' +} + +key D { + label: 'D' + base: 'd' + shift, capslock: 'D' +} + +key F { + label: 'F' + base: 'f' + shift, capslock: 'F' +} + +key G { + label: 'G' + base: 'g' + shift, capslock: 'G' + ralt: '\u0123' + shift+ralt, ralt+capslock: '\u0122' +} + +key H { + label: 'H' + base: 'h' + shift, capslock: 'H' +} + +key J { + label: 'J' + base: 'j' + shift, capslock: 'J' +} + +key K { + label: 'K' + base: 'k' + shift, capslock: 'K' + ralt: '\u0137' + shift+ralt, ralt+capslock: '\u0136' +} + +key L { + label: 'L' + base: 'l' + shift, capslock: 'L' + ralt: '\u013c' + shift+ralt, ralt+capslock: '\u013b' +} + +key SEMICOLON { + label: ';' + base: ';' + shift: ':' +} + +key APOSTROPHE { + label: '\'' + base: '\'' + shift: '"' + ralt: '\u0301' + shift+ralt: '\u0308' +} + +key POUND { + label: '\u00b0' + base: '\u00b0' + shift: '|' +} + +### ROW 4 + +key BACKSLASH { + label: '\\' + base: '\\' + shift: '|' + ralt: '\u00ac' + shift+ralt: '\u00a6' +} + +key Z { + label: 'Z' + base: 'z' + shift, capslock: 'Z' + ralt: '\u017e' + shift+ralt, ralt+capslock: '\u017d' +} + +key X { + label: 'X' + base: 'x' + shift, capslock: 'X' +} + +key C { + label: 'C' + base: 'c' + shift, capslock: 'C' + ralt: '\u010d' + shift+ralt, ralt+capslock: '\u010c' +} + +key V { + label: 'V' + base: 'v' + shift, capslock: 'V' +} + +key B { + label: 'B' + base: 'b' + shift, capslock: 'B' +} + +key N { + label: 'N' + base: 'n' + shift, capslock: 'N' + ralt: '\u0146' + shift+ralt, ralt+capslock: '\u0145' +} + +key M { + label: 'M' + base: 'm' + shift, capslock: 'M' +} + +key COMMA { + label: ',' + base: ',' + shift: '<' +} + +key PERIOD { + label: '.' + base: '.' + shift: '>' +} + +key SLASH { + label: '/' + base: '/' + shift: '?' + ralt: '\u00bf' +} diff --git a/packages/InputDevices/res/values/strings.xml b/packages/InputDevices/res/values/strings.xml index 6239336..968961a 100644 --- a/packages/InputDevices/res/values/strings.xml +++ b/packages/InputDevices/res/values/strings.xml @@ -113,4 +113,7 @@ Spanish (Latin) + + + Latvian diff --git a/packages/InputDevices/res/xml/keyboard_layouts.xml b/packages/InputDevices/res/xml/keyboard_layouts.xml index dc1db0b..6f7253c 100644 --- a/packages/InputDevices/res/xml/keyboard_layouts.xml +++ b/packages/InputDevices/res/xml/keyboard_layouts.xml @@ -143,4 +143,8 @@ + + -- cgit v1.1