Calibre and Kindle

I love Calibre. When it comes to converting my text from crude html to a fully-functioning, card-carrying member of the eBook community, it does the business. And I have nothing but admiration for my Kindle, and her close cousin, Kindle-for-PC (KPC). But, they make miserable dancing partners.

A whole afternoon and half the evening I’ve spent rebuilding my latest eBook in Calibre for the Kindle. First, I changed the cover. Not a huge change, but I needed to replace the book cover file with a new version. I tried changing just the cover and re-saving the whole shebang onto the disk. No luck. I started from scratch, removing the book from Calibre’s database (“library”) and rebuilding from my html file. That didn’t work either – KPC was still picking up the original cover. I deleted the four Calibre-generated files from my disk and started from scratch in Calibre again. That worked. KPC picked up the new cover design.

Idly paging through the book, I found a typo. Not a big one, just a pronoun that needed to be replaced by a noun; what I had written was ambiguous. I went back to square one, deleted the Calibre-Kindle files from the disk, removed the book from Calibre’s library and recreated the book again.

Into KPC I scurried, with my fingers crossed. Imagine my surprise when that pronoun appeared, bold as brass on my screen. How could this be? I had changed it, scrubbed everything, started from scratch. But still, KPC was somehow picking up the old version of the book, a version which I had deleted from the disk. After my obligatory apoplectic fit, I reasoned that, far from dancing to Calibre’s tune, KPC was merrily displaying its own cached data, trying to be smart, to reduce the time to load.

I rebooted. And KPC picked up the new version of the book from the disk. So I suppose when I changed the cover all those hours ago, all I had to do was clear KPC’s cache by rebooting, and I wouldn’t have had to rebuild the book from scratch.

UPDATE: It’s a couple of days later and today, I changed the source file to include an ISBN for the Amazon Kindle version distinct from the Smashwords version. Just 3 digits. I edited the source file, saved it deleted all the files previously created by Calibre and recreated the .MOBI file using Calibre. At this stage, it’s almost 11 pm and I’ve gone through the process 10 or 15 times without success. I tried rebooting, I tried deleting all my cookies. I’ve tried sacrificing a cockrel to the god Baal. Nothing works.

ANOTHER UPDATE: Thanks to Kovid Goyal, the developer of Calibre, who emailed me directly with the solution, everything is as it should be again. The fault, it seems, was with KFPC, not with Calibre at all. What Kovid advised me to do was to open KFPC and remove the book file from the device. Then go into Calibre and save the book files to disk again (placing them in a folder other than My Kindle Content).
I then double-clicked on that saved .MOBI file and KFPC picked it up and it’s correct.

A thousand apologies, Kovid, for accusing Calibre of having a bug (perish the thought). And thanks for coming to my aid. I owe you a pint. Expect the PayPal equivalent this evening.
I now officially hate Kindle-for-PC, and will go find Kindle Previewer as you suggested.

5 thoughts on “Calibre and Kindle

  1. DW96 says:

    Just a thought, JJ. On the final version, with the altered ISBN, are we talking changes only on your hard drive or changes to the uploaded version? Changes on the Amazon Kindle site take anything up to 48 hours to effect.

    If the hard drive, where is your Kindle picking up the new version? From the Calibre Library or “My Kindle Content”?

    Short of that, I’m snookered because this isn’t a problem I’ve come across.

  2. Akhen1khan2 aka Jack Eason says:

    Boy am I glad that the publishing of my work is done by my publisher. I get confused over the ambiguous way ‘Word’ looks at what it perceives as incorrect word usage, constantly contradicting itself with its farcical underlining in green wavy lines of perfectly correct words.

    Here’s hoping you succeed with ‘Calibre’.

    🙂

  3. JJ Toner (euclid) says:

    David: That’s changes on my hard disk. I haven’t been near Amazon yet (planning to launch 1 Sept).

    Jack: I agree 100% about Word. I hate wiggly green lines, although wiggly red lines can be a help, sometimes, if the language has been set correctly.

    I’m going to try again, today. This time, I plan to save the source html using a new filename. That should fox it!

  4. JJ Toner (euclid) says:

    David; Sorry, I should have said, I’m asking Calibre to save the converted file(s) to My Kindle Content and then double-clicking on the file created there to see if my changes have taken effect. I checked the properties of the new file created and in each case, the time of file creation was exactly right.

  5. JJ Toner (euclid) says:

    No joy. I tried using a new filename for my input html file. Calibre converted it perfectly. I used Calibre’s “View” option and the .MOBI file is perfect. But the file that Calibre is writing to the disk contains the old text. The date/time of creation of the new file is as it should be. Just the contents of the file are unchanged. I reckon it’s a Calibre bug. I’m using the latest version 0.8.15.

    I tried reporting the bug, but got stuck in Calibre’s registration procedure, which also seems to have a bug. I bet if I went back one version it would work fine. But, of course I don’t think that’s possible.

    Couldn’t find a way of creating a new thread in Kindleboards, either. And we’re losing the rugby match against the French.

    Thanks for you help/sympathy, guys!

Leave a Reply

Your email address will not be published. Required fields are marked *