Quote:
Originally Posted by dhdurgee
I was able to use ebook-convert from calibre to create a .mobi from this file, so I am surprised that kindlegen has problems with it.
|
Calibre has extremely robust conversion settings that allow users to convert invalid ePubs to invalid Mobi files. These files can be opened with Kindles and Kindle apps, but some links/styles might not work.
You may want to make sure that all books that you want to convert with KindleGen pass ePubCheck and/or FlightCrew, because books that fail validation usually also fail KindleGen. Also note that azw3 and mobi7 files generated by this plugin can't be used for KDP uploads.
If you want to convert multiple epubs you're better off using Calibre.
Quote:
Originally Posted by dhdurgee
On a related topic, is there a way to improve the file name created? [...] My preference in this matter is to elide the double-quotes and translate the embedded spaces to underscores in the file name.
|
If you're familiar with regular expressions, you can change the generated file name by editing line #285 in plugin.py.
Code:
title = re.sub('[/|\?|<|>|\\\\|:|\*|\||"|\^]+', '_', dc_title.group(1))
You could also press F8 in Sigil and modify the title before running the KindleGen plugin. (You don't have to save the ePub after the change; the plugin will always use the current version of the files as they're displayed in Sigil.)