Extension:EPubExport

What can this extension do?
ePubExport is based on Pdf Export extension. ePubExport adds a new link to the left nav menu named "export ePub". Clicking this link generates an epub file to read offline in electronic book or tablet. In addition, a new special page is added, "ePub Export". This special page enable to create an epub file from group of Wikimedia pages.

The extension uses the epub PHP library. epub library uses the Zip PHP library both libraries are by by Asbjorn Grandt. Both are included in the ePubExport download.

Download
Download of the preferred archive file can be done from here. Currently there are tar.gz, bz2, rar and zip archives.

SVN is also availble. Trunk is in https://epubexport.svn.sourceforge.net/svnroot/epubexport/trunk/ePubExport

Installation
To install this extension, extract the file in the extensions folder, then add the following to LocalSettings.php:

Directory tree should be as follow: extension |      +->ePubExport |                 +-->epub |    |                  |     +-> EPub.php |    +-> EPubChapterSplitter.php |    +-> Zip.php |                 +-> ePubExport.i18n.alias.php +-> ePubExport.i18n.php +-> ePubExport.php +-> ePubExport_body.php

User-defined CSS file
Site administrator may change the default epub CSS to another file. In LocalSettings.php, just bellow the "require_once("$IP/extensions/ePubExport/ePubExport.php");" line, add "$wgePubExportProperties['css_file'] = your_css_file_name".

For example: