View Single Post
Old 07-31-2025, 02:05 PM   #1044
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,118
Karma: 92500001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by HarryT View Post
I’ve bought the book “The Nichomachean Ethics” by Aristotle (Penguin Classics). The book displays correctly in the Kindle app on my iPad. I imported the book successfully into Calibre using the KFX Import plugin. Attempting to convert to ePub fails with numerous lines similar to:

calibre, version 8.7.0
ERROR: KFX conversion failed: <p><b>Cannot convert The Nicomachean Ethics (Penguin Classics)</b><br/><br/>Exception('box-align right with float right in /cKS.xhtml\nbox-align right with float right in /cKS.xhtml...
Since that book is available in the US I was able to examine it to see what is going wrong with the conversion from KFX.

The problem is in how the numbers placed to the right of the text throughout the book are handled. The publisher used unusual HTML formatting to achieve this. It is rendered properly in KF8/AZW3 format. However Amazon's conversion of the book to KFX alters the formatting, causing the numbers to become embedded within the text instead of being kept separate.

The next release of this plugin will no longer produce an error when that unexpected formatting is encountered. Unfortunately conversion will still result in incorrect placement of the numbers, matching how the book renders in KFX.
jhowell is online now   Reply With Quote