Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production rule: docbook -> epub #6

Open
abelardopardo opened this issue Jan 4, 2012 · 1 comment
Open

Production rule: docbook -> epub #6

abelardopardo opened this issue Jan 4, 2012 · 1 comment

Comments

@abelardopardo
Copy link
Owner

A production rule would be desirable that given a single docbook file produces an epub package. The styles are present in docbook-xsl (although without profiling). The difficulty comes from the fact that two directories are created, the images need to be copied in the proper location as an additional step, a few additional passes are required and the zip created.

The rule would receive a single file name and perform all these steps. The trickiest one could be the inclusion of the right images or auxiliary files, but parsing the opf file could help detect anomalies.

This issue is likely to be open for quite some time.

@abelardopardo
Copy link
Owner Author

Explored a bit more the issue. There should be a bit of processing to create the proper XML files surrounding the generated html. The step xml -> html is mature with the given stylesheets. Images need to be processed though to be scaled to the ebook resolution (600px wide). From python, the PIL package (http://effbot.org/zone/python-fileinfo.htm) gives the functionality to know the size of a picture and eventually scale it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant