maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Virtual keyboard layout change/mod? (https://talk.maemo.org/showthread.php?t=14698)

Benson 2008-04-08 21:21

Re: Virtual keyboard layout change/mod?
 
Hmm... I think those probably live in your theme directories, but I'm not at all sure.

GeraldKo 2008-05-05 05:37

Re: Virtual keyboard layout change/mod?
 
Quote:

Originally Posted by roblynn (Post 124013)
Here is what you need to customize the layout of a virtual keyboard:
1) Get the decode_vkb perl script. You use this script on the appropriate VKB file in /usr/share/keyboards to convert the VKB into an editable XML document.
2) Get both deb from here for the appropriate architecture (depending if you are doing this on the device or on a linux x86 workstation). Use ar and tar to extract the files from the deb, and then to extract the gen_vkb executable and the libimlayouts shared object from the installation archives. Put them both in the same folder -- to run you need to add the current path to LD_LIBRARY_PATH.

Now you have the tools. Simply decode the VKB to XML, edit the file, and then re-encode it using gen_vkb. Move the generated .vkb file to /usr/share/keyboards, restart the hildon-input daemon and voila!

I could use some help with Step 1. After I download decode_vkb I end up with a file called decode_vkb.htm. If I doubleclick it, I get an html page with three links. One is a read me, one is a license, and one is, I suppose, a perl script: decode_vkb.pl

I have no idea what to do with that perl script. Clicking it in MicroB gets me a File Not Found error. But the script doesn't seem accessible other than from within html. Maybe I need some perl software, or I'm just lost.

To summarize, I have no idea about how to "use this [perl] script on the appropriate VKB file ... to convert the VKB into an editable XML document."

qwerty12 2008-05-05 07:54

Re: Virtual keyboard layout change/mod?
 
Use his second post.

GeraldKo 2008-05-05 11:08

Re: Virtual keyboard layout change/mod?
 
Quote:

Originally Posted by qwerty12 (Post 178031)
Use his second post.

That post details Step 2; I'm lost at Step 1: creating the xml file.

qwerty12 2008-05-05 11:12

Re: Virtual keyboard layout change/mod?
 
No, he's already done the bit with decode-vkb so that step is not needed anymore.

GeraldKo 2008-05-05 12:06

Re: Virtual keyboard layout change/mod?
 
Quote:

Originally Posted by qwerty12 (Post 178054)
No, he's already done the bit with decode-vkb so that step is not needed anymore.


But "the bit with decode-vkb" is Step 1. He's done it, but I haven't!

"1) Get the decode_vkb perl script. You use this script on the appropriate VKB file in /usr/share/keyboards to convert the VKB into an editable XML document." When I "get" the perl script, it appears to me to be part of an html file. I don't know how to get it out of there and what to do with it.

It seems to me that what he does in Post #4 assumes you have completed Step 1, that you already have converted the VKB file into an XML file -- that's what I can't do.

(And, Faheem, I don't want to look a gift horse in the mouth, but aren't you supposed to be in school now! ;) )

qwerty12 2008-05-05 12:11

Re: Virtual keyboard layout change/mod?
 
Oh sorry! I forget, you are right. Give me a sec, and i'll help you out.

Hehe, not today, bank holiday monday :)

GeraldKo 2008-05-05 12:24

Re: Virtual keyboard layout change/mod?
 
No rush, time for me to head back to bed! Have a fun day off :)

qwerty12 2008-05-05 12:26

Re: Virtual keyboard layout change/mod?
 
Ok, make sure you have the tar from #4 extracted to the /home/user/MyDocs folder.
Save this http://idoru.metadreams.net/~kimju/s.../decode_vkb.pl - in the gen_vkb_arm folder.

Now, "cd /home/user/MyDocs/gen_vkb_arm" and run "chmod +x ./decode_vkb.pl"
(I assume you use american english layout)
run
"cp /usr/share/keyboards/en_US.vkb ."

now "./decode_vkb.pl en_US.vkb > en_US.xml"

and u now have a xml file :)

Thanks! :)

jbenny 2008-05-05 20:18

Re: Virtual keyboard layout change/mod?
 
I noticed that the standard OSK layout shows a little, thin key to the left of the spacebar that I can tap on. Is this a valid key? Can I assign CTRL to this key, so I don't have to use the sidebar in Xterm?


All times are GMT. The time now is 06:21.

vBulletin® Version 3.8.8