Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add slavic_phonetic (qwerty) #384

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ public static List<String> getSupportedLocales() {
public static final String LAYOUT_QWERTZ = "qwertz";
public static final String LAYOUT_SERBIAN = "serbian";
public static final String LAYOUT_SERBIAN_QWERTZ = "serbian_qwertz";
public static final String LAYOUT_SLAVIC_PHONETIC = "slavic_phonetic";
public static final String LAYOUT_SPANISH = "spanish";
public static final String LAYOUT_SWISS = "swiss";
public static final String LAYOUT_TAMIL = "tamil";
Expand Down Expand Up @@ -446,6 +447,9 @@ public List<Subtype> getSubtypes() {
case LOCALE_KAZAKH:
case LOCALE_KYRGYZ:
case LOCALE_RUSSIAN:
addLayout(LAYOUT_EAST_SLAVIC);
addLayout(LAYOUT_SLAVIC_PHONETIC, R.string.subtype_phonetic);
break;
case LOCALE_UKRAINIAN:
addLayout(LAYOUT_EAST_SLAVIC);
break;
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
<string name="subtype_f">F</string>
<!-- Description for Bengali (Bijoy) keyboard layout. -->
<string name="subtype_bijoy">Bijoy</string>
<!-- Description for Phonetic keyboard layout. -->
<string name="subtype_phonetic">Phonetic</string>

<string name="keyboard_theme_dark_border" translatable="false">Material Dark Border</string>
<string name="keyboard_theme_light_border" translatable="false">Material Light Border</string>
Expand Down
55 changes: 55 additions & 0 deletions app/src/main/res/xml-sw600dp/rows_slavic_phonetic.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2011, 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.
*/
-->

<merge
xmlns:latin="http://schemas.android.com/apk/res-auto"
>
<Row
latin:keyWidth="8.182%p"
>
<include
latin:keyboardLayout="@xml/rowkeys_slavic_phonetic1" />
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="fillRight" />
</Row>
<Row
latin:keyWidth="8.182%p"
>
<include
latin:keyboardLayout="@xml/rowkeys_slavic_phonetic2" />
<Key
latin:keyStyle="enterKeyStyle"
latin:keyWidth="fillRight" />
</Row>
<Row
latin:keyWidth="8.182%p"
>
<Key
latin:keyStyle="shiftKeyStyle"
latin:keyWidth="10.0%p" />
<include
latin:keyboardLayout="@xml/rowkeys_slavic_phonetic3" />
<include
latin:keyboardLayout="@xml/keys_exclamation_question" />
</Row>
<include
latin:keyboardLayout="@xml/row_qwerty4" />
</merge>
38 changes: 38 additions & 0 deletions app/src/main/res/xml/kbd_slavic_phonetic.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2012, 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.
*/
-->

<switch xmlns:latin="http://schemas.android.com/apk/res-auto">
<case latin:showNumberRow="true">
<Keyboard
latin:verticalGap="@fraction/config_key_vertical_gap_5row"
latin:bonusHeight="@fraction/config_key_bonus_height_5row"
latin:rowHeight="20%p">
<include latin:keyboardLayout="@xml/key_styles_common" />
<include latin:keyboardLayout="@xml/row_qwerty0" />
<include latin:keyboardLayout="@xml/rows_slavic_phonetic" />
</Keyboard>
</case>
<default>
<Keyboard>
<include latin:keyboardLayout="@xml/key_styles_common" />
<include latin:keyboardLayout="@xml/rows_slavic_phonetic" />
</Keyboard>
</default>
</switch>
41 changes: 41 additions & 0 deletions app/src/main/res/xml/keyboard_layout_set_slavic_phonetic.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2012, 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.
*/
-->

<KeyboardLayoutSet
xmlns:latin="http://schemas.android.com/apk/res-auto">
<Element
latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_slavic_phonetic" />
<Element
latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" />
<Element
latin:elementName="symbolsShifted"
latin:elementKeyboard="@xml/kbd_symbols_shift" />
<Element
latin:elementName="phone"
latin:elementKeyboard="@xml/kbd_phone" />
<Element
latin:elementName="phoneSymbols"
latin:elementKeyboard="@xml/kbd_phone_symbols" />
<Element
latin:elementName="number"
latin:elementKeyboard="@xml/kbd_number" />
</KeyboardLayoutSet>
194 changes: 194 additions & 0 deletions app/src/main/res/xml/rowkeys_slavic_phonetic1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2012, 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.
*/
-->

<merge
xmlns:latin="http://schemas.android.com/apk/res-auto"
>
<switch>
<case
latin:showNumberRow="true"
latin:showExtraChars="true">
<!-- U+044F: "я" CYRILLIC SMALL LETTER YA -->
<Key
latin:keySpec="&#x044F;"
latin:keyHintLabel="\\"
latin:additionalMoreKeys="\\\\" />
<!-- U+0432: "в" CYRILLIC SMALL LETTER VE -->
<Key
latin:keySpec="&#x0432;"
latin:keyHintLabel="|"
latin:additionalMoreKeys="\\|" />
<!-- U+0435: "е" CYRILLIC SMALL LETTER IE -->
<Key
latin:keySpec="&#x0435;"
latin:moreKeys="!text/morekeys_cyrillic_ie"
latin:keyHintLabel="="
latin:additionalMoreKeys="="
/>
<!-- U+0440: "р" CYRILLIC SMALL LETTER ER -->
<Key
latin:keySpec="&#x0440;"
latin:keyHintLabel="["
latin:additionalMoreKeys="!text/keyspec_left_square_bracket"
/>
<!-- U+0442: "т" CYRILLIC SMALL LETTER TE -->
<Key
latin:keySpec="&#x0442;"
latin:keyHintLabel="]"
latin:additionalMoreKeys="!text/keyspec_right_square_bracket"
/>
<!-- U+044B: "ы" CYRILLIC SMALL LETTER YERU -->
<Key
latin:keySpec="&#x044B;"
latin:keyHintLabel="{"
latin:additionalMoreKeys="!text/keyspec_left_curly_bracket"
/>
<!-- U+0443: "у" CYRILLIC SMALL LETTER U -->
<Key
latin:keySpec="&#x0443;"
latin:keyHintLabel="}"
latin:additionalMoreKeys="!text/keyspec_right_curly_bracket"
/>
<Key
latin:keySpec="!text/keyspec_east_slavic_row3_5"
latin:keyHintLabel="~"
latin:additionalMoreKeys="~"
latin:moreKeys="&#x0456;" />
<!-- U+043E: "о" CYRILLIC SMALL LETTER O -->
<Key
latin:keySpec="&#x043E;"
latin:keyHintLabel="&#x00B0;"
latin:additionalMoreKeys="&#x00B0;" />
<!-- U+043F: "п" CYRILLIC SMALL LETTER PE -->
<Key
latin:keySpec="&#x043F;"
latin:keyHintLabel="^"
latin:additionalMoreKeys="^" />
<Key
latin:keySpec="!text/keyspec_east_slavic_row2_11"
latin:keyHintLabel="`"
latin:additionalMoreKeys="`" />
</case>
<case latin:showNumberRow="true">
<!-- U+044F: "я" CYRILLIC SMALL LETTER YA -->
<Key
latin:keySpec="&#x044F;" />
<!-- U+0432: "в" CYRILLIC SMALL LETTER VE -->
<Key
latin:keySpec="&#x0432;" />
<!-- U+0435: "е" CYRILLIC SMALL LETTER IE -->
<Key
latin:keySpec="&#x0435;"
latin:moreKeys="!text/morekeys_cyrillic_ie"
/>
<!-- U+0440: "р" CYRILLIC SMALL LETTER ER -->
<Key
latin:keySpec="&#x0440;"
/>
<!-- U+0442: "т" CYRILLIC SMALL LETTER TE -->
<Key
latin:keySpec="&#x0442;"
/>
<!-- U+044B: "ы" CYRILLIC SMALL LETTER YERU -->
<Key
latin:keySpec="&#x044B;"
/>
<!-- U+0443: "у" CYRILLIC SMALL LETTER U -->
<Key
latin:keySpec="&#x0443;" />
<Key
latin:keySpec="!text/keyspec_east_slavic_row3_5"
latin:moreKeys="&#x0456;" />
<!-- U+043E: "о" CYRILLIC SMALL LETTER O -->
<Key
latin:keySpec="&#x043E;" />
<!-- U+043F: "п" CYRILLIC SMALL LETTER PE -->
<Key
latin:keySpec="&#x043F;" />
<Key
latin:keySpec="!text/keyspec_east_slavic_row2_11" />
</case>
<default>
<!-- U+044F: "я" CYRILLIC SMALL LETTER YA -->
<Key
latin:keySpec="&#x044F;"
latin:keyHintLabel="1"
latin:additionalMoreKeys="1" />
<!-- U+0432: "в" CYRILLIC SMALL LETTER VE -->
<Key
latin:keySpec="&#x0432;"
latin:keyHintLabel="2"
latin:additionalMoreKeys="2" />
<!-- U+0435: "е" CYRILLIC SMALL LETTER IE -->
<Key
latin:keySpec="&#x0435;"
latin:moreKeys="!text/morekeys_cyrillic_ie"
latin:keyHintLabel="3"
latin:additionalMoreKeys="3"
/>
<!-- U+0440: "р" CYRILLIC SMALL LETTER ER -->
<Key
latin:keySpec="&#x0440;"
latin:keyHintLabel="4"
latin:additionalMoreKeys="4"
/>
<!-- U+0442: "т" CYRILLIC SMALL LETTER TE -->
<Key
latin:keySpec="&#x0442;"
latin:keyHintLabel="5"
latin:additionalMoreKeys="5"
/>
<!-- U+044B: "ы" CYRILLIC SMALL LETTER YERU -->
<Key
latin:keySpec="&#x044B;"
latin:keyHintLabel="6"
latin:additionalMoreKeys="6"
/>
<!-- U+0443: "у" CYRILLIC SMALL LETTER U -->
<Key
latin:keySpec="&#x0443;"
latin:keyHintLabel="7"
latin:additionalMoreKeys="7"
/>
<Key
latin:keySpec="!text/keyspec_east_slavic_row3_5"
latin:keyHintLabel="8"
latin:additionalMoreKeys="8"
latin:moreKeys="&#x0456;" />
<!-- U+043E: "о" CYRILLIC SMALL LETTER O -->
<Key
latin:keySpec="&#x043E;"
latin:keyHintLabel="9"
latin:additionalMoreKeys="9" />
<!-- U+043F: "п" CYRILLIC SMALL LETTER PE -->
<Key
latin:keySpec="&#x043F;"
latin:keyHintLabel="0"
latin:additionalMoreKeys="0" />
<Key
latin:keySpec="!text/keyspec_east_slavic_row2_11" />
</default>
</switch>
</merge>
Loading