Leonardo Maccari

smartface
Sono ingegnere informatico, dottore di ricerca all'università di Firenze nel dipartimento di Elettronica e Telecomunicazioni. Per lavoro quindi mi occupo di tecnologie, in particolare di sicurezza delle reti, per interesse mi piace sconfinare negli aspetti sociali legati al copyright ed al software libero. Qui trovate qualche informazione in più, qui alcune presentazioni che ho fatto ultimamente.

Scarica Copydoc!

Il copydoc è un documentario radiofonico sul copyright che ho realizzato con il lilik, disponibile in creative commons BY-SA. copydoc logo Oppure guarda il video! copydoc logo

Feed per questo blog:

Qtopia touch keyboard

This is a patch I made for the Qtopia keyboard, to make it usable without a stylus. I’ve modified and patched the src/plugins/inputmethods/keyboard/keyboardframe.cpp file from Qtopia sources, if you just want to use the keyboard as is, do the following:

  • copy the libqkeyboard.so into your phone, with ssh, I suppose you put it in /home/root/libqkeyboard.so
  • ssh to your freerunner (never tried on neo, but I feel it should work)
  • backup your original keyboard and put there the new one:

mv /opt/Nokia/Qtopia/plugins/inputmethods/libqkeyboard.so /home/root/libqkeyboard.so.bak

mv /home/root/libqkeyboard.so /opt/Nokia/Qtopia/plugins/inputmethods/libqkeyboard.so

  • restart qpe:

/opt/Nokia/Qtopia/qpe.sh restart

Now this will remove the original stylus based keyboard and replace with the new one, if it doesn’t work for you, just replace the original you have backupped. The “switch” buttons changes from letters to symbols and back, the shift button right now it is quite useless in the symbol keyboards, alternatives should be remapped to something more useful.

If you feel like tweaking the keyboard, get the source code. To recompile it you have to have a Qtopia tree you have built from scratch, as explained here. Then replace the source file src/plugins/inputmethods/keyboard/keyboardframe.cpp with the new one (again, make a backup before) and you can change stuff and make. The code is quite understandable, something you want to know is:

  • PICK_PROPORTION is the ratio between screen height and each letterblock (15 by default), if you want to increase the heigth of the letterblocks, decrease it
  • KEYBOARD_PICS and KEYBOARD_OPTI_PICS are the number of blocks per raw in the standard keyboard and the other switched keyboard
  • keyboard_opti and keyboard_standard are vectors containing the keymap, if you want to change the layout change those chars.

I still have to understand how to manage the hints bar, that takes quite a few space.

Screenshots (i wasted more time to make the screenshot with qtopia than to make the change the layout :-) :

[Digg] [Reddit] [del.icio.us] [Technorati] [Google]