PDA

View Full Version : MyKbd skin generator for linux


phreakonaleash
03-19-2008, 11:20 PM
MyKbd's KeyboardGenerator's sources are /supposed/ to build in Linux.
Technically it did, but I made sure of that.

go is able to build in linux perfectly find but is missing a few dependencies.
I was unable to get png2bmp to build from here (http://cetus.sakura.ne.jp/softlab/b2p-home/). Also the sources for ZipDB.exe weren't included.

So I decided to make it work with what I have.
*Improved upon svg2bmp() by replacing the batik and png2bmp dependant code with imagemagick's convert.
*Since Alex's patched pilrc (found in pilrc-src/) doesn't have a makefile patched pilrc.exe is run using wine.
*I also ran ZipDB.exe via wine since there is, seemingly, no source for it.

The diff is available here (http://higgs.aquariusoft.org/~rrix/MyKBDkeyboardGenerator.diff). It's a nasty hack and will break the app if you try to build it in windows, but if you will only be using the source in linux it will work pretty OK :) Just be sure you have imagemagick and wine installed.

Other matters:
I am having trouble getting the fonts working correctly, the convertor doesn't seem to be able to load the symbol font (though I've loaded symbol.ttf into KDE from my Vista box)
http://higgs.aquariusoft.org/~rrix/mykbdfonts.bmp

It complained a bit before I loaded symbol.ttf and didn't compile the skin, but it will with this. it only, as you can see, doesn't work quite right.

Does anyone have a solution to this?

pruss
03-20-2008, 05:11 PM
You don't need a Makefile for the patched pilrc. Just do:
gcc -o pilrc *.c
ZipDB is optional--you can modify things to work with it, except that the skins won't be compressed. The source code for it is, I think, somewhere in the PalmBible+ repository. Sorry.
The fonts issue is probably due to ImageMagick being unable to find the font.
On Windows, I've been unhappy with ImageMagick's svg rendering.

phreakonaleash
03-20-2008, 10:31 PM
Thanks for talking back, Alexander!

Ok, pilrc is built OK :) (I figured better play it safe with wine than figure out if I am missing dependancies etc with pilrc.)
As for ImageMagick and SVG, I'll try to compile png2bmp a bit more, but it's not looking good (tons of undefined errors) I'll keep trying and come back later.

phreakonaleash
03-20-2008, 10:38 PM
Hi,

Running png2bmp.exe through wine in the original svg2bmp() made the output really clean. I had no idea that ImageMagick's svg rasterization was so borked. Thanks for the help Alexander. Ive got some cool skins incoming :)

phreakonaleash
03-20-2008, 11:25 PM
Okeedoke Alexander, one last thing:

I'm having some issues with color generation. It seems like the compiler is reducing the bitdepth or something strange with my images.

Here is the Portrait.bmp generated by go.exe on my laptop:
http://higgs.aquariusoft.org/~rrix/go.bmp

Here is the bmp generated by MyKbd's "Save BMP of Skin" function:
http://higgs.aquariusoft.org/~rrix/mykbd.bmp

Thanks for the help Alex!