TransWikia.com

How to build an epub starting from a bunch of HTML files?

Ebooks Asked on July 9, 2021

I have a number of short HTML files (actually they are XHTML) with small problems and answers, which I post on my blog every Sunday, and I’d like to merge some of them in an ebook.
I already did it once, just by stripping the headers and footers and merging them together; then I create the epub skeleton with Calibre and tweaked it with Sigil. But since there are a lot of internal links, it is a time-consuming process.

Is there a simpler way?

5 Answers

I assume you don't write the HTML directly, but use something like MarkDown or reST. But even if you do, you should look at Pandoc.

The program can read HTML and generate EPUB 2 or EPUB 3 (among others).

Correct answer by Anthon on July 9, 2021

Since you mention you post to your blog each Sunday, if you have or can provide an RSS feed you may find the following online free service useful [removed (see below)]. I've been using it to create ebooks of one of my project blogs. The resulting ebook (I create .mobi books for Kindles) have been readable.

I expect there will be limitations so YMMV for your blog posts.

Edit: The link above pointed to http://newstoebook.com/, which is now a completely different site and no longer provides any ebook conversion services. It used to look like this in 2013: https://web.archive.org/web/20130227110429/http://newstoebook.com/

Answered by JulianHarty on July 9, 2021

You can use Papyrus for creating ebooks from blog posts or any webpage.

If you already have a blog, you can use this link to convert your blog to book)

Your book will be generated in EPUB, Mobi(Kindle) and PDF formats.

Disclosure: I am the creator of this site.

Answered by gt5050 on July 9, 2021

Calibre can convert XHTML 1.1 + CSS 2.1 to epub. It's only guaranteed to output valid epub if the input is valid. It's free and open-source.

Answered by Ben Crowell on July 9, 2021

If your files really are genuinely valid XHTML, you could even write an XSLT2 script to do the job yourself. That way you can cater for any idiosyncracies in your XHTML which other systems may not be designed to handle.

Answered by Peter Flynn on July 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP