Thread: [Tuxpaint-devel] On screen keyboard rewrited
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Pere P. i C. <per...@gm...> - 2011-08-26 20:05:02
|
Hi all! Can somebody test and comment on this? http://hornol.no-ip.org/linux/tuxpaint/dev/osk.tar.bz2 This is a rewrite of the work made by Ankit Choudary in GSOC last year, many of the onscreeen keyboard code is out of tuxpaint.c, in onscreen_keyboard.[ch] and there are too the definitions of 3 keyboards in the new osk directory. I've tryed to be as independent of tuxpaint as possible, in case other tux4kids or sdl apps wants to use it, specially the "test" keyboard may be of use in tuxmath with few modifications The approach I taked is approximately the same as xorg: you have a hardware keyboard(.h_layout), over it you map the keys to keysyms,(the output of xmodmap) then the you compose the char based on the clicked key and the previous clicked keys (a Compose file coming from xorg) It is still not finished, and the provided Makefile will not install the new osk directory, just compile and link, you have to do it by hand. I've not commited as I have some questions about it: It uses two files from xorg, the keysym definitions(/usr/include/X11/keysymdef.h) and the Compose file for the english language (/usr/share/X11/locale/en_US.UTF-8/Compose). As far as I understand, the X11 license is compatible with the GPL, but how can we can keep in sync with the original if we get our copy and the original changes? And what about reducing those files in order to save mem? an abc keyboard don't need to know about many international symbols. Another question is about command line, now it can change between keyboards, what is better, keep the current --onscreen-keyboard and add a new --onscreen-keyboard-layout=name? or instead change --onscreen-keyboard to require the name of the layout? Really all of this onscreen keyboard implementation seems a bit overkill to me, but reusing the data from xorg seemed too the easiest way, specially now it is really easy to create new language keyboards. And the last one: Is OK to commit all this stuff? :) Thanks for any comments Pere. |
From: Bill K. <nb...@so...> - 2011-09-02 23:52:57
|
On Fri, Aug 26, 2011 at 10:04:49PM +0200, Pere Pujal i Carabantes wrote: > And the last one: Is OK to commit all this stuff? :) Pere committed it, and I checked it out last night and it looks great, so far! -bill! |