[pmwiki-users] pmwiki to epub ebooks

John Rankin john.rankin at affinity.co.nz
Thu Mar 6 17:03:19 CST 2014

I have been experimenting with a recipe to produce ebooks from pmwiki. 
In essence:

- add (:epub:) to a trail page and save

- press the resulting EPUB button and wait a few seconds

- the recipe assembles the trail pages into an ebook

- the page refreshes with a link beside the button to an EPUB in the 
group's uploads directory

- click the link and if the browser supports EPUB (eg via a FireFox 
add-on), the ebook opens in a new tab

- pressing the EPUB button again over-writes the ebook with the latest 
pmwiki content

Is this of interest to others and if so, would anyone like to help test 
it? In particular, the CSS needs testing and refining with a range of 
inputs. Testers would need:

- time and patience (it's experimental and not as plug-and-play as one 
would like)

- calibre <http://manual.calibre-ebook.com/cli/ebook-convert.html> (it 
uses the ebook-convert command line capability)

- if the book includes maths, LaTeX with the svg converter (people 
recommend svg for equations in EPUB)

- pmwiki 2.2.56 or above and php 5.3 or above

- a skin tweak to show the EPUB icon next to the link (optional)

In theory, it will also be possible to produce an ebook from a 
(:pagelist:). The resulting EPUB can be opened, debugged, and edited in 
tools such as Sigil <https://code.google.com/p/sigil/>.


John Rankin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20140307/0e315cb0/attachment.html>

More information about the pmwiki-users mailing list