| 1   2     3   | Next | Last
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   New stuff available for creating/editing virtual keyboards on the N900 now available (https://talk.maemo.org/showthread.php?t=79899)

jonwil 2011-11-11 19:32

New stuff available for creating/editing virtual keyboards on the N900 now available
 
I have just released some stuff to aid in creating/editing virtual keyboard layouts on the N900, including layouts for the "special characters view" (i.e. what you get if you press "sym")
Download http://www.cncmods.net/files/vkb.zip
The following files are included:
decode_vkb.pl script to decode a .vkb file to XML for editing (its a modification of an existing Perl script, it now properly decodes everything the N900 vkb parser will parse)
gen_vkb binary for program to generate a .vkb file from an XML file (its a clone of the gen_vkb from older Maemo versions but it supports all the N900 features)
gen_vkb.c source for gen_vkb
gen_vkb.sh script to compile gen_vkb.c
imlayout_vkb.h header file you can use to talk to the libimlayout library (which loads and parses the vkb files)
vkb-format-v4.txt (modified/updated description of the .vkb file format)

If you wish to compile gen_vkb.c, you will need to put gen_vkb.c and gen_vkb.sh in a folder on your scratchbox setup, then put imlayout_vkb.h in your /usr/include, then make sure you have the libimlayout0 package installed in your scratchbox install, then create a symbolic link from /usr/lib/libimlayout.so.0 to /usr/lib/libimlayout.so. Then run gen_vkb.sh.

gen_vkb should compile and run for both x86 and ARM if you have a usable libimlayout library available.

The stock vkb files are in /usr/share/keyboards and /usr/share/scv_layouts

Captwheeto 2011-11-11 19:42

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
You really don't mess around O:

Thanks!

neboja 2011-11-11 19:58

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
is this means that all of us could create a different and adjustable vkb?????
so a portrait vkb now could be fixed to be more "finger friendly"???? :)))))))))

travla 2011-11-12 03:31

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Great work jonwil, looking forward to checking this out and seeing possibilities.

kent_autistic 2011-11-22 03:18

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
bump bump any takers? portrait vkb layout?

vi_ 2011-11-22 09:12

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by jonwil (Post 1122022)
I have just released some stuff to aid in creating/editing virtual keyboard layouts on the N900, including layouts for the "special characters view" (i.e. what you get if you press "sym")
Download http://www.cncmods.net/files/vkb.zip
The following files are included:
decode_vkb.pl script to decode a .vkb file to XML for editing (its a modification of an existing Perl script, it now properly decodes everything the N900 vkb parser will parse)
gen_vkb binary for program to generate a .vkb file from an XML file (its a clone of the gen_vkb from older Maemo versions but it supports all the N900 features)
gen_vkb.c source for gen_vkb
gen_vkb.sh script to compile gen_vkb.c
imlayout_vkb.h header file you can use to talk to the libimlayout library (which loads and parses the vkb files)
vkb-format-v4.txt (modified/updated description of the .vkb file format)

If you wish to compile gen_vkb.c, you will need to put gen_vkb.c and gen_vkb.sh in a folder on your scratchbox setup, then put imlayout_vkb.h in your /usr/include, then make sure you have the libimlayout0 package installed in your scratchbox install, then create a symbolic link from /usr/lib/libimlayout.so.0 to /usr/lib/libimlayout.so. Then run gen_vkb.sh.

gen_vkb should compile and run for both x86 and ARM if you have a usable libimlayout library available.

The stock vkb files are in /usr/share/keyboards and /usr/share/scv_layouts

Jonwil, you have made a epic fail. You have missed out your paypal address. How are we to know were to send the beer money?

gregoranderson 2011-11-22 09:20

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by vi_ (Post 1127236)
Jonwil, you have made a epic fail. You have missed out your paypal address. How are we to know were to send the beer money?

I may have the answer. Looking at this work, I have a feeling Jonwil may be omnipresent, therefore if one buys any beer in any bar any where in the world, Jonwil shall drink it.

jonwil 2011-11-22 15:40

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
I dont use Fleabay or Paycrap and I dont drink anything with alcohol in it :)

Alfred 2011-11-22 16:10

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Guys, does it mean, that portrait vkb can be fixed or not?
Thnx in advance!

Estel 2011-11-23 07:48

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Yes.

Ten chars.

Remus 2011-11-23 14:14

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by Estel (Post 1127704)
Yes.

Ten chars.

You wouldn't happen to know how to, would you? I've tried to edit the decoded .vkb file myself and i end up with it being completely broken when encoding it.

m@m0nt 2011-11-23 16:11

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Big thanks! Very useful!
http://imageplay.net/img/m7Gbd237443...123_144951.png

cjp 2011-11-23 16:46

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Can what the buttons actually do be changed?

For eg. I'd like the Enter key to dismiss the vkb from sight (and send)?

Estel 2011-11-24 05:41

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by Remus (Post 1127853)
You wouldn't happen to know how to, would you? I've tried to edit the decoded .vkb file myself and i end up with it being completely broken when encoding it.

Unfortunately, no. I'm just sure it's possible, checking how it works, but haven't played with it for too long. Maybe it's because I don't use vkb at all, so my motivations is "quite" limited ;)

Alfred 2011-11-24 06:36

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by m@m0nt (Post 1127918)

dude, you have to share your files and pls tell me where to put it! I am russian too!

WhiteWolf 2011-11-24 13:32

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Are there binaries available vkb?

Thanks

don_falcone 2011-11-24 14:09

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by m@m0nt (Post 1127918)

DIGIT ROWS! :eek:

kent_autistic 2011-11-24 14:35

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by m@m0nt (Post 1127918)

hey man, care to fix the portrait layout? :)

m@m0nt 2011-11-27 08:17

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
1 Attachment(s)
Copy to /usr/share/keyboards
In Settings> Text Input select English (USA) instead of English (UK)

Remus 2011-11-27 10:42

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by m@m0nt (Post 1129441)
Copy to /usr/share/keyboards
In Settings> Text Input select English (USA) instead of English (UK)

Fantastic, could one bother you for a sv_SE layout as well?

m@m0nt 2011-11-28 07:13

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
1 Attachment(s)
Here you are.

Remus 2011-11-28 11:37

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by m@m0nt (Post 1129892)
Here you are.

My my, you sure are a productive one, thanks a lot friend.

zmay 2011-11-28 15:49

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
what about portrait kb 3x4?? Is it doable?
any noob tutorial how to edit keyboard?

Keneraali 2011-11-28 17:53

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Is it possible to create new .vkbs on the N900 itself? I don't have a proper linux box to compile :I

neboja 2011-11-28 18:03

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
...or under windows environment maybe????

The Winter 2011-11-28 18:10

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Could any one create a chinese layout in relation to english alpha-bets , we call it pinyin ..please ?
great work jonwil, its really a huge thing to maemo .
the winter aka lost prankster !! :)

Estel 2011-11-29 17:24

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by neboja (Post 1130200)
...or under windows environment maybe????

...running on N900 under dosbox. Sorry, can't stop myself from writing that. People, really, downloading live-DVD (or live-CD) version of some linux distro (Aptosid as Debian, for example) and using it isn't so hard...

/Estel

neboja 2011-11-29 19:30

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
@estel: that was what i asked (just didn't express myself wright way :p )
;)
ok thx for tip ;)

knarf 2011-12-06 11:49

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
could someone atleast resize the spacebar so it doesnt block the other buttons in portrait mode?

JadeH 2011-12-06 13:50

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
how do i make the virtual keyboard turn from the keypad thing back to a full keyboard like kent_autistic?

TransTech 2011-12-06 14:14

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
can anybody make a proper portrait (EN) keyboard so that it can be added to CSSU.

EDIT:>>
Points/hints to portrait convertability:

1) decrease the size of spacebar
2) move the shift key to the lowest row (before the copy,cut,paste function button))
3) decrease the size of [shift key], [function key], [number/symbol key] and [enter key].
4. rearrange the third and fourth rows.

i'll try to show a mock-up if i'll get time. ;) [see below]

Mock-Up>>>
http://dc465.4shared.com/img/w4kU1EG.../Landscape.png

http://dc455.4shared.com/img/1FxAmIB...3/Portrait.png

hope someone will create one now.. :)

thanks

kent_autistic 2011-12-06 14:18

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by JadeH (Post 1133977)
how do i make the virtual keyboard turn from the keypad thing back to a full keyboard like kent_autistic?

huh?

ten chars

TransTech 2011-12-18 17:24

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by m@m0nt (Post 1127918)

Can you please make something like this for me and all... :)
http://dc478.4shared.com/img/mH3g4Y-...r_keyboard.jpg

p.s. I would like to make it but I really dont know to code anything... and... I use Win7 and have no knowledge about the ubuntu and scratchbox.. :(

p.s.2 : or if anyone else can do this then it will be a great work for the community. ;)

thank you ..

kent_autistic 2011-12-19 02:11

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
pleeeeeease :)

m@m0nt 2011-12-19 05:14

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by TransTech (Post 1139139)
Can you please make something like this for me and all... :)
http://dc478.4shared.com/img/mH3g4Y-...r_keyboard.jpg

p.s. I would like to make it but I really dont know to code anything... and... I use Win7 and have no knowledge about the ubuntu and scratchbox.. :(

p.s.2 : or if anyone else can do this then it will be a great work for the community. ;)

thank you ..


The bottom row is not so easy to edit, it is "coded" into the keyboard.
I'm trying, but I'm not sure I could do it.
I think the only jonwil can do it, or people who know reverse engineering.

Sorry for my English.

jonwil 2011-12-20 22:21

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
ok, for this keyboard layout you are trying to edit (the one where you say the botton row is hardcoded), please point me at the .vkb file for it so I can examine it.

If it does turn out to be hardcoded, I will investigate it when I get back from my holiday around new years

vi_ 2011-12-20 22:37

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Can someone upload a copy of the English keyboard decoded to XML? I want to take a look at this space bar thing...

m@m0nt 2011-12-21 07:26

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by jonwil (Post 1140192)
ok, for this keyboard layout you are trying to edit (the one where you say the botton row is hardcoded), please point me at the .vkb file for it so I can examine it.

If it does turn out to be hardcoded, I will investigate it when I get back from my holiday around new years

This "coded" not in the .vkb files, it's located in hildon_western_fkb.so

Remus 2011-12-21 10:18

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
1 Attachment(s)
Quote:

Originally Posted by vi_ (Post 1140199)
Can someone upload a copy of the English keyboard decoded to XML? I want to take a look at this space bar thing...

Decoded both en_US and en_GB for you since you didn't clearly specify which one you wanted.

Best of luck.

vi_ 2011-12-21 11:35

Re: New stuff available for creating/editing virtual keyboards on the N900 now available
 
Quote:

Originally Posted by Remus (Post 1140330)
Decoded both en_US and en_GB for you since you didn't clearly specify which one you wanted.

Best of luck.

Thank you for the files.

The XML file appears to describe 2 layouts or 'modes. Normal and Full. However these could be two elements of the same vkb, one part being what we see in this file, another part for the stuff we cannot:

Code:

<screen>
                <mode name="NORMAL"/>
                <mode name="FULL"/>
        </screen>


Yet the XML contains two sections called Normal and thumb!

Code:

<keyboard layout="NORMAL" default_key_size="0">
Code:

<keyboard layout="THUMB" default_key_size="3">
It would seem 'thumb' describes the layout of the vkb. The 'normal' layout does not seem to correlate with anything on the n900. Not the vkb nor the real one. It does however look slightly similar to the one on the n810 with the 'bank' of number keys like on a regular keyboard.

The thumb layout describes the first 3 lines (the one with letters, numbers, symbols) and their 4 possible combinations.

At no point is the 4th row described in the XML file. The fourth row contains the 'keyboard functions (cut, copy, paste), space bar, 'symbols' key and return.

Strangely enough though, didn't pr1.1 have a different vkb?

http://i45.tinypic.com/v6kdax.jpg

So what does a de-compiled pr1.1 vkb xml file look like?


This leaves the final mystery of what are the different keysizes:

Code:

<keyboard layout="NORMAL" default_key_size="0">
Code:

<keyboard layout="THUMB" default_key_size="3">
And how does this relate to the field keysize?:

Code:

<keysizes>
                <size height="35" baseline="26" width="35" margin_top="0" margin_left="0" />
                <size height="35" baseline="26" width="50" margin_top="0" margin_left="0" />
                <size height="35" baseline="26" width="55" margin_top="0" margin_left="0" />
                <size height="55" baseline="41" width="72" margin_top="0" margin_left="0" />
                <size height="55" baseline="41" width="143" margin_top="0" margin_left="0" />
        </keysizes>



| 1   2     3   | Next | Last
All times are GMT. The time now is 07:55.

vBulletin® Version 3.8.8