TransWikia.com

How can I create an ebook from existing HTML files?

Ebooks Asked by lumpynose on December 11, 2020

I will be writing software that allows me to select stretching exercises, put them in order, and then create an ebook, one per page, and then use it on my kindle. I was hoping that my software could produce the final ebook, e.g., mobi, but that seems unlikely (I can’t find the spec for the file format).

So my next idea is to produce a set of HTML files, a table of contents file, and manually use Calibre to convert it to mobi/azw and upload it to my kindle.

I did the HTML part once years ago by creating the HTML files by hand so it should work. But I was wondering if there is a better way?

7 Answers

There are many ways to skin a cat. Calibre is one such way, but not the only way.

is there any software available to directly write in mobi format?

Some things to thing about:

  1. Would it not be easier to produce an epub file and convert it to mobi using Kindle Previewer?

  2. Sigil is other software for creating epub -- which might let you export to mobi or export to mobi and then use Kindle Previewer to export to mobi. You can import html files or create html files in sigil itself.

  3. If you are using a lot of images, it might be easier to use Adobe Indesign and export to epub.

Answered by idiotprogrammer on December 11, 2020

If you are already accustomed to Calibre, you could give a try to its full fledged ebook editor, that handles both epub and azw formats.
Having the source HTML files, it should be an easy task to import them in the editor and create the ebook, complete with a proper table of contents.

enter image description here

Some other related questions:

Answered by Sekhemty on December 11, 2020

The Scriba software is an option, I think. http://scriba.software.informer.com/3.5/

Answered by migusanc on December 11, 2020

There is a new Firefox extension that does exactly that: create custom ebooks from favorite blogs and websites.

https://addons.mozilla.org/en-US/firefox/addon/epub-read-the-web-offline/

From the Firefox's extensions web page:

EpubPress bundles webpages into an offline book that you can read on any of your devices.

Benefits: -Downloads webpages for offline reading. -Removes ads and banners from webpages for a cleaner reading experience. -Compatible with all your mobile devices (Kindles, Nooks, iPhone, iPad, Android, etc.). -Email delivery, allowing you to push content directly to your device.

All the amazing content of the internet, available on devices that were made for reading!

How to use: 1.Open all your articles in separate tabs. 2.Order them the way you want them to appear in the book. 3.Click 'EpubPress' in your menu bar. 4.Select your articles. 5.Download and enjoy!

Answered by LobaLuna on December 11, 2020

You could also use Pandoc in conjunction with the kindlegen command-line tool.

Converting your HTML files to Markdown files is not necessary but if done will allow (easier) conversion to other formats should the need arise later on.

The table of contents can be automatically generated using Pandoc. Pandoc can export to the epub format which in turn can be converted to mobi using the kindlegen tool. It's possible to write a bash script to automate the process.

Sample command using Pandoc to export to epub:

pandoc -o myBook.epub myBook.md --toc 
--epub-cover-image=cover.jpg 
--epub-stylesheet=myStylesheet.css 
--number-sections

Answered by Khalid Hussain on December 11, 2020

Kotobee Author is another Ebook publishing software that you can look into. https://www.kotobee.com/en/products/author

Answered by Dhanesh R on December 11, 2020

I would recommend bookit which can be used to convert a online web page with all linked pages into an full epub, it is nice

Answered by user15827 on December 11, 2020

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