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

Commit 803ea5e3 authored by kaiyiz's avatar kaiyiz Committed by Linux Build Service Account
Browse files

LatinIME: Customize features for regional package.

- Customize auto correction type of input method LatinIME.
- Make the button in the lower right corner of the keyboard to be Enter
  button in MMS.

Change-Id: I6eccf7b78258765b52ffa28c9e43fa771e6e0799
parent ddc1ce17
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,4 +21,5 @@
    <!-- Whether this input method should be used as the default for a locale. Override it
         for supported languages. -->
    <bool name="im_is_default">false</bool>
    <bool name="lower_right_corner_is_enter">false</bool>
</resources>
+38 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2014, The Linux Foundation. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above
      copyright notice, this list of conditions and the following
      disclaimer in the documentation and/or other materials provided
      with the distribution.
    * Neither the name of The Linux Foundation nor the names of its
      contributors may be used to endorse or promote products derived
      from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<resources>

    <!--
         default auto correction mode, 0-off, 1-modest, 2-aggeressive, 3-very aggeressive,
            default value is 1.
    -->
    <string name="auto_correction_threshold_mode_default_index">1</string>

</resources>
+9 −0
Original line number Diff line number Diff line
@@ -254,6 +254,15 @@
                latin:styleName="enterKeyStyle"
                latin:parentStyle="emojiKeyStyle" />
        </case>
        <!-- Make the button in the lower right corner of the keyboard to be Enter
             button. -->
        <case
            latin:mode="lowerRightCornerIsEnterKey"
        >
            <key-style
                latin:styleName="enterKeyStyle"
                latin:parentStyle="defaultEnterKeyStyle" />
        </case>
        <case
            latin:imeAction="actionGo"
        >
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@
        android:summary="@string/auto_correction_summary"
        android:entryValues="@array/auto_correction_threshold_mode_indexes"
        android:entries="@array/auto_correction_threshold_modes"
        android:defaultValue="@string/auto_correction_threshold_mode_index_modest"
        android:defaultValue="@string/auto_correction_threshold_mode_default_index"
        android:persistent="true" />
    <CheckBoxPreference
        android:key="show_suggestions"
+2 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ public final class KeyboardId {
    public static final int MODE_DATE = 6;
    public static final int MODE_TIME = 7;
    public static final int MODE_DATETIME = 8;
    public static final int MODE_LOWER_RIGHT_CORNER_ENTER = 9;

    public static final int ELEMENT_ALPHABET = 0;
    public static final int ELEMENT_ALPHABET_MANUAL_SHIFTED = 1;
@@ -233,6 +234,7 @@ public final class KeyboardId {
        case MODE_DATE: return "date";
        case MODE_TIME: return "time";
        case MODE_DATETIME: return "datetime";
        case MODE_LOWER_RIGHT_CORNER_ENTER: return "lowerRightCornerIsEnterKey";
        default: return null;
        }
    }
Loading