<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 1/07/13 10:24 PM, Eric Forgeot wrote:
<blockquote
cite="mid:CAK3Czrzk6wU-tcUJA_zCMbWf9KBeOrDC+DfWumJagfT8X-0BeA@mail.gmail.com"
type="cite"><br>
<div class="gmail_quote">2013/6/30 John Rankin <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:john.rankin@affinity.co.nz" target="_blank">john.rankin@affinity.co.nz</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
there is also calibre's command line interface and pandoc <a
moz-do-not-send="true"
href="http://johnmacfarlane.net/pandoc/" target="_blank">http://johnmacfarlane.net/pandoc/</a>.
I did some brief experiments using calibre, using the html
output from PublishPDF on a big html file generated from a
pmwiki trail page.<br>
</blockquote>
<div><br>
maybe it's a bit off-topic in relation to responsive
webdesign, </div>
</div>
</blockquote>
Quite right; topic changed.
<blockquote
cite="mid:CAK3Czrzk6wU-tcUJA_zCMbWf9KBeOrDC+DfWumJagfT8X-0BeA@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<div>but I worked for some time on tools to export a pmwiki
website to pdf and to epub (I probably posted the links some
time ago). <br>
</div>
</div>
</blockquote>
Interesting!<br>
<blockquote
cite="mid:CAK3Czrzk6wU-tcUJA_zCMbWf9KBeOrDC+DfWumJagfT8X-0BeA@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<div>
<br>
There is a catch, though, because it's not using the default
pmwiki syntax, but it's probably possible to either export the
default syntax to txt2tags, or to adapt the tools to the legit
pmwiki syntax.<br>
</div>
</div>
</blockquote>
Since Calibre works off xhtml, it should be practical to start from
standard pmwiki syntax, with the markup rules modified if needed to
produce xhtml suitable for Calibre to ingest.<br>
<blockquote
cite="mid:CAK3Czrzk6wU-tcUJA_zCMbWf9KBeOrDC+DfWumJagfT8X-0BeA@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<div><br>
It must be run from the command line on the pmwiki
installation (but you can use a mirror, you do backup your
pmwiki data, don't you?), and requires LaTeX, python, some
perl and bash regex and Calibre.<br>
<br>
So for example for this RPG background (in French):<br>
<a moz-do-not-send="true"
href="http://anamnese.online.fr/granderegion/">http://anamnese.online.fr/granderegion/</a><br>
<br>
We can get:<br>
- <a moz-do-not-send="true"
href="http://anamnese.online.fr/granderegion/uploads/granderegion.pdf">http://anamnese.online.fr/granderegion/uploads/granderegion.pdf</a>
<br>
- <a moz-do-not-send="true"
href="http://anamnese.online.fr/granderegion/uploads/granderegion.epub">http://anamnese.online.fr/granderegion/uploads/granderegion.epub</a><br>
<br>
The project:<br>
<a moz-do-not-send="true"
href="https://code.google.com/p/pmwiki-efo/">https://code.google.com/p/pmwiki-efo/</a><br>
<br>
</div>
</div>
</blockquote>
Ideally, I think one wants a standard pmwiki recipe, preferably
without any third party software like Calibre. However, to get there
it may be sensible to start with Calibre as a black box epub
creator, get that working within pmwiki, then figure out what it's
doing and re-cast it into php. Presumably we can reuse the epub css
file included in the above link.<br>
<br>
As an initial working assumption, it may be reasonable to define the
use case as: "use a trail page or pagelist as input to a pmwiki
action which generates an epub, stores it in the upload directory,
and returns a link to it."<br>
<br>
Comments?<br>
<pre class="moz-signature" cols="72">--
John Rankin
Affinity Limited
</pre>
</body>
</html>