Hi,
About the name first. It's called "ZimReader" which is not homogenous with the other ZIM binaries "zimDump" and "zimWriter"... so it should be IMO "zimWriter". But, in fact, having uppercased character in a binary seems to pretty unusual, so wouldn't be "zimwriter", "zimdump" and "zimreader" better?
About the default skin, is that possible that currently, per default there is no skin anymore? I had before to tweak the skin to remove the german wikipedia UI and this seems not being necessary anymore! If that's true, great!
My feeling is that the zimreader, with the new format is not able anymore to determine correctly the HTTP content-type. The HTTP header for an HTML page looks like following:
(...) Keep-Alive: timeout=15000, max=999 Connection: Keep-Alive Last-Modified: Tue, 12 Jan 2010 21:01:19 GMT Content-Type: 0 Set-Cookie: tntnet.=8649805af3b641b7d9f7dbf3193b288d; Path=/;Version=1 (...)
The Content-type should be different.... isn't it?
Regards Emmanuel
Helle Emmanuel,
the idea about renaming the files is good. I will do that.
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.
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.
Tommi
Am Donnerstag, 14. Januar 2010 16:40:58 schrieb emmanuel@engelhart.org:
Hi,
About the name first. It's called "ZimReader" which is not homogenous with the other ZIM binaries "zimDump" and "zimWriter"... so it should be IMO "zimWriter". But, in fact, having uppercased character in a binary seems to pretty unusual, so wouldn't be "zimwriter", "zimdump" and "zimreader" better?
About the default skin, is that possible that currently, per default there is no skin anymore? I had before to tweak the skin to remove the german wikipedia UI and this seems not being necessary anymore! If that's true, great!
My feeling is that the zimreader, with the new format is not able anymore to determine correctly the HTTP content-type. The HTTP header for an HTML page looks like following:
(...) Keep-Alive: timeout=15000, max=999 Connection: Keep-Alive Last-Modified: Tue, 12 Jan 2010 21:01:19 GMT Content-Type: 0 Set-Cookie: tntnet.=8649805af3b641b7d9f7dbf3193b288d; Path=/;Version=1 (...)
The Content-type should be different.... isn't it?
Regards Emmanuel
dev-l mailing list dev-l@openzim.org https://intern.openzim.org/mailman/listinfo/dev-l