Custom Layout for Virtual and Dock Keyboards - Transformer TF300T Android Development

Hello,
I have a TF300 (no 3G), updated to 4.2.1 stock, will root it today. I want to create a custom keyboard layout - Armenian (my native language), by editing one of the standard layouts that I don't need. If I get right the solutions described here and here, it is possible to add a completely new keyboard layout by modifying one of the stock layouts, key by key.
The question is: which files are for the Asus virtual keyboard layout, and which ones are for the dock layout? I want to modify both. I know that I should look in "/system/usr/xt9/keychars" and "/system/usr/xt9/keylayout", am I right? Is there anything else that I am missing?
Any help will be greatly apperciated, please share your experience of modifying the stock layouts.
Thanks!

Still no reply?
Anyway, yesterday I rooted my TF300, installed Root Explorer, navigated to /system/usr/xt9/keychars/, and there were no keyboard layout files (*.kcm). The folder "keychars" itself was missing. Has something changed from 4.1? Where are the files with the keyboard layouts now?

I am in the same boat as you are! My native language is Macedonian, and cant figure it out. I wanted to do it with cyrilic, but I am not able to do it.
I have been trying to do this for quite a while. If you find a solution, please PM me.

Related

Newbie HTC S740 Faroese/Icelandic letters

Hello everybody.
My first post here.
I've been trying to find an easy way of typing letters like (á, í, ó, ú, ý and ð) using the qwerty keyboard.
I've found some threads, but what people are saying makes no sense to me. To technical.
So I was wondering, if anyone could help me.
Is it possible to modify the phone to type these letter, without entering the symbols menu. Also I haven't been able to find the letter ð, Ð anywhere on the phone.
Thanks in advance.
Heðin
hzd said:
Hello everybody.
My first post here.
I've been trying to find an easy way of typing letters like (á, í, ó, ú, ý and ð) using the qwerty keyboard.
I've found some threads, but what people are saying makes no sense to me. To technical.
So I was wondering, if anyone could help me.
Is it possible to modify the phone to type these letter, without entering the symbols menu. Also I haven't been able to find the letter ð, Ð anywhere on the phone.
Thanks in advance.
Heðin
Click to expand...
Click to collapse
Try altering the keymap.
.-ombre-.
WOW, this looks like it is it.
However, in the other thread, it states "just move the file to the windows folder"
Should it replace another file? Is there a sub-folder in the windows folder where it should be?
The thing is, that I have no experience in working with phones in this way.
But thanks so far
hzd
Yes, it will replace the original keymap text file. Not sure if the integrated file browser will let you do that, but copying with ActiveSync or other filebrowsers such as TotalCommander will definately work
.-ombre-.
Ahh... I see... I think
I will try this out.
hzd
OK. I did this, but no change. Do I have to change anything in the regional settings. Language perhaps...
I downloaded the file in the link. Copied it to the phone and used the resco explorer to copy it to the windows folder on my phone. But the keyboard works in the same way still.
Thanks for the help anyway Don't wan't to sound *****y
hzd

Keyboard Layout

Hello. I've seen some threads about this, but none has helped me. So, I've a TP2 that came with a French ROM and now I've flashed it with a Portuguese one and it's working just fine. The problem is that the QWERTY keyboard is totaly mixed up, because the layout as been changed.
Assuming that it is not possible to change the hardware (if it is please tell me how!!!!!!), how can I modify the layout back to the original one???
Hope someone can help me and feel free to use this thread for the same kind of questions!
There is an easy way to fix it. You can do exactly as I did. Reflash the stock rom. Open a registry editor and export this folder
Code:
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD
Then flash the rom you want and import that folder and you will be good.
gehzumteufel said:
There is an easy way to fix it. You can do exactly as I did. Reflash the stock rom. Open a registry editor and export this folder
Code:
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD
Then flash the rom you want and import that folder and you will be good.
Click to expand...
Click to collapse
So, changing the hardware keyboard is not possible, or is it?
By the way, if someone could get the folder for me, someone that has the French version, i wouldn't have to reflash the stock rom would I?
Is it is possible i would try to find someone that could get it for me...
credinho said:
So, changing the hardware keyboard is not possible, or is it?
By the way, if someone could get the folder for me, someone that has the French version, i wouldn't have to reflash the stock rom would I?
Is it is possible i would try to find someone that could get it for me...
Click to expand...
Click to collapse
I just don't see why you would go through the hassle. It takes 30 minutes to flash the stock, get the stuff, and flash back. It will take much more time to find manuals, wait for parts, etc to swap the hardware keyboard.
Yes, if you had someone else that can export that part of the registry, you would be good.
gehzumteufel said:
I just don't see why you would go through the hassle. It takes 30 minutes to flash the stock, get the stuff, and flash back. It will take much more time to find manuals, wait for parts, etc to swap the hardware keyboard.
Yes, if you had someone else that can export that part of the registry, you would be good.
Click to expand...
Click to collapse
Quite true... I only thought about it because I'm so used with the QWERTY. But probably it's better just change the layout. Thank you for your help!!!
No problem!
I made the changes needed and it worked, by changing:
- HKLM\HARDWARE\DEVICEMAP\KEYBD
CurLang = 1036
- HKLM\System\CurrentControlSet\Control\Keyboard Layout
Active = 0000040c
But there is still something wrong, like when I press:
FN + A... it should appears the "à" but it doesn't
FN + Z... should be "è"
FN + R... should be "é"
FN + S... should be "ê"
FN + D... should be "ô"
FN + F... should be "ù"
I think this are the only ones that doesn't work right... does anybody knows how to fix it?

{PRO} [Q&A] How to change physical keyboard layout on xperia mk16i

As I'm a newbie here, I'm not aloud to post this in the dev section.
So I'll explain how you can simply change you're physical keyboard layout on Gingerbread and ICS easily without flashing an appropriate kernel for the Xperia Pro mk16i iyokan.
-So first you need root access.
-second, you need to install a root explorer like ES file explorer.
activate the root access to /system in the option of ES file explorer.
-ones you're here, you need to identify all the layout you're rom got. they are listed as xml files in the directory:
/system/usr/keyboard-config/layouts
my rom contains almost all keyset imaginable.
-Now you've find the name of your keyset find the file :
/system/usr/keyboard-config/keyprint.xml
-edit it with the file explorer integrated file editor.
-you'll find a file formatted with a fanzy SE header and that:
HTML:
<Keyprint>
<Script name="arabic" keylayout="arabic"/>
<Script name="cyrillic" keylayout="cyrillic"/>
<Script name="greek" keylayout="greek"/>
<Script name="hebrew" keylayout="hebrew"/>
<Script name="latin" keylayout="qwerty"/>
<Script name="thai" keylayout="thai"/>
</Keyprint>
-Choose the alphabet you use and put the name of your layout without the xml file extension.
if you're europeen or american, I guest latin will be you're choice.
For arabic, greek, croatian russian... and every other languages using an another alphabet I let you choose
So for example if I want to change my latin layout from Qwerty to Qwertz
I replace the line
HTML:
<Script name="latin" keylayout="qwerty"/>
by
HTML:
<Script name="latin" keylayout="qwertz"/>
-so save the file and reboot you're phone, you should now get the right keyboard set for you're phone.
Or you can edit it with adb by pulling the file and pushing it after (but it's a bit more tricky
Have a good night and if anybody can move my thread in the good section I'll be very pleased
ps:
All credits and inspiration came from the original post of ameer1234567890 which provide a lot of flashable layout.
I think this works only on stock and stock based ROMs. Can someone please confirm if this works on a ROM like CM7 or CM9.
I'd like to know too, because i used to use cm7 on htc dz but as cm7 or 9 are still in dev for mk16i I never tried them on mine for now
Hey.can u be more specific? How to do this?
I got the file..and now what should i do?
Thnx
Sent from my MK16i using xda premium
anamul.quader said:
Hey.can u be more specific? How to do this?
I got the file..and now what should i do?
Thnx
Sent from my MK16i using xda premium
Click to expand...
Click to collapse
I had an example in the tuto, if you still don't understand, I'll try to explain it again ;-)
Good luck
This does not work in 3rd party apps (smart keyboard pro and swiftkey), also on some cases chrome will misbehave as well. I think chrome is bypassing the xperia keyboard when it's trying to be super-secure such as entering passwords.
Chrome won't show you virtual keyboard at all in such cases so I think it can be safely filed under BUG but that won't help if you can't sign in. Using opera mobile as a workaround works..
I'm pretty sure the stock gingerbread finnish firmware played nice with smart keyboard pro. There's a link in the "root" Xperia pro thread where you can download "hotfix" for Xperia pro. These claim to be keyboard layouts for various languages. These are NOT the text files you describe here but the actual android keymap files.
They did not work for me, though, boo. I'll have to try again. The files in keychars-folder (MAKE BACKUPS!!) are .kcm.bin while the originals are called .kcm. I would assume both are not used at the same time. In keylayouts (backup bro) the replacement files are .kl, same as original but smaller.
3rd party keyboard has never been my point.
Stock android is handling physical keyboard a certain way, and virtual keyboard such as slide it or swiftkey do as they want with that kind of thing.
Switft never works correctly for me with stock rom or with custom rom.
Sorry if it doesn't work.
but if every software interprete keyboard there own way, we're damn lost. I never use Chrome but I guest it can also interprets keyboard layout its own way.
the flash fix you talk about is interesting, I'll try it asap. thks
Those keyboard layout/keychars files just make the HW keyboard stop working properly. I think they come from mini pro. Or at the very least they'd need some configury thingy somethere.
As a positive note, they DO make HW keyboard behave differently but swedish/finnish one definitely does not produce local chars.
Meh, I guess I need to fork up 2€ for wotanserver to get authentic finnish firmware.
FWIW I'm pretty sure stock finnish gingerbread firmware didn't have a problem with smart keyboard pro. And android + keyboard is a bit of a odd-man-out, we don't even get a forum..
Ed: Chrome works ok 95% of the time, I should file bug about text boxes where it goes crazy.
That's too bad, that it doesn't work for you.
Fact is we are at the border of android with physical keyboard.
And ow with nexus 3 without physical button except for sound and power...
I think (not hope) that physical keyboard for phones is almost arrived at its end.
Regarding stock firmwares, my update to ICS made by official sony companion just put me a Qwerty layout :-D so don't be so sure about stock firmwares ;-)
Umlauts in quertz
anybody know how to fix the orders of the umlauts for qwertz layout in the pop-up and make the SYM-Button working?
flashing of files newer worked for me, or a could'nt more use the shortcuts like copy-paste...
see also this thread: http://forum.xda-developers.com/showthread.php?t=1658959&page=20
Search trough the web for solution. nothing.
Physical keyboard has a driver, or own FW or sumthing?
And can i have the stock xperia physical keyboard app?
My sym button doesn't work, my direction arrows are weird, qwerty-stroke keyboard layout. But i accept the latin one too
Or where is this "driver"-stuff in the ROM? Can i copy from old ROM (which one is working), to ICS .587 (which don't)?
Thanks in advance
I installed the arabic script from ameers collection and the language changed to arabic.. thing is my keyboard has the same layout as arabic version but I wanted the english characters.. I tried your method but whatevr script I keep for my keyboard layout, it still follows the same script even after rebooting.. pls help..
Sent from my MK16i using xda app-developers app
ilfunx said:
I installed the arabic script from ameers collection and the language changed to arabic.. thing is my keyboard has the same layout as arabic version but I wanted the english characters.. I tried your method but whatevr script I keep for my keyboard layout, it still follows the same script even after rebooting.. pls help..
Sent from my MK16i using xda app-developers app
Click to expand...
Click to collapse
I'm having the same problem, so if you found a solution over the last few months, could you share it with me, please?
Method not working
Kiwyxda said:
As I'm a newbie here, I'm not aloud to post this in the dev section.
So I'll explain how you can simply change you're physical keyboard layout on Gingerbread and ICS easily without flashing an appropriate kernel for the Xperia Pro mk16i iyokan.
-So first you need root access.
-second, you need to install a root explorer like ES file explorer.
activate the root access to /system in the option of ES file explorer.
-ones you're here, you need to identify all the layout you're rom got. they are listed as xml files in the directory:
/system/usr/keyboard-config/layouts
my rom contains almost all keyset imaginable.
-Now you've find the name of your keyset find the file :
/system/usr/keyboard-config/keyprint.xml
-edit it with the file explorer integrated file editor.
-you'll find a file formatted with a fanzy SE header and that:
HTML:
<Keyprint>
<Script name="arabic" keylayout="arabic"/>
<Script name="cyrillic" keylayout="cyrillic"/>
<Script name="greek" keylayout="greek"/>
<Script name="hebrew" keylayout="hebrew"/>
<Script name="latin" keylayout="qwerty"/>
<Script name="thai" keylayout="thai"/>
</Keyprint>
-Choose the alphabet you use and put the name of your layout without the xml file extension.
if you're europeen or american, I guest latin will be you're choice.
For arabic, greek, croatian russian... and every other languages using an another alphabet I let you choose
So for example if I want to change my latin layout from Qwerty to Qwertz
I replace the line
HTML:
<Script name="latin" keylayout="qwerty"/>
by
HTML:
<Script name="latin" keylayout="qwertz"/>
-so save the file and reboot you're phone, you should now get the right keyboard set for you're phone.
Or you can edit it with adb by pulling the file and pushing it after (but it's a bit more tricky
Have a good night and if anybody can move my thread in the good section I'll be very pleased
ps:
All credits and inspiration came from the original post of ameer1234567890 which provide a lot of flashable layout.
Click to expand...
Click to collapse
Good Post, i tried it but it does not work after i reboot.
So my keyboard is still the QWERTY layout instead of QWERTZ
Also, some detailed instructions on ES Explorer.
Once you open ES Explorer, Left Drawer --> Go to Tools --> Root Explorer --> Mount RW --> Set / to RW
Now you can follow the steps to edit the keyprint.xml
Again let me remind you, i tried this and it does not work. So if i have done it the wrong way, please let me know.

[Q] Enable Android Emoji font from Jellybean

Hi, is there a way to make the phone recognize new fonts? Maybe a config to edit or a way to enable new custom typos in our phone?
Now I have a modded DroidSans-Fallback fonts to see emoji and an emoji keyboard to type them, but it has some issues and doesn't display some icons correctly.
I want to port/enable the font that I attached here to share you , but how?
I'm on GB now, ICS is too "Alpha" for me.
Can you help me?
--- 188 views and no answer? so bad
Bumping this, because I just figured out how.

How to change system-wide fonts in LineageOS

I am making a custom ROM based off LineageOS. And I am thinking of changing the fonts system wide (settings, lock screen, quick settings, etc).
My question is:
1. Where is the folder that contains all the fonts used by the system?
2. Which script do I edit in order to change the fonts used by the system?
I already tried frameworks/base/data/fonts/Android.mk and frameworks/base/data/fonts/fonts.mk but to no avail
Thanks!
One year late but maby...
Maby you find what you need in /system/fonts. The default is Roboto-Regular.ttf.
so...
what is the answer to the question?
I guess copy to /system/fonts and then edit /system/etc/fonts.xml until eyes fall out?..

Categories

Resources