https://wiki.openzim.org/w/api.php?action=feedcontributions&user=DanielH&feedformat=atomopenZIM - User contributions [en]2024-03-28T12:08:08ZUser contributionsMediaWiki 1.36.1https://wiki.openzim.org/w/index.php?title=Build_your_ZIM_file&diff=2780Build your ZIM file2014-03-09T13:32:20Z<p>DanielH: /* zimwriterdb */ Got rid of continued mention to a deprecated script which was removed from this page.</p>
<hr />
<div>[[File:Wikipedia-Book-creator.png|right|thumb|The ''[http://en.wikipedia.org/wiki/Special:Book Wikipedia Book Creator]'' is the easiest way to create custom ZIM files from Wikipedia]]<br />
A few tools allow people to create ZIM files.<br />
<br />
== Users ==<br />
You can create on Wikipedia and all other Wikimedia projects, ZIM files of article selections. [https://en.wikipedia.org/wiki/Special:Book For example on http://en,wikipedia.org]. This is based on the MediaWiki Collection Extension (see below).<br />
<br />
== Developers ==<br />
[[Image:Schema ZIM File Creation.png|thumb|right|An example approach to create a ZIM file]]<br />
<br />
=== MediaWiki Collection Extension ===<br />
The Collection extension for MediaWiki provides the ability to select articles and export them in different formats, such as PDF, ODF and ZIM. The main purpose of Collection extension is to create printed books - instead of export you can also choose to have the selected articles printed on demand as a real book.<br />
<br />
The Collection extension can be easily added to any MediaWiki installation:<br />
* [http://www.mediawiki.org/wiki/Extension:Collection Get the extension]<br />
* [http://www.mediawiki.org/wiki/Extension:Collection/openZIM Details on Collection and openZIM]<br />
<br />
=== zimwriterfs ===<br />
zimwriterfs is a console tool to create ZIM files from a localy stored directory containing a "self-sufficient" HTML content (with pictures, javascript, stylesheets). The result will contain all the files of the local directory compressed and merged in the ZIM file. Nothing more, nothing less. zimwriterfs works, for now only, on POSIX compatible systems. You simply need to compile it and run it. The software does not need a lot of resources, but if you create a pretty big ZIM files, then it could take a wile to complete. [https://sourceforge.net/p/kiwix/other/ci/master/tree/zimwriterfs/ Go to zimwriterfs source code repository].<br />
<br />
=== zimwriterdb ===<br />
[[zimwriterdb]] is part of the openZIM project. This binary uses a pre-filled Postgres Database and create the corresponding ZIM file; the schema for the database is linked on the main zimwriterdb page.<br />
<br />
=== Wiki2html ===<br />
[[Wiki2html]] can be used to prepare static HTML files from a running Mediawiki instance.<br />
<br />
== See also ==<br />
* [[ZIM File Archive]]<br />
* [[Bindings]]<br />
* [[Reader]]</div>DanielHhttps://wiki.openzim.org/w/index.php?title=Talk:Build_your_ZIM_file&diff=2777Talk:Build your ZIM file2014-03-09T04:36:21Z<p>DanielH: /* Difference between zimwriterfs and buildZimFileFromDirectory.pl */ new section</p>
<hr />
<div>Could someone clarify and expand this page? I finally have time to try to build a ZIM file for the Hebrew Wikipedia to see how we can integrate openZIM in our project of bundling the Hebrew Wikipedia in the One Computer Per Child computers distributed by the Israeli Prime Minister's Office.<br />
<br />
I have a dump created with dumpHTML.php, per [Wiki2html|these instructions]. But how do I get this into the custom PostgreSQL database? Some samples or scripts would help considerably.<br />
<br />
Thanks in advance! [[User:Ijon|Ijon]] 13:42, 22 June 2009 (UTC)<br />
<br />
:Hi Ijon! This week we are on an exhibition and just released an alpha version of a Wikipedia DVD. I am pretty sure that as we are together now for some days we will manage it to fill that page.<br />
:I have created a poster to show the process a bit: [[Image:Poster_ZIM_Creation.pdf]]. Thanks for your patience and support. --[[User:Manuel Schneider|Manuel Schneider]] 12:29, 23 June 2009 (UTC)<br />
<br />
:Hi Ijon. The perl script buildZimFileFromDirectory.pl is currently the only way to produce a ZIM file from your Mediawiki dumped HTML files. I can help you to use it, but please tell me what does not work. Regards [[User:Kelson|Kelson]] 09:31, 24 June 2009 (UTC)<br />
<br />
== Including images ==<br />
<br />
If I have all the files locally, it seems relatively easy to include images in addition to the text. But how do I include images if I'm starting from a Wikimedia project dump? It's obviously possible to do and to automate, because it's done [http://www.kiwix.org/wiki/Wikipedia here], but I can't find instructions on how. Is that just automatically handled by the Wikimedia export or something? --[[User:DanielH|DanielH]] ([[User talk:DanielH|talk]]) 07:46, 8 March 2014 (CET)<br />
<br />
: I see that you start to see the difficulties of wanting to base the ZIM creation process on the XML tarballa... [[User:Kelson|Kelson]] ([[User talk:Kelson|talk]]) 11:10, 8 March 2014 (CET)<br />
<br />
== Difference between zimwriterfs and buildZimFileFromDirectory.pl ==<br />
<br />
These two files seem to have exactly the same purpose. I notice that zimwriterfs is newer, but other than this and the fact that it's written in C++ instead of perl, what are the major differences? Should I always use zimwriterfs, or might the perl script be better in some cases? --[[User:DanielH|DanielH]] ([[User talk:DanielH|talk]]) 05:36, 9 March 2014 (CET)</div>DanielHhttps://wiki.openzim.org/w/index.php?title=Talk:Build_your_ZIM_file&diff=2775Talk:Build your ZIM file2014-03-08T06:46:52Z<p>DanielH: /* Including images */ new section</p>
<hr />
<div>Could someone clarify and expand this page? I finally have time to try to build a ZIM file for the Hebrew Wikipedia to see how we can integrate openZIM in our project of bundling the Hebrew Wikipedia in the One Computer Per Child computers distributed by the Israeli Prime Minister's Office.<br />
<br />
I have a dump created with dumpHTML.php, per [Wiki2html|these instructions]. But how do I get this into the custom PostgreSQL database? Some samples or scripts would help considerably.<br />
<br />
Thanks in advance! [[User:Ijon|Ijon]] 13:42, 22 June 2009 (UTC)<br />
<br />
:Hi Ijon! This week we are on an exhibition and just released an alpha version of a Wikipedia DVD. I am pretty sure that as we are together now for some days we will manage it to fill that page.<br />
:I have created a poster to show the process a bit: [[Image:Poster_ZIM_Creation.pdf]]. Thanks for your patience and support. --[[User:Manuel Schneider|Manuel Schneider]] 12:29, 23 June 2009 (UTC)<br />
<br />
:Hi Ijon. The perl script buildZimFileFromDirectory.pl is currently the only way to produce a ZIM file from your Mediawiki dumped HTML files. I can help you to use it, but please tell me what does not work. Regards [[User:Kelson|Kelson]] 09:31, 24 June 2009 (UTC)<br />
<br />
== Including images ==<br />
<br />
If I have all the files locally, it seems relatively easy to include images in addition to the text. But how do I include images if I'm starting from a Wikimedia project dump? It's obviously possible to do and to automate, because it's done [http://www.kiwix.org/wiki/Wikipedia here], but I can't find instructions on how. Is that just automatically handled by the Wikimedia export or something? --[[User:DanielH|DanielH]] ([[User talk:DanielH|talk]]) 07:46, 8 March 2014 (CET)</div>DanielH