Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b560a6cf authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Support Colemak layout

Bug: 4460018
Change-Id: I60c3dfaf205c95b92a54022f0256c33f644c8b10
parent e060d1a5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -153,6 +153,7 @@
        <item>qwertz</item>
        <item>azerty</item>
        <item>dvorak</item>
        <item>colemak</item>
    </string-array>
    <!-- Predefined keyboard layout display names -->
    <string-array name="predefined_layout_display_names">
@@ -160,6 +161,7 @@
        <item>QWERTZ</item>
        <item>AZERTY</item>
        <item>Dvorak</item>
        <item>Colemak</item>
    </string-array>
    <!-- Description for generic subtype that has predefined layout.
         The string resource name must be "subtype_generic_<layout name>". -->
@@ -167,6 +169,7 @@
    <string name="subtype_generic_qwertz">%s (QWERTZ)</string>
    <string name="subtype_generic_azerty">%s (AZERTY)</string>
    <string name="subtype_generic_dvorak">%s (Dvorak)</string>
    <string name="subtype_generic_colemak">%s (Colemak)</string>

    <!-- dictionary pack package name /settings activity (for shared prefs and settings) -->
    <string name="dictionary_pack_package_name">com.google.android.inputmethod.latin.dictionarypack</string>
+29 −0
Original line number Diff line number Diff line
<?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/com.android.inputmethod.latin"
>
    <Key
        latin:keyLabel=":"
        latin:keyHintLabel=";"
        latin:moreKeys=";"
        latin:keyStyle="hasShiftedLetterHintStyle" />
</merge>
+65 −0
Original line number Diff line number Diff line
<?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/com.android.inputmethod.latin"
>
    <include
        latin:keyboardLayout="@xml/key_styles_common" />
    <Row
        latin:keyWidth="8.5%p"
    >
        <include
            latin:keyboardLayout="@xml/rowkeys_colemak1"
            latin:keyLabelFlags="disableAdditionalMoreKeys|disableKeyHintLabel" />
        <include
            latin:keyboardLayout="@xml/key_colemak_semicolon" />
        <Key
            latin:keyStyle="deleteKeyStyle"
            latin:keyWidth="fillBoth" />
    </Row>
    <Row
        latin:keyWidth="8.5%p"
    >
        <include
            latin:keyboardLayout="@xml/rowkeys_colemak2"
            latin:keyXPos="4.5%p" />
        <Key
            latin:keyStyle="enterKeyStyle"
            latin:keyWidth="fillBoth" />
    </Row>
    <Row
        latin:keyWidth="8.5%p"
    >
        <Key
            latin:keyStyle="shiftKeyStyle"
            latin:keyWidth="10.0%p" />
        <include
            latin:keyboardLayout="@xml/rowkeys_colemak3" />
        <include
            latin:keyboardLayout="@xml/keys_comma_period" />
        <include
            latin:keyboardLayout="@xml/key_smiley"
            latin:keyXPos="-8.5%p"
            latin:keyWidth="fillRight" />
    </Row>
    <include
        latin:keyboardLayout="@xml/row_qwerty4" />
</merge>
+71 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2010, 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/com.android.inputmethod.latin"
>
    <include
        latin:keyboardLayout="@xml/key_styles_common" />
    <Row
        latin:keyWidth="8.282%p"
    >
        <Key
            latin:keyStyle="tabKeyStyle"
            latin:keyLabelFlags="alignLeft"
            latin:keyWidth="7.969%p" />
        <include
            latin:keyboardLayout="@xml/rowkeys_colemak1"
            latin:keyLabelFlags="disableAdditionalMoreKeys|disableKeyHintLabel" />
        <include
            latin:keyboardLayout="@xml/key_colemak_semicolon" />
        <Key
            latin:keyStyle="deleteKeyStyle"
            latin:keyWidth="fillBoth" />
    </Row>
    <Row
        latin:keyWidth="8.125%p"
    >
        <Key
            latin:keyStyle="toSymbolKeyStyle"
            latin:keyLabelFlags="alignLeft"
            latin:keyWidth="10.167%p" />
        <include
            latin:keyboardLayout="@xml/rowkeys_colemak2" />
        <Key
            latin:keyStyle="enterKeyStyle"
            latin:keyWidth="fillBoth" />
    </Row>
    <Row
        latin:keyWidth="8.047%p"
    >
        <Key
            latin:keyStyle="shiftKeyStyle"
            latin:keyWidth="13.829%p" />
        <include
            latin:keyboardLayout="@xml/rowkeys_colemak3" />
        <include
            latin:keyboardLayout="@xml/keys_comma_period" />
        <Key
            latin:keyStyle="shiftKeyStyle"
            latin:keyWidth="fillBoth" />
    </Row>
    <include
        latin:keyboardLayout="@xml/row_qwerty4" />
</merge>
+26 −0
Original line number Diff line number Diff line
<?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.
*/
-->

<Keyboard
    xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
>
    <include
        latin:keyboardLayout="@xml/rows_colemak" />
</Keyboard>
Loading