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

Unverified Commit 5091fc41 authored by Berkay Yıldırım's avatar Berkay Yıldırım Committed by Luca Stefani
Browse files

Add Turkish specific layout set

The current layout has the following missing keys:
Row 1 key 8: replace "i" with U+0131: "ı" LATIN SMALL LETTER DOTLESS I
Row 1 key 11: U+011F: "ğ" LATIN SMALL LETTER G WITH BREVE
Row 1 key 12: U+00FC: "ü" LATIN SMALL LETTER U WITH DIAERESIS
Row 2 key 10: U+015F: "ş" LATIN SMALL LETTER S WITH CEDILLA
Row 2 key 11: "i"
Row 3 key 8: U+00F6: "ö" LATIN SMALL LETTER O WITH DIAERESIS
Row 3 key 9: U+00E7: "ç" LATIN SMALL LETTER C WITH CEDILLA

Reference: https://commons.wikimedia.org/wiki/File:KB_Turkey_Q2.svg



Note: LatinIMETests for Turkish layout alongside other QWERTY layouts
will fail due to LineageOS team kept additionalmorekeys such as
asterisk, hashtag, ampersand etc. but pulled tests from official
upstream which dropped additionalmorekeys from all Latin keyboard
layouts (except numerals at the top row).

Change-Id: I49afc42a177dae5a743f36ea744b3189a238c544
Signed-off-by: default avatarBerkay Yıldırım <berkayildirm@gmail.com>
parent f052ec6f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -126,7 +126,5 @@
        <item>south_slavic</item>
        <item>sv:AsciiCapable,SupportTouchPositionCorrection,EmojiCapable</item>
        <item>nordic</item>
        <item>tr:AsciiCapable,SupportTouchPositionCorrection,EmojiCapable</item>
        <item>qwerty</item>
    </string-array>
</resources>
+62 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2025, 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" />
    <include latin:keyboardLayout="@xml/row_number_keys" />
    <Row
        latin:keyWidth="7.5%p"
    >
        <include
            latin:keyboardLayout="@xml/rowkeys_turkish1" />
        <Key
            latin:keyStyle="deleteKeyStyle"
            latin:keyWidth="fillRight" />
    </Row>
    <Row
        latin:keyWidth="7.5%p"
    >
        <include
            latin:keyboardLayout="@xml/rowkeys_turkish2"
            latin:keyXPos="3.75%p" />
        <Key
            latin:keyStyle="enterKeyStyle"
            latin:keyWidth="fillRight" />
    </Row>
    <Row
        latin:keyWidth="7.5%p"
    >
        <Key
            latin:keyStyle="shiftKeyStyle"
            latin:keyWidth="7.5%p" />
        <include
            latin:keyboardLayout="@xml/rowkeys_turkish3" />
        <include
            latin:keyboardLayout="@xml/keys_exclamation_question" />
        <Key
            latin:keyStyle="shiftKeyStyle"
            latin:keyWidth="fillRight" />
    </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 2025, 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_turkish" />
</Keyboard>
+43 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2025, 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/com.android.inputmethod.latin">
    <Element
        latin:elementName="alphabet"
        latin:elementKeyboard="@xml/kbd_turkish"
        latin:enableProximityCharsCorrection="true"
        latin:allowRedundantMoreKeys="false" />
    <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>
+2 −2
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@
    te_IN: Telugu (India)/telugu
    th: Thai/thai
    tl: Tagalog/spanish
    tr: Turkish/qwerty
    tr: Turkish/turkish
    uk: Ukrainian/east_slavic
    uz_UZ: Uzbek (Uzbekistan)/uzbek # This is a preliminary keyboard layout.
    vi: Vietnamese/qwerty
@@ -784,7 +784,7 @@
            android:subtypeId="0x4a3179de"
            android:imeSubtypeLocale="tr"
            android:imeSubtypeMode="keyboard"
            android:imeSubtypeExtraValue="AsciiCapable,SupportTouchPositionCorrection,EmojiCapable"
            android:imeSubtypeExtraValue="KeyboardLayoutSet=turkish,AsciiCapable,EmojiCapable"
            android:isAsciiCapable="true"
    />
    <subtype android:icon="@drawable/ic_ime_switcher_dark"
Loading