futo-org / android-keyboard

Offical FUTO Keyboard Issue Tracker and Source Mirror of https://gitlab.futo.org/keyboard/latinime
Other
636 stars 22 forks source link

East Slavic Keyboard symbols #139

Open KuroiKoyani opened 3 months ago

KuroiKoyani commented 3 months ago

Please add showing symbols hints to East slavic keyboard. Thanks a lot!

KuroiKoyani commented 2 months ago

Adapted from OpenBoard, added degree sign on 'х' like in Gboard. This should overall be much better experience than empty symbol rows for anyone who used Gboard or OpenBoard in the past.

java/res/xml/rowkeys_east_slavic1.xml

<?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"
>
    <!-- U+0439: "й" CYRILLIC SMALL LETTER SHORT I -->
    <Key
        latin:keySpec="&#x0439;"
        latin:keyHintLabel="1"
        latin:additionalMoreKeys="1,\\%" />
    <!-- U+0446: "ц" CYRILLIC SMALL LETTER TSE -->
    <Key
        latin:keySpec="&#x0446;"
        latin:keyHintLabel="2"
        latin:additionalMoreKeys="2,\\\\" />
    <!-- U+0443: "у" CYRILLIC SMALL LETTER U -->
    <Key
        latin:keySpec="&#x0443;"
        latin:keyHintLabel="3"
        latin:additionalMoreKeys="3,|"
        latin:moreKeys="!text/morekeys_cyrillic_u" />
    <!-- U+043A: "к" CYRILLIC SMALL LETTER KA -->
    <Key
        latin:keySpec="&#x043A;"
        latin:keyHintLabel="4"
        latin:additionalMoreKeys="4,="
        latin:moreKeys="!text/morekeys_cyrillic_ka" />
    <!-- U+0435: "е" CYRILLIC SMALL LETTER IE -->
    <Key
        latin:keySpec="&#x0435;"
        latin:keyHintLabel="5"
        latin:additionalMoreKeys="5,!text/keyspec_left_square_bracket"
        latin:moreKeys="!text/morekeys_cyrillic_ie" />
    <!-- U+043D: "н" CYRILLIC SMALL LETTER EN -->
    <Key
        latin:keySpec="&#x043D;"
        latin:keyHintLabel="6"
        latin:additionalMoreKeys="6,!text/keyspec_right_square_bracket"
        latin:moreKeys="!text/morekeys_cyrillic_en" />
    <!-- U+0433: "г" CYRILLIC SMALL LETTER GHE -->
    <Key
        latin:keySpec="&#x0433;"
        latin:keyHintLabel="7"
        latin:additionalMoreKeys="7,!text/keyspec_less_than"
        latin:moreKeys="!text/morekeys_cyrillic_ghe" />
    <!-- U+0448: "ш" CYRILLIC SMALL LETTER SHA -->
    <Key
        latin:keySpec="&#x0448;"
        latin:keyHintLabel="8"
        latin:additionalMoreKeys="8,!text/keyspec_greater_than" />
    <Key
        latin:keySpec="!text/keyspec_east_slavic_row1_9"
        latin:keyHintLabel="9"
        latin:additionalMoreKeys="9,!text/keyspec_left_curly_bracket" />
    <!-- U+0437: "з" CYRILLIC SMALL LETTER ZE -->
    <Key
        latin:keySpec="&#x0437;"
        latin:keyHintLabel="0"
        latin:additionalMoreKeys="0,!text/keyspec_right_curly_bracket" />
    <!-- U+0445: "х" CYRILLIC SMALL LETTER HA -->
    <Key
        latin:keySpec="&#x0445;"
        latin:additionalMoreKeys="°" />
</merge>

java/res/xml/rowkeys_east_slavic2.xml

<?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"
>
    <!-- U+0444: "ф" CYRILLIC SMALL LETTER EF -->
    <Key
        latin:keySpec="&#x0444;"
        latin:keyHintLabel="\@"
        latin:additionalMoreKeys="\\@" />
    <Key
        latin:keySpec="!text/keyspec_east_slavic_row2_2"
        latin:keyHintLabel="#"
        latin:additionalMoreKeys="#"
        latin:moreKeys="!text/morekeys_east_slavic_row2_2" />
    <!-- U+0432: "в" CYRILLIC SMALL LETTER VE -->
    <Key
        latin:keySpec="&#x0432;"
        latin:keyHintLabel="$"
        latin:additionalMoreKeys="$" />
    <!-- U+0430: "а" CYRILLIC SMALL LETTER A -->
    <Key
        latin:keySpec="&#x0430;"
        latin:moreKeys="!text/morekeys_cyrillic_a"
        latin:keyHintLabel="%"
        latin:additionalMoreKeys="%" />
    <!-- U+043F: "п" CYRILLIC SMALL LETTER PE -->
    <Key
        latin:keySpec="&#x043F;"
        latin:keyHintLabel="&amp;"
        latin:additionalMoreKeys="&amp;" />
    <!-- U+0440: "р" CYRILLIC SMALL LETTER ER -->
    <Key
        latin:keySpec="&#x0440;"
        latin:keyHintLabel="_"
        latin:additionalMoreKeys="_" />
    <!-- U+043E: "о" CYRILLIC SMALL LETTER O -->
    <Key
        latin:keySpec="&#x043E;"
        latin:keyHintLabel="/"
        latin:additionalMoreKeys="/"
        latin:moreKeys="!text/morekeys_cyrillic_o" />
    <!-- U+043B: "л" CYRILLIC SMALL LETTER EL -->
    <Key
        latin:keySpec="&#x043B;"
        latin:keyHintLabel="-"
        latin:additionalMoreKeys="-" />
    <!-- U+0434: "д" CYRILLIC SMALL LETTER DE -->
    <Key
        latin:keySpec="&#x0434;"
        latin:keyHintLabel="+"
        latin:additionalMoreKeys="+" />
    <!-- U+0436: "ж" CYRILLIC SMALL LETTER ZHE -->
    <Key
        latin:keySpec="&#x0436;"
        latin:keyHintLabel="("
        latin:additionalMoreKeys="(" />
    <Key
        latin:keySpec="!text/keyspec_east_slavic_row2_11"
        latin:moreKeys="!text/morekeys_east_slavic_row2_11"
        latin:keyHintLabel=")"
        latin:additionalMoreKeys=")" />
</merge>

java/res/xml/rowkeys_east_slavic3.xml

<?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"
>
    <!-- U+044F: "я" CYRILLIC SMALL LETTER YA -->
    <Key
        latin:keySpec="&#x044F;"
        latin:keyHintLabel="*"
        latin:additionalMoreKeys="*" />
    <!-- U+0447: "ч" CYRILLIC SMALL LETTER CHE -->
    <Key
        latin:keySpec="&#x0447;"
        latin:keyHintLabel="&quot;"
        latin:additionalMoreKeys="&quot;" />
    <!-- U+0441: "с" CYRILLIC SMALL LETTER ES -->
    <Key
        latin:keySpec="&#x0441;"
        latin:keyHintLabel="&apos;"
        latin:additionalMoreKeys="&apos;" />
    <!-- U+043C: "м" CYRILLIC SMALL LETTER EM -->
    <Key
        latin:keySpec="&#x043C;"
        latin:keyHintLabel=":"
        latin:additionalMoreKeys=":" />
    <Key
        latin:keySpec="!text/keyspec_east_slavic_row3_5"
        latin:keyHintLabel=";"
        latin:additionalMoreKeys=";" />
    <!-- U+0442: "т" CYRILLIC SMALL LETTER TE -->
    <Key
        latin:keySpec="&#x0442;"
        latin:keyHintLabel="!"
        latin:additionalMoreKeys="!" />
    <!-- U+044C: "ь" CYRILLIC SMALL LETTER SOFT SIGN -->
    <Key
        latin:keySpec="&#x044C;"
        latin:moreKeys="!text/morekeys_cyrillic_soft_sign"
        latin:keyHintLabel="\?"
        latin:additionalMoreKeys="\\?" />
    <!-- U+0431: "б" CYRILLIC SMALL LETTER BE -->
    <Key
        latin:keySpec="&#x0431;"
        latin:keyHintLabel="&lt;"
        latin:additionalMoreKeys="&lt;" />
    <!-- U+044E: "ю" CYRILLIC SMALL LETTER YU -->
    <Key
        latin:keySpec="&#x044E;"
        latin:keyHintLabel="&gt;"
        latin:additionalMoreKeys="&gt;" />
</merge>

Screenshots of a local build: image image image image