5

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?

  • This might be a duplicate of this question ebooks.stackexchange.com/questions/7054/… – idiotprogrammer Mar 19 '17 at 7:13
  • @idiotprogrammer I do not think so. The question you refer to is much more focussed. Its answers should be a subset of the answers for this one, though the answers actually given did not respect the focus. I prefer this question which is more practical to solve problems. – babou Oct 28 '17 at 10:46
2

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
0

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.

  • I'm guessing that those other programs can't upload the final file to the kindle like Calibre can? So with them I'd either email the resulting mobi file to my kindle email address and have to wait for the sync, or use Calibre to upload the file. The formatting will be simple; an img tag for the image of the stretch and p tags, along with an h1 or h2 tag for the page title. – lumpynose Mar 19 '17 at 18:10
0

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:

  • Yes, it is straightforward with Calibre. With my question I was trying to make sure there wasn't anything better I didn't know about. – lumpynose Mar 19 '17 at 18:13
0

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

0

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!

-1

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

  • Apparently this software produces epub files. So is it really an answer to the question asked? – babou Oct 28 '17 at 10:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.