Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-03-2025, 09:14 PM   #1051
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,093
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by tomsem View Post
These evidently were Fixed Layout EPUBs that the publisher submitted to Kindle store, and they get converted to fixed layout KFX when downloaded to Kindles or the Kindle apps. These are sorta 'coffee table books- whose print editions would be larger than letter size pages, with 2 page spreads.
I will take a look at the book you mentioned when I have time, but I doubt that I will be able to do much to improve how it converts. My goal is to make the EPUB produced by this plugin reflect whatever is in the KFX file as much as possible. If that KFX file has mangled formatting then it is beyond my scope of work to fix it, except in rare cases where there is an obvious and simple way to do it.

Quote:
Originally Posted by tomsem View Post
However converting for use on Kindle platform is proving onerous. Send To Kindle does not have good support for fixed layout ePub, in this case it totally mangled it.

Calibre got to 47% and seems to be stuck there. I finally killed the job after 3 hours.

Kindle Previewer puked on it, without even producing error log.
Sounds like a case of garbage in/garbage out. Amazon only supports a very specific subset of fixed layout as (poorly) documented in their Kindle Publishing Guidelines.
jhowell is offline   Reply With Quote
Old 08-03-2025, 10:12 PM   #1052
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,950
Karma: 27060153
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Quote:
Originally Posted by jhowell View Post
I will take a look at the book you mentioned when I have time, but I doubt that I will be able to do much to improve how it converts. My goal is to make the EPUB produced by this plugin reflect whatever is in the KFX file as much as possible. If that KFX file has mangled formatting then it is beyond my scope of work to fix it, except in rare cases where there is an obvious and simple way to do it.



Sounds like a case of garbage in/garbage out. Amazon only supports a very specific subset of fixed layout as (poorly) documented in their Kindle Publishing Guidelines.
At least From KFX generates error free (according to calibre) ePub, and it renders in Apple Books and Thorium (PocketBook still won't but even image only fixed layout is not well supported).

That said, calibre doesn't convert it to a functioning AZW3 (and never said that it would, but at least it does not get stuck generating something) and Kindle Previewer still thinks there's something wrong with it (without giving any details).

As you suggest, it's possible the conversion to KFX does this mangling -- after all KF8 fixed layout never supported text search or hyperlinks or text selection, so why carry forward all the position data and make sure hyperlinks work?

Even in ePub universe fixed layout is like an unwanted stepchild.

Years after it was specified, they are only now getting around to addressing ePub Fixed Layout Accessibility:

https://www.w3.org/news/2024/group-n...accessibility/

https://epubsecrets.com/the-accessiv...ble-comics.php

There seems no hope that ePub platforms much less publishers will do anything to implement these practices. Much less Amazon doing so.

Last edited by tomsem; 08-03-2025 at 10:18 PM.
tomsem is offline   Reply With Quote
Advert
Old 08-03-2025, 11:55 PM   #1053
Jaws
JCL Punch-Card Collector
Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.
 
Posts: 79
Karma: 34468
Join Date: Jun 2014
Location: Antarctica
Device: Aggressively Device Independent
Quote:
Originally Posted by HarryT View Post
It’s a British book. I’m in the UK. I bought the book from Amazon UK. I don’t understand why anything involving US measurements would be involved? I collect the Penguin Classics series and over the years I’ve bought well over a hundred books in the range. I’ve never had any issue with one prior to this.
However, Amazon's internal processes and programs are all "US-centric," so even though you bought it in the UK the bits were looked at from a US perspective at some point. I've had repeated problems with books with large tables — UK editions purchased through 'zon.uk — that traced back to "I foolishly tried to work from a Kindle edition instead of getting an epub in the first place."
Jaws is offline   Reply With Quote
Old Yesterday, 12:20 PM   #1054
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,093
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by tomsem View Post
Having a couple of issues with this 'flavor' of KFX, e.g.:
https://www.amazon.com/gp/product/B0DJSQKJG5/
Since I am currently working on improving the handling of page images when converting Print Replica books I took a look at the book you mentioned.

Quote:
Originally Posted by tomsem View Post
These evidently were Fixed Layout EPUBs that the publisher submitted to Kindle store, and they get converted to fixed layout KFX when downloaded to Kindles or the Kindle apps. These are sorta 'coffee table books- whose print editions would be larger than letter size pages, with 2 page spreads.

Unlike comic book format, they contain 'positioned' text in the XHTML files. On ePub platforms, you're usually able to search, and fonts are embedded so that the text remains crisp when zooming in.

On Kindle platform (at least books from this publisher) the embedded fonts are gone, hyperlinks and text search are not supported (even though Kindles will happily spend time indexing them). But they are defined in the downloaded file.

In the past, I would download AZW3 and convert to fixed layout ePub with KindleUnpack. (I can still do this using my Kindle Touch, even though it's impossible to actually read the book on it!). These do contain the positioned text and hyperlinks of the original ePub.
Examining the book in KF8 format indicates that it was published to Kindle as a comic and sourced with a fixed-layout EPUB. Each page of the book is composed of a 1607x1920 JPEG background image placed on a fixed-layout 1611x1924 page with an overlay of invisible text.

In that book the background images have everything the reader sees so the invisible text was possibly intended for annotation, dictionary lookup, and to provide links to other pages in the table of contents.

Quote:
Originally Posted by tomsem View Post
But with KFX, From KFX conversion to ePub (or PDF) currently mishandles the text and hyperlinks.

In the ePub, the text is put inside a <div> tag's alt= property, the positioning is lost, and can no longer be target of text search. Hyperlinks are not instantiated.
The conversion by Amazon of that book to KFX format resulted in significant differences.

The background image for each page becomes a recompressed 1608x1920 JPEG image encapsulated within a single page PDF file.

The invisible text from each page is only provided as alt-text to the background image with no links or formatting retained.

Quote:
Originally Posted by tomsem View Post
In PDF, I can see text objects with Acrobat object inspection but they are not placed over the word images they correspond to, and there are PDF links but they do not work (see attached screenshot).
The PDF pages corresponding to the book's table of contents contain unused, non-functional link annotations with destinations URIs such as: file:///opt/amazon/tmp/c8a7ae45-421b-456b-86d1-761a8cfa14cb-3e976d4c-db0f-47f5-a9d4-dc167f1fd903/f2d4b40f-762f-41f0-995d-a3f20de639da/extractedEpub/OEBPS/page_000010.xhtml

Trying to turn them into something useful would be hit-or-miss so I am not going to attempt it.

Quote:
Originally Posted by tomsem View Post
So the information is in there, but is lost in translation. It would be nice if it was not, but I would rank it a low priority on your feature backlog, given this is kind of an edge case.
The next release of the KFX Input plugin will obtain slightly higher quality background images from this book and those like it when converting to EPUB or CBZ, but it will still be less than the image quality of the same book in KF8 format with an AZW6 HD image container.

That is the best I can do. The conversion to KFX by Amazon does not leave enough information to properly reconstruct the overlay text and links from the original EPUB that was provided by the publisher.
jhowell is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KFX conversion, transfer back to library issue. shoelesshunter Conversion 9 04-13-2025 11:15 AM
[Conversion Input] Microsoft Doc Input Plugin igi Plugins 77 03-08-2025 04:04 AM
[Conversion Input] LaTeX Formulas Input Conversion Plugin sevyls Plugins 0 03-23-2015 05:52 AM
[Input Plugin] DOCX Input SauliusP. Plugins 42 06-05-2013 04:01 AM
Looking For MHT Input Conversion Plugin FlooseMan Dave Plugins 4 03-30-2010 05:52 PM


All times are GMT -4. The time now is 11:03 AM.


MobileRead.com is a privately owned, operated and funded community.