View Single Post
Old 02-28-2019, 08:57 PM   #177
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 rumplestiltskin View Post
Not sure why this happened but using Calibre in Windows 10 to convert a KFX file to ePub resulted in some really ugly body copy, almost like a font is missing and the substitution is just plain wrong. I can't tell you what font it was, only that it was like some bizarre scaling of an old bit-mapped font.

On my Mac, the conversion worked perfectly.
That is odd. Perhaps you have different default conversion settings on the two calibre installations.

If you let me know the ASIN of the book I can check out the free sample of it on Amazon see if there is anything unusual about that particular book.

Quote:
Originally Posted by rumplestiltskin View Post
I examined the file in Sigil's (and Calibre's) code-view; there are 38 "classes" in the "stylesheet.css" file. I seem to recall reading that there should be no more than 10.

What's really bizarre is that [I]every paragraph of body copy[I] references "class11" which seems pretty excessive. Shouldn't there be only one reference that encompasses all the body copy in the chapter (assuming there are no there are no other styles needed within the body copy - like a callout or the like)?
The plugin tries to convert the KFX coding to the equivalent HTML, but the results are often not pretty. KFX format is heavily processed and its content differs significantly from what the book publisher provided to Amazon.

The class names used are arbitrary and 38 classes is reasonable. I have never heard of a limit of 10 classes before. Most books use many more than that.

Quote:
Originally Posted by rumplestiltskin View Post
Has anyone else seen such strangeness and, if so, should I just leave it alone or maybe someone has a recipe for correcting such an excessive amount of redundant code?
It's up to you. If the internal coding matters to you then I suggest using one of the documented methods of avoiding KFX format. Books delivered by Amazon in KF8 (azw3) format retain the original HTML coding provided by the publisher.
jhowell is offline   Reply With Quote