Misc. changes, arabic fixes
This commit is contained in:
@@ -9,15 +9,14 @@ Cupcake.
|
||||
a given key. This also applies for alternate (alt) symbols
|
||||
- 9 supported languages, with more planned (which are trivial to add)
|
||||
- No hard to memorize key combinations; reasonably uses what the physical keyboard has to offer
|
||||
- Pasting from clipboard akin to Gboard
|
||||
- Occupied screen estate is minimized; on Android 5.0 and higher, an additional floating interface
|
||||
mode is supported, which floats above the text you're typing, thus making the keyboard occupy no
|
||||
space at all
|
||||
- Clipboard management
|
||||
|
||||
## Planned features
|
||||
- Autocorrect
|
||||
- Emojis
|
||||
- More sophisticated clipboard management
|
||||
- Support for content other than text in clipboard
|
||||
- Floating interface, which is placed over the current text in certain contexts, to save screen
|
||||
space
|
||||
|
||||
## Supported languages
|
||||
- English
|
||||
@@ -28,7 +27,7 @@ space at all
|
||||
- Polish
|
||||
- Russian (Phonetic)
|
||||
- Greek (polytonic diacritics under Q)
|
||||
- Arabic (Intellark)
|
||||
- Arabic (Phonetic)
|
||||
|
||||
## Supported devices
|
||||
Thus far, the supported devices are:
|
||||
|
||||
@@ -66,8 +66,8 @@ public class InputView extends RelativeLayout {
|
||||
|
||||
mSymbolLayout.setMargins(0, 0,
|
||||
getResources().getDimensionPixelSize(R.dimen.default_space), 0);
|
||||
mClipLayout.setMargins(0,
|
||||
getResources().getDimensionPixelSize(R.dimen.default_space), 0, 0);
|
||||
mClipLayout.setMargins(0, 0, 0,
|
||||
getResources().getDimensionPixelSize(R.dimen.default_space));
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
|
||||
mSymbolLayout.setMarginEnd(getResources().getDimensionPixelSize(R.dimen.default_space));
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
<item android:state_pressed="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/button_active" />
|
||||
<corners android:radius="@dimen/default_border_radius" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -1,35 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ An input method for the Unihertz Titan/physical keyboard phones
|
||||
~ Copyright (C) 2024 Emil Kosz
|
||||
~
|
||||
~ This program is free software: you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation, either version 3 of the License, or
|
||||
~ (at your option) any later version.
|
||||
~
|
||||
~ This program is distributed in the hope that it will be useful,
|
||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
~ GNU General Public License for more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License
|
||||
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
~
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<item android:state_pressed="false">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/candidate" />
|
||||
<corners android:topLeftRadius="@dimen/default_border_radius"
|
||||
android:topRightRadius="@dimen/default_border_radius"/>
|
||||
</shape>
|
||||
</item>
|
||||
<item android:state_pressed="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/candidate_active" />
|
||||
<corners android:topLeftRadius="@dimen/default_border_radius"
|
||||
android:topRightRadius="@dimen/default_border_radius" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -20,8 +20,7 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:divider="?android:listDivider">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<Button
|
||||
android:id="@+id/paste_button"
|
||||
|
||||
@@ -23,18 +23,16 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="@color/background"
|
||||
android:paddingLeft="@dimen/default_space"
|
||||
android:paddingTop="@dimen/default_space"
|
||||
android:paddingRight="@dimen/default_space">
|
||||
android:padding="@dimen/default_space">
|
||||
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/symbol_list_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/container_height"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignTop="@id/clipboard_button"
|
||||
android:layout_alignBottom="@id/clipboard_button"
|
||||
android:layout_marginEnd="@dimen/default_space"
|
||||
android:layout_marginRight="@dimen/default_space"
|
||||
android:layout_marginBottom="0dp"
|
||||
android:layout_toStartOf="@+id/clipboard_button"
|
||||
android:layout_toLeftOf="@id/clipboard_button">
|
||||
|
||||
@@ -42,9 +40,7 @@
|
||||
android:id="@+id/symbol_list"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
|
||||
</LinearLayout>
|
||||
android:orientation="horizontal" />
|
||||
</HorizontalScrollView>
|
||||
|
||||
<ImageButton
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/candidate"
|
||||
android:background="@drawable/button_transparent"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/text_color"
|
||||
android:textSize="@dimen/symbol_text_size">
|
||||
|
||||
@@ -22,8 +22,6 @@
|
||||
<color name="button">#444</color>
|
||||
<color name="button_toggled">#555</color>
|
||||
<color name="button_active">#666</color>
|
||||
<color name="candidate">#333</color>
|
||||
<color name="candidate_active">#666</color>
|
||||
<color name="text_color">#EEE</color>
|
||||
<color name="danger_text_color">#FF0000</color>
|
||||
</resources>
|
||||
@@ -19,15 +19,15 @@
|
||||
|
||||
<resources>
|
||||
<dimen name="default_space">8dp</dimen>
|
||||
<dimen name="container_height">56dp</dimen>
|
||||
|
||||
<dimen name="button_size">48dp</dimen>
|
||||
<dimen name="symbol_width">40dp</dimen>
|
||||
<dimen name="default_text_size">16sp</dimen>
|
||||
<dimen name="symbol_text_size">18sp</dimen>
|
||||
<dimen name="long_text_size">14dp</dimen>
|
||||
<dimen name="image_button_vertical_padding">12dp</dimen>
|
||||
<dimen name="image_button_horizontal_padding">14dp</dimen>
|
||||
<dimen name="clipboard_popup_width">256dp</dimen>
|
||||
<dimen name="clipboard_popup_height">256dp</dimen>
|
||||
|
||||
<dimen name="default_text_size">16sp</dimen>
|
||||
<dimen name="symbol_text_size">18sp</dimen>
|
||||
<dimen name="long_text_size">14sp</dimen>
|
||||
|
||||
<dimen name="default_border_radius">8dp</dimen>
|
||||
</resources>
|
||||
@@ -1511,7 +1511,7 @@
|
||||
</key>
|
||||
<key code="37"> <!-- I -->
|
||||
<base value="ي" />
|
||||
<base value="ؚ" /> <!-- Kasrah -->
|
||||
<base value="ِ" /> <!-- Kasrah -->
|
||||
<alt value="2" />
|
||||
</key>
|
||||
<key code="38"> <!-- J -->
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<input-method xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:settingsActivity="cfpi_fpsi.eu.titanboard.PreferenceActivity">
|
||||
android:settingsActivity="eu.cfpi_fpsi.titanboard.PreferenceActivity">
|
||||
<!-- Needed for higher Android version so it can be the only used input method.
|
||||
None of these subtypes are actually used. -->
|
||||
<subtype
|
||||
|
||||
Reference in New Issue
Block a user