Make German (Germany) split layout

This commit is contained in:
Hagen Echzell 2021-01-18 21:34:09 +01:00 committed by Daniele Laudani
parent c14c3cbc7d
commit 20e78ef447
3 changed files with 273 additions and 25 deletions

View file

@ -0,0 +1,155 @@
<?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"
>
<include
latin:keyboardLayout="@xml/key_styles_common" />
<!-- TODO: Consolidate the layout specification between protrait and landscape.
Ideally just the keyWidth should be different and the spacer should adjust to fill
the available space. -->
<!-- First row -->
<Row
latin:keyWidth="8.182%p"
>
<switch>
<!-- Split keyboard layout for the first row -->
<case
latin:isSplitLayout="true"
>
<include
latin:keyboardLayout="@xml/rowkeys_qwertz1_left5"
latin:keyWidth="6.75%p" />
<Spacer
latin:keyWidth="17%p" />
<include
latin:keyboardLayout="@xml/rowkeys_qwertz1_right5"
latin:keyWidth="6.75%p" />
<Key
latin:keySpec="!text/keyspec_swiss_row1_11"
latin:keyWidth="6.75%p" />
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="fillRight" />
</case>
<!-- Regular layout for the first row -->
<default>
<include
latin:keyboardLayout="@xml/rowkeys_qwertz1"/>
<Key
latin:keySpec="!text/keyspec_swiss_row1_11"/>
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="fillRight" />
</default>
</switch>
</Row>
<!-- Second row -->
<Row
latin:keyWidth="8.182%p"
>
<switch>
<!-- Split keyboard layout for the second row -->
<case
latin:isSplitLayout="true"
>
<include
latin:keyboardLayout="@xml/rowkeys_qwertz2_left5"
latin:keyWidth="6.75%p" />
<Spacer
latin:keyWidth="17%p" />
<include
latin:keyboardLayout="@xml/rowkeys_qwertz2_right4"
latin:keyWidth="6.75%p" />
<Key
latin:keySpec="!text/keyspec_swiss_row2_10"
latin:keyWidth="6.75%p" />
<Key
latin:keySpec="!text/keyspec_swiss_row2_11"
latin:keyWidth="6.75%p" />
<Key
latin:keyStyle="enterKeyStyle"
latin:keyWidth="fillRight" />
</case>
<!-- Regular layout for the second row -->
<default>
<include
latin:keyboardLayout="@xml/rowkeys_qwertz2"/>
<Key
latin:keySpec="!text/keyspec_swiss_row2_10"/>
<Key
latin:keySpec="!text/keyspec_swiss_row2_11"/>
<Key
latin:keyStyle="enterKeyStyle"
latin:keyWidth="fillRight" />
</default>
</switch>
</Row>
<!-- Third row -->
<Row
latin:keyWidth="8.182%p"
>
<switch>
<!-- Split keyboard layout for the third row -->
<case
latin:isSplitLayout="true"
>
<Key
latin:keyStyle="shiftKeyStyle"
latin:keyXPos="2.75%p"
latin:keyWidth="8.5%p" />
<include
latin:keyboardLayout="@xml/rowkeys_qwertz3_left4"
latin:keyWidth="6.75%p" />
<Spacer
latin:keyWidth="17%p" />
<include
latin:keyboardLayout="@xml/rowkeys_qwertz3_right3"
latin:keyWidth="6.75%p" />
<include
latin:keyboardLayout="@xml/keys_exclamation_question"
latin:keyWidth="6.75%p" />
<Key
latin:keyStyle="shiftKeyStyle"
latin:keyWidth="fillRight" />
</case>
<!-- Regular layout for the third row -->
<default>
<Key
latin:keyStyle="shiftKeyStyle"
latin:keyWidth="10.0%p" />
<Spacer
latin:keyWidth="3.181%p" />
<include
latin:keyboardLayout="@xml/rowkeys_qwertz3"/>
<include
latin:keyboardLayout="@xml/keys_exclamation_question"/>
<Key
latin:keyStyle="shiftKeyStyle"
latin:keyXPos="-10.0%p"
latin:keyWidth="fillRight" />
</default>
</switch>
</Row>
<!-- Fourth row -->
<include
latin:keyboardLayout="@xml/row_qwerty4" />
</merge>

View file

@ -2,7 +2,7 @@
<!--
/*
**
** Copyright 2013, The Android Open Source Project
** 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.
@ -23,41 +23,133 @@
>
<include
latin:keyboardLayout="@xml/key_styles_common" />
<!-- TODO: Consolidate the layout specification between protrait and landscape.
Ideally just the keyWidth should be different and the spacer should adjust to fill
the available space. -->
<!-- First row -->
<Row
latin:keyWidth="8.182%p"
>
<switch>
<!-- Split keyboard layout for the first row -->
<case
latin:isSplitLayout="true"
>
<include
latin:keyboardLayout="@xml/rowkeys_german1" />
latin:keyboardLayout="@xml/rowkeys_qwertz1_left5"
latin:keyWidth="7.5%p" />
<Spacer
latin:keyWidth="8.5%p" />
<include
latin:keyboardLayout="@xml/rowkeys_qwertz1_right5"
latin:keyWidth="7.5%p" />
<Key
latin:keySpec="!text/keyspec_swiss_row1_11"
latin:keyWidth="7.5%p" />
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="fillRight" />
</case>
<!-- Regular layout for the first row -->
<default>
<include
latin:keyboardLayout="@xml/rowkeys_qwertz1"/>
<Key
latin:keySpec="!text/keyspec_swiss_row1_11"/>
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="fillRight" />
</default>
</switch>
</Row>
<!-- Second row -->
<Row
latin:keyWidth="8.182%p"
>
<switch>
<!-- Split keyboard layout for the second row -->
<case
latin:isSplitLayout="true"
>
<include
latin:keyboardLayout="@xml/rowkeys_german2" />
latin:keyboardLayout="@xml/rowkeys_qwertz2_left5"
latin:keyWidth="7.5%p" />
<Spacer
latin:keyWidth="8.5%p" />
<include
latin:keyboardLayout="@xml/rowkeys_qwertz2_right4"
latin:keyWidth="7.5%p" />
<Key
latin:keySpec="!text/keyspec_swiss_row2_10"
latin:keyWidth="7.5%p" />
<Key
latin:keySpec="!text/keyspec_swiss_row2_11"
latin:keyWidth="7.5%p" />
<Key
latin:keyStyle="enterKeyStyle"
latin:keyWidth="fillRight" />
</case>
<!-- Regular layout for the second row -->
<default>
<include
latin:keyboardLayout="@xml/rowkeys_qwertz2"/>
<Key
latin:keySpec="!text/keyspec_swiss_row2_10"/>
<Key
latin:keySpec="!text/keyspec_swiss_row2_11"/>
<Key
latin:keyStyle="enterKeyStyle"
latin:keyWidth="fillRight" />
</default>
</switch>
</Row>
<!-- Third row -->
<Row
latin:keyWidth="8.182%p"
>
<switch>
<!-- Split keyboard layout for the third row -->
<case
latin:isSplitLayout="true"
>
<Key
latin:keyStyle="shiftKeyStyle"
latin:keyXPos="3.5%p"
latin:keyWidth="8.5%p" />
<include
latin:keyboardLayout="@xml/rowkeys_qwertz3_left4"
latin:keyWidth="7.5%p" />
<Spacer
latin:keyWidth="8.5%p" />
<include
latin:keyboardLayout="@xml/rowkeys_qwertz3_right3"
latin:keyWidth="7.5%p" />
<include
latin:keyboardLayout="@xml/keys_exclamation_question"
latin:keyWidth="7.5%p" />
<Key
latin:keyStyle="shiftKeyStyle"
latin:keyWidth="fillRight" />
</case>
<!-- Regular layout for the third row -->
<default>
<Key
latin:keyStyle="shiftKeyStyle"
latin:keyWidth="10.0%p" />
<Spacer
latin:keyWidth="3.181%p" />
<include
latin:keyboardLayout="@xml/rowkeys_german3" />
latin:keyboardLayout="@xml/rowkeys_qwertz3"/>
<include
latin:keyboardLayout="@xml/keys_exclamation_question"/>
<Key
latin:keyStyle="shiftKeyStyle"
latin:keyXPos="-10.0%p"
latin:keyWidth="fillRight" />
</default>
</switch>
</Row>
<!-- Fourth row -->
<include
latin:keyboardLayout="@xml/row_qwerty4" />
</merge>

View file

@ -24,7 +24,8 @@
latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_german"
latin:enableProximityCharsCorrection="true"
latin:allowRedundantMoreKeys="true" />
latin:allowRedundantMoreKeys="true"
latin:supportsSplitLayout="true" />
<Element
latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" />