Le jeu 14/01/10 21:18, "Tommi Mäkitalo" tommi@tntnet.org a écrit:
I have to think about the skin. The zimreader needs a user interface and this is realized as html files. This is what is called "skin". I currently don't exactly know, how to change that. I need some dynamic html in the application.
Ok, I do not really know in details your opinion about the whole topic... but my feeling is that having the possibility to choose a skin on the command line, would be an improvement.
The content-type is perfectly ok in zimreader. Your zim file is wrong. And I know also why. The mimetype column in article is now a text instead of a integer. You have to put the actual mime type into that column. Remeber, that we do not use a fixed enum for mime types any more but a dynamically built list inside the zim file.
This is also the explanation, why your images are slower. They are indeed clustered and compressed, since the mime type do not match the hard coded mime type list found in zimwriter/src/zimcreator.cpp (image/jpeg, image/png, image/tiff, image/gif, application/zip). It is normally not a good idea to have it hard coded but I currently have no better idea.
Thx, it works now and is faster.
About the list, I think a "clean" solution would be to have an additional table "mimetypes" with two fields "name (varchar)" and "compressed (bool)". A default strategy (all mimetypes compressed, all not compressed, or a default configuration (like currently) would garanty that the zimwriter can work without entries in this table.
Regards Emmanuel