<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I have been experimenting with a recipe to produce ebooks from
pmwiki. In essence:<br>
<br>
- add (:epub:) to a trail page and save<br>
<br>
- press the resulting EPUB button and wait a few seconds<br>
<br>
- the recipe assembles the trail pages into an ebook<br>
<br>
- the page refreshes with a link beside the button to an EPUB in the
group's uploads directory<br>
<br>
- click the link and if the browser supports EPUB (eg via a FireFox
add-on), the ebook opens in a new tab<br>
<br>
- pressing the EPUB button again over-writes the ebook with the
latest pmwiki content<br>
<br>
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:<br>
<br>
- time and patience (it's experimental and not as plug-and-play as
one would like)<br>
<br>
- <a href="http://manual.calibre-ebook.com/cli/ebook-convert.html">calibre</a>
(it uses the ebook-convert command line capability)<br>
<br>
- if the book includes maths, LaTeX with the svg converter (people
recommend svg for equations in EPUB)<br>
<br>
- pmwiki 2.2.56 or above and php 5.3 or above<br>
<br>
- a skin tweak to show the EPUB icon next to the link (optional)<br>
<br>
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 <a href="https://code.google.com/p/sigil/">Sigil</a>.<br>
<br>
JR<br>
<pre class="moz-signature" cols="72">--
John Rankin
</pre>
</body>
</html>