Difference between revisions of "Build your ZIM file"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
[[Image:Schema ZIM Creation.png|500px|right]] | |||
There is currently only one binary to build a ZIM file, the [[ZIMwriter]]. This binary uses a pre-filled Postgres Database with a [http://svn.openzim.org/viewvc.cgi/trunk/zimwriter/db/zim-postgresql.sql?view=markup predined scheme]. For example : | There is currently only one binary to build a ZIM file, the [[ZIMwriter]]. This binary uses a pre-filled Postgres Database with a [http://svn.openzim.org/viewvc.cgi/trunk/zimwriter/db/zim-postgresql.sql?view=markup predined scheme]. For example : | ||
Revision as of 13:06, 25 June 2009
There is currently only one binary to build a ZIM file, the ZIMwriter. This binary uses a pre-filled Postgres Database with a predined scheme. For example :
zimwriter -s 1024 --db "postgresql:dbname=mydb" my_zim_file
We want to provide in the future a binary able to work with other input (for example: Wikimedia Foundation XML dumps, or HTML directory).
Two tools are currently able to create/fill this database.
buildZimFileFromDirectory.pl
This script is part of the Kiwix tools and allows to build a ZIM file from a HTML directory containing all necessary ressources.
You need:
- Checkout the dumping tools : svn co http://kiwix.svn.sourceforge.net/viewvc/kiwix/dumping_tools/
- Install all necessary PERL modules
- run the script like following: ./builZimFileFromDirectory.pl --htmlPath=./html [--indexerPath=./zimindexer] [--zimFilePath=articles.zim]
Wiki2html
...