SquareBracketAssociates / EnterprisePharo

A new book describing Pharo librairies to make business.
http://books.pharo.org/enterprise-pharo/
Other
71 stars 24 forks source link

Generate an ePub #101

Open DamienCassou opened 8 years ago

DamienCassou commented 8 years ago

We could try going through Asciidoc or HTML+pandoc

DamienCassou commented 8 years ago

/cc @ThibaultAr @YannDub could you please have a look at that?

ThibaultAr commented 8 years ago

we can't go through pandoc+Latex, pandoc only supports basic and simple LaTeX files through asciidoc we have to install "a2x" "xmllint" and "xsltproc". a2x launch the 2 others and they crash on some elements. I will have a look at this.

for HTML+pandoc: it would be great but the EnterprisePharo is only in latex, so we first have to convert the tex in HTML. Is it a good thing ?

cdlm commented 8 years ago

for HTML+pandoc: it would be great but the EnterprisePharo is only in latex, so we first have to convert the tex in HTML

If you're talking about the main EnterprisePharo.tex file, it's not a problem. You should see this file as a TeX-specific wrapper. Some duplication will be created by converting to HTML but that could be mitigated by extracting parts as Pillar files (e.g. the CC license text, the ISBN and cover credits, the preface…)

ThibaultAr commented 8 years ago

Thanks for information Damien P. The render of chapters is not really good but we can generate ePub with HTML+pandoc

DamienCassou commented 8 years ago

Thibault Arloing notifications@github.com writes:

Thanks for information Damien P. The render of chapters is not really good but we can generate ePub with HTML+pandoc

could you please tell us how much time you imagine it would take for you to implement ePub as a Pillar exporter? Now that you have the asciidoc expertise and because we already have the HTML exporter, I guess it should not take too long.

Damien Cassou http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill

ThibaultAr commented 8 years ago

I don't know if it is really possible because a .epub is an archive with many files. I compiled the Voyage chapter and I have a hierachy (see attachment) hierarchy_epub

DamienCassou commented 8 years ago

@ThibaultAr I don't see why it would be impossible :-). Pillar could help generate the xhtml file and a dedicated program could generate the rest and archive it.

Ducasse commented 8 years ago

Yes! It would be really great to have a Pillar Pharo only epub generator. :)