Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
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 245
Posts: 944
Join Date: Feb 2008
Location: Tønsberg
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:	295
Size:	103.3 KB
ID:	455990  
Attached Files
File Type: zip dz-esp-v02.zip - [Click for QR Code] (2.8 KB, 43 views)
File Type: zip dz-esp-v021.zip - [Click for QR Code] (2.0 KB, 48 views)
File Type: zip g2-nordic_v03.zip - [Click for QR Code] (2.8 KB, 122 views)
I've got ORD!

Current phone:
Samsung Galaxy Note II


Have had:
-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 5
Posts: 81
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 245
Posts: 944
Join Date: Feb 2008
Location: Tønsberg
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
I've got ORD!

Current phone:
Samsung Galaxy Note II


Have had:
-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 5
Posts: 81
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, 61 views)
 
Novek
Old
#5  
Novek's Avatar
Recognized Developer - OP
Thanks Meter 245
Posts: 944
Join Date: Feb 2008
Location: Tønsberg
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...
I've got ORD!

Current phone:
Samsung Galaxy Note II


Have had:
-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 5
Posts: 81
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 1174
Posts: 1,204
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
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 5
Posts: 81
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 245
Posts: 944
Join Date: Feb 2008
Location: Tønsberg
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...
I've got ORD!

Current phone:
Samsung Galaxy Note II


Have had:
-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 18
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

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Xposed Framework Module for the AT&T Galaxy S 4

Got yourself a brand new Galaxy S 4? Are you looking for some fun mods to make it truly your … more

Job Interview Prep: Phone Screen Part 1 – XDA Developer TV

XDA Developer TV Producer Jayce has been very busy creating videos to help … more

Auto Test Your Android Apps with Robotium

You’ve just finished coding your very first app, but before you release it to the wild, you … more

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more