diff options
author | Michael Wright <michaelwr@android.com> | 2014-05-17 01:13:03 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-17 01:13:03 +0000 |
commit | 23041ac43233a4757fc95d505e803524ecbcaa65 (patch) | |
tree | 82a46afbf8d2b4a1e5a081af8fd7a0ab3139eeb8 /packages/InputDevices/res | |
parent | 91b5c658d958f5330f81a7a4d9692b036991473d (diff) | |
parent | d55fa5d584f580d75a0e7014d961e070b541ba90 (diff) | |
download | frameworks_base-23041ac43233a4757fc95d505e803524ecbcaa65.zip frameworks_base-23041ac43233a4757fc95d505e803524ecbcaa65.tar.gz frameworks_base-23041ac43233a4757fc95d505e803524ecbcaa65.tar.bz2 |
am d55fa5d5: am 3a123fda: am 0a5236a7: Merge "Add support for Latvian (qwerty) keyboard mapping"
* commit 'd55fa5d584f580d75a0e7014d961e070b541ba90':
Add support for Latvian (qwerty) keyboard mapping
Diffstat (limited to 'packages/InputDevices/res')
-rw-r--r-- | packages/InputDevices/res/raw/keyboard_layout_latvian_qwerty.kcm | 362 | ||||
-rw-r--r-- | packages/InputDevices/res/values/strings.xml | 3 | ||||
-rw-r--r-- | packages/InputDevices/res/xml/keyboard_layouts.xml | 4 |
3 files changed, 369 insertions, 0 deletions
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) keyboard layout label. [CHAR LIMIT=35] --> <string name="keyboard_layout_spanish_latin">Spanish (Latin)</string> + + <!-- Latvian keyboard layout label. [CHAR LIMIT=35] --> + <string name="keyboard_layout_latvian">Latvian</string> </resources> 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 @@ <keyboard-layout android:name="keyboard_layout_spanish_latin" android:label="@string/keyboard_layout_spanish_latin" android:keyboardLayout="@raw/keyboard_layout_spanish_latin" /> + + <keyboard-layout android:name="keyboard_layout_latvian" + android:label="@string/keyboard_layout_latvian" + android:keyboardLayout="@raw/keyboard_layout_latvian_qwerty" /> </keyboard-layouts> |