Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,771,700 Members 43,105 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Novek
Old
(Last edited by Novek; 4th December 2010 at 11:29 AM.) Reason: new version
#1  
Novek's Avatar
Recognized Developer - OP
Thanks Meter 292
Posts: 978
Join Date: Feb 2008
Location: Tnsberg

 
DONATE TO ME
Talking [MOD] Lang characters for hardware keyboard v0.3 [NOR|ESP]

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)
Current phone: Sony Xperia Z - ROM: Constantly changing

Have had:
SGN2-SGS2 -LG Optimus 2X -T-mobile G2 , -HTC Touch 2, -T-mobile Vibrant -Samsung Wave -Samsung Spica I5700 -HTC Rhodium (TP2) -Samsung Jet -HTC Dream -HTC Touch Cruise -HTC Touch -SE K610i -SE K510i -SE t310 -Nokia 3310 -Motorola something...
 
reycat
Old
#2  
Member
Thanks Meter 6
Posts: 87
Join Date: Sep 2007
Quote:
Originally Posted by Novek View Post

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.
 
Novek
Old
#3  
Novek's Avatar
Recognized Developer - OP
Thanks Meter 292
Posts: 978
Join Date: Feb 2008
Location: Tnsberg

 
DONATE TO ME
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
Current phone: Sony Xperia Z - ROM: Constantly changing

Have had:
SGN2-SGS2 -LG Optimus 2X -T-mobile G2 , -HTC Touch 2, -T-mobile Vibrant -Samsung Wave -Samsung Spica I5700 -HTC Rhodium (TP2) -Samsung Jet -HTC Dream -HTC Touch Cruise -HTC Touch -SE K610i -SE K510i -SE t310 -Nokia 3310 -Motorola something...
 
reycat
Old
#4  
Member
Thanks Meter 6
Posts: 87
Join Date: 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)
 
Novek
Old
#5  
Novek's Avatar
Recognized Developer - OP
Thanks Meter 292
Posts: 978
Join Date: Feb 2008
Location: Tnsberg

 
DONATE TO ME
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...
Current phone: Sony Xperia Z - ROM: Constantly changing

Have had:
SGN2-SGS2 -LG Optimus 2X -T-mobile G2 , -HTC Touch 2, -T-mobile Vibrant -Samsung Wave -Samsung Spica I5700 -HTC Rhodium (TP2) -Samsung Jet -HTC Dream -HTC Touch Cruise -HTC Touch -SE K610i -SE K510i -SE t310 -Nokia 3310 -Motorola something...
 
reycat
Old
#6  
Member
Thanks Meter 6
Posts: 87
Join Date: Sep 2007
I don't mind having to long press A to get the , I don't use it that often :)
 
stian230
Old
#7  
stian230's Avatar
Senior Member
Thanks Meter 1185
Posts: 1,218
Join Date: Oct 2009
Location: Penguin land,way up north.

 
DONATE TO ME
cool. this is useful for me. I don't got the Nordic version so thanks
Nexus 5 White 32g
Samsung galaxy S 4
samsung GALAXY SIII Lte I9305
Htc one X
samsung Galaxy S2
Htc vision x 2

Nexus one
Htc Magic x 2
Htc Diamond
Sony ericsson p1i
Htc TyTN II
Sony ericsson p800
Qtek 9000
Qtek 9090


 
reycat
Old
#8  
Member
Thanks Meter 6
Posts: 87
Join Date: Sep 2007
Quote:
Originally Posted by Novek View Post
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.
 
Novek
Old
(Last edited by Novek; 23rd November 2010 at 05:06 PM.)
#9  
Novek's Avatar
Recognized Developer - OP
Thanks Meter 292
Posts: 978
Join Date: Feb 2008
Location: Tnsberg

 
DONATE TO ME
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...
Current phone: Sony Xperia Z - ROM: Constantly changing

Have had:
SGN2-SGS2 -LG Optimus 2X -T-mobile G2 , -HTC Touch 2, -T-mobile Vibrant -Samsung Wave -Samsung Spica I5700 -HTC Rhodium (TP2) -Samsung Jet -HTC Dream -HTC Touch Cruise -HTC Touch -SE K610i -SE K510i -SE t310 -Nokia 3310 -Motorola something...
 
GlobaL_TroTTer
Old
#10  
Member
Thanks Meter 26
Posts: 75
Join Date: May 2010
Location: Oslo
bra jobba!! my friend just go a desire z and he was looking for this
www.xalate.com- My Main Site
www.bawsy.com
www.cyanstatic.com


NEXUS ONE <3
cyanogen mod 7 rc3
43 on linpack- stock, 980mhz
now overclocked to 1.1 ghz
Clockworkmod Recovery
Rooted, Duh
NEXUS ONE <3

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes