OESF Portables Forum
Model Specific Forums => Gemini PDA => Gemini PDA - Android => Topic started by: zsalab2 on August 14, 2018, 03:03:22 am
-
There are some topics mentioning remapping the keyboard, but I have not found any which is really verified. Is there a guide for this somewhere?
Basically I want to change a few keys in Android.
-
There are some topics mentioning remapping the keyboard, but I have not found any which is really verified. Is there a guide for this somewhere?
Basically I want to change a few keys in Android.
Sorry, for the late reply. Basically, when rooted, it is rather easy to change the layout. Can't takex credit for the description, as I myself found it some time ago - but I am unfortunately not able to locate the original source. Edit: here it is: https://www.oesf.org/forum/index.php?showtopic=35412 (https://www.oesf.org/forum/index.php?showtopic=35412)- Get Apk Editor from the Play Store (or other source). Install and open.
- Select Apk from App -> Choose Gemini Keyboard package (its name is localized to your language)
- Choose Simple Edit (File Replacement) option to open it.
- Navigate to res/raw and save keyboard_layout_YOURLANGUAGE_gemini.kcm out of the package in any folder you prefer. YOURLANGUAGE obviously has to be replaced with whichever language layout you wish to change
- Open a text editor (eg Jota or QuickEdit) and give it authorization to open files.
- Open the file you saved in Apk Editor
- Take a look at how the file is structured and make the changes you wish. In my case, I modified the U-key to output the following:
- u for normal key press
- U when pressed with Shift (or active Caps)
- ü when pressed with Alt
- Ü when pressed with Alt + Shift (or active Caps)
- - when pressed with Fn
- – (a long dash) when pressed with Fn + Shift (or active Caps)
In code, this translates to
key U {
label: 'U'
base: 'u'
shift, capslock: 'U'
fn: '-'
fn+shift, fn+capslock: '\u2013'
alt: '\u00fc'
alt+capslock, shift+alt: '\u00dc'
}
- Save your changes to the file
- Go back to Apk Editor, click on the icon next to the one you pressed earlier to save your layout file in order to replace it with your modified one.
- Save.
- After saving, click the Remove-button to uninstall the official apk.
- Click install to install your modified apk.
- Click open and follow the instructions to configure the keyboard.