The next step is sending the book to devices.
You can also use Calibre, if you don’t like CLI (terminal) applications, to convert the HTML into mobi, or use Amazon’s send to device tools. It will inform you of any issues or warnings, and generate a basic mobi file. It is a terminal app that you run, with the following syntax: $ kindlegen mybook.html -verbose -o mybook.mobi My personal choice for that is the “kinglegen” app. The next step would be to convert this to. Put the entire Kindle book between the BODY tags in the above HTML template, save with UTF-8 encoding.
#Use calibre to send to kindle download
You can also download this template here: Kindle RTL Template. I was using “rtl” attribute towards the HTML tag instead of BODY tag: The following is the HTML template that needs to be used for the book.
The most important part of the solution was to use the proper HTML template for the book. Basically, to achieve that, we need two different versions of the book on the Paperwhite (.mobi) and the Fire (.azw3), and that would mean that they won’t sync properly. Unfortunately the solution that I came up with does not show the book under “Books” tab in Kindle Fire. I have a Paperwhite, and a Fire, and wanted them both to fully support the generated book in RTL, and also support the same book (not two different versions of it), so that it synchs properly. The problem was that these books would not display/sync properly on my kindles. I created a script that snatches these pages, stitches them together and forms a huge HTML file (one for each book). mobi format, but were available as online books, in many html pages. Many of the books that I wanted to read on my Kindle(s), were in Arabic or Persian, and were also available freely online.