-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: Localized compact 5-row layouts #475
Comments
Original comment by
|
Hi Klaus, I see you just recently closed a similar issue #682 without resolution. Still, over 3 years ago you had some plan to potentially implement the compact 5-row for other languages. Is it abandoned? Is there anything that can be done by someone else than you? Is there any progress on issue #13? I would appreciate any feedback! |
I had closed #682 since the non-internationalization is currently the expected behavior. I don't have active plans for a major change such as needed for #13. There are two ways to internationalize the compact 5-row keyboard. You could add language-specific altchars via the XML file, this works OK for languages that are OK with a QWERTY layout and just want some additional long-press characters. For a fully custom keyboard that isn't QWERTY, you'd need to make a copy of https://github.com/klausw/hackerskeyboard/blob/master/app/src/main/res/xml/kbd_compact.xml into the xml-uk/ directory and edit the layout to match your language. This is kind of tedious, and gets ugly for non-QWERTY since you basically need to hardcode altchars, you can't just add an |
Thanks a lot for the detailed reply! I might find some time to look into that. I don't expect hardcoding altchars would be too bad for one language. |
There's also a kbd_compact_fn.xml, but you can keep that unmodified if you're OK with the existing layout for that. In theory adding the localized kbd_compact.xml should be sufficient to make it work, but this is somewhat uncharted territory since I haven't previously tried localizing this layout. There's also a layout table in https://github.com/klausw/hackerskeyboard/blob/master/app/src/main/java/org/pocketworkstation/pckeyboard/InputLanguageSelection.java that's autogenerated by a script, but that doesn't currently know about the compact 5-row layout. It should be OK without that, this table is mainly used for showing the available features in the language selection dialog. Old instructions are in https://github.com/klausw/hackerskeyboard/wiki/AddingNewLayouts , but that isn't entirely up to date. Android Studio and/or Gradle are pretty good about giving warnings if there's an issue with the mapping, for example it detects if you're trying to override a nonexistent string. |
I've just updated https://github.com/klausw/hackerskeyboard/wiki/BuildingFromSource , the project is now Android Studio / Gradle compatible. |
Original issue reported on code.google.com by
[email protected]
on 6 Jun 2015 at 12:24The text was updated successfully, but these errors were encountered: