Post Reply

[MOD] Lang characters for hardware keyboard v0.3 [NOR|ESP]

OP Novek

20th November 2010, 11:19 AM   |  #1  
Novek's Avatar
OP Recognized Developer
Flag Tnsberg
Thanks Meter: 292
 
978 posts
Join Date:Joined: Feb 2008
Donate to Me
More
Hi all!

After searching the wide web of the world I didn't find anyone who cared to program the special characters for nordic keyboards (, and ). The norwegian stock ROM has got these mapped to own keys, but I've never liked to use stock ROMs, so I was stuck with the "long press method".

New! Now Spanish is also supported!

If you screw up your phone trying to adb push, cp -f these files I'm not responsible yada yada yada (nothing wrong should happend, really)

What I've done is taking the modified files from teferi, and added my own editing for the quick keys (as I had to make place for the chars I removed from jkl) and the special chars of course.


Confirmed on my G2 (running the Sense ROM from MoDaCo), but should work for the Desire Z too! Any guinea pigs out there?

Code:
*Norwegian*
version 0.3:
-Fixed issue with , and ; didn't work on hardware keyboard. 

version 0.2:
Quick change to the "Z" button, since "`" is used in command substitutions.
-alt-z is still "^", alt-shift-z = "`"

version 0.1:

-alt+j,k,l = ,, (alt+shift gives capitol letter). 
- make ".com" a TAB key, as it ought to be
- left softkey is now "\" "|"  "/"
- right softkeys are now "[" "(" "<" and "]"  ")"  ">"
- alt-z is now "^"
Code:
*Spanish version*
Version 0.2
-Corrected filenames for the new files, and included the right "originals".

Version 0.1
[Key] - [Shift + key] - [FN + key] - [Shift + FN + key]

a - A - ! - 
e - E - 3 - 
i - I - 8 - 
o - O - 9 - 
u - U - 7 - 
n - N - = - 
? -  - " - 
. - < - : - >
INSRUCTIONS:
*Add -wwe after "keypad" in the filename for both files if your running a Desire Z based ROM. CM and G2-based will work without -wwe*
- download file
- unzip *.zip
- adb push vision-keypad.kl /sdcard/
- adb push vision-keypad.kcm.bin /sdcard/
- adb shell
- su (if you don't have ro.secure turned off)
- mount -o remount,rw /dev/block/mmcblk0p25 /system
- cp -f /sdcard/vision-keypad.kl /system/usr/keylayout/
- cp -f /sdcard/vision-keypad.kcm.bin /system/usr/keychars/
- reboot


Btw... backup of original keymapping is included... just rename them without .orig, and follow the procedure above

Code:
Guide to make your own keys:
Download a hex editor (i prefer xvi32), open the "kcm.bin", and alter the symbols shown in the attached .jpg. If you wish to alter the "main" char of the key, you can change that in the .kl file with notepad (check the difference between esp and nor to see an example).
Thanks to teferi for the base files
Attached Thumbnails
Click image for larger version

Name:	keychars.jpg
Views:	323
Size:	103.3 KB
ID:	455990  
Attached Files
File Type: zip dz-esp-v02.zip - [Click for QR Code] (2.8 KB, 46 views)
File Type: zip dz-esp-v021.zip - [Click for QR Code] (2.0 KB, 49 views)
File Type: zip g2-nordic_v03.zip - [Click for QR Code] (2.8 KB, 130 views)
Last edited by Novek; 4th December 2010 at 11:29 AM. Reason: new version
20th November 2010, 06:32 PM   |  #2  
Member
Thanks Meter: 7
 
92 posts
Join Date:Joined: Sep 2007
Quote:
Originally Posted by Novek


I can make files for other special characters if someone wants that... or you could simply HEX-edit the files yourself

Great work! But, since I'm not Norwegian, I'm not going to try it

However, I'd love to see a modification of the original English Desire Z Sense keymap with just a few modifications.

Here's a picture of the Desire Z keyboard

http://www.theunwired.net/media/news...front_open.jpg

1) Getting , , , and by Shift + FN + a, e, i, o, u (I think it's Shift + Alt in the G2 keyboard). Currently I have to long press the vowel key and then touching the screen. Not efficient.

2) Getting by using Shift + ? , and maybe by pressing Shift + FN + ?.

Would it be possible?

If you need the original files or whatever, just tell me

Thank you in advance.
20th November 2010, 06:39 PM   |  #3  
Novek's Avatar
OP Recognized Developer
Flag Tnsberg
Thanks Meter: 292
 
978 posts
Join Date:Joined: Feb 2008
Donate to Me
More
I would need to get the original desire z keymapping files as I've just the g2... they are a little different with the non-letter keys.

Sent from my HTC Vision using XDA App
20th November 2010, 06:59 PM   |  #4  
Member
Thanks Meter: 7
 
92 posts
Join Date:Joined: Sep 2007
Here it is

I've just uploaded a file with the two directories, keychars and keylayout.

I think it's interesting that there are several kcm.bin files and several kl files, for different languages, but I don't know how to select them.

Thank you again.
Attached Files
File Type: zip Desire Z English keypad.zip - [Click for QR Code] (21.1 KB, 64 views)
21st November 2010, 01:25 AM   |  #5  
Novek's Avatar
OP Recognized Developer
Flag Tnsberg
Thanks Meter: 292
 
978 posts
Join Date:Joined: Feb 2008
Donate to Me
More
Actually... You can't keep both ! and "" at the "A" key.... or at least you can't get the "" capitol that way...

It would then be a, A, !, available on that key.

Do you want me to remove the !, or...
21st November 2010, 01:31 AM   |  #6  
Member
Thanks Meter: 7
 
92 posts
Join Date:Joined: Sep 2007
I don't mind having to long press A to get the , I don't use it that often :)
22nd November 2010, 09:00 PM   |  #7  
stian230's Avatar
Senior Member
Flag Penguin land,way up north.
Thanks Meter: 1,185
 
1,218 posts
Join Date:Joined: Oct 2009
Donate to Me
cool. this is useful for me. I don't got the Nordic version so thanks
22nd November 2010, 10:38 PM   |  #8  
Member
Thanks Meter: 7
 
92 posts
Join Date:Joined: Sep 2007
Quote:
Originally Posted by Novek

Actually... You can't keep both ! and "" at the "A" key.... or at least you can't get the "" capitol that way...

It would then be a, A, !, available on that key.

Do you want me to remove the !, or...

Novek, have you had time to look over the Spanish version?

No rush, just curious.
23rd November 2010, 12:21 AM   |  #9  
Novek's Avatar
OP Recognized Developer
Flag Tnsberg
Thanks Meter: 292
 
978 posts
Join Date:Joined: Feb 2008
Donate to Me
More
I've actually haven't had time today but I'll try to find some time tomorrow or wednesday...

Just found a bug in the norwegian mod (the comma button doesn't work) so I'll fix that tomorrow too...

Sent from my HTC Vision using XDA App

/edit

New version up with the , and ; working...
Last edited by Novek; 23rd November 2010 at 05:06 PM.
23rd November 2010, 09:52 PM   |  #10  
Member
Flag Oslo
Thanks Meter: 26
 
75 posts
Join Date:Joined: May 2010
More
bra jobba!! my friend just go a desire z and he was looking for this

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in G2 and Desire Z Android Development by ThreadRank