![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 2691856
Join Date: Feb 2022
Device: PPW5, Quaderno A4, Supernote A6X, Leaf 2
|
KFX format detail for Comic/Manga
Are there any information out there on KFX/KPF format other than what is on MobileRead wiki?
I tried to read KFX Output plugin source code but it get confusing really quickly when I get to the ION thingy. What I wanted to do is to automate conversion of AZW3 manga to KFX manga. I figured with fixed layout book the KPF/KFX file is not going to be too complicated to be created by outside tools. Right now I have automate pretty much everything except having to open Kindle Create to import images and set table of content manually. Also I am trying to figure out if it is possible to modify KPF/KFX to tag some pages as double-page spread. There doesn't seem to be this option in Kindle Create, and I don't have access to KFX file with this feature enabled. If anyone could point me in the right direction I would be grateful. |
![]() |
![]() |
![]() |
#2 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,067
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
There as bits and pieces of information scattered throughout various threads here on MobileRead, including this one: KFX Format Amazon has documented Ion which is the underlying data storage format for KFX. See https://amzn.github.io/ion-docs/ Quote:
Quote:
Basically if you set two pages as being "facing pages" they will be shown together when viewed in landscape mode. If you need them to always be shown together you have to combine the images into a single page before importing into Kindle Create. Trying to modify the KPF to reflect that after the fact would be difficult to do correctly. |
|||
![]() |
![]() |
![]() |
#3 | ||
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 2691856
Join Date: Feb 2022
Device: PPW5, Quaderno A4, Supernote A6X, Leaf 2
|
Quote:
Quote:
In manga, there are "double-spread" as in the it's a single, big image splitted in left and right page. In properly formatted KFX book (directly from Amazon), when view in portrait mode, the first page is shown with small preview of double-spread. Going to next page will go the second page of the spread, but tapping the double-spread preview will display both page in landscape mode. It's a very nice feature, but as far as I know there's no corresponding setting in Kindle Create (actually Kindle Create doesn't even support setting language to Japanese yet). |
||
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,067
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Turning on the "Preview Double Page Spread" option in the Aa menu enables extra handling by the Kindle. If two pages are set as facing and the content on right side of the left page closely matches the left side of the right page then a thumbnail appears at the bottom to show them both together. This is logic internal to the Kindle. There is no extra metadata involved other than the pages being set as facing. |
|
![]() |
![]() |
![]() |
#5 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 2691856
Join Date: Feb 2022
Device: PPW5, Quaderno A4, Supernote A6X, Leaf 2
|
Quote:
And apparently it's not even if the page is closely match. It seems if there's enough non-white pixel on either of the page edge, it will be shown as double spread. |
|
![]() |
![]() |
![]() |
#6 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 2691856
Join Date: Feb 2022
Device: PPW5, Quaderno A4, Supernote A6X, Leaf 2
|
Just want to note my progress in case someone stumbled upon this thread from google.
Using kfxlib from jhowell (can be found in KFX Output Plugin code), the YJ_Book class can be created easily with kpf input file. After decode_book() the ION can be accessed via book.fragments. To get the sense of what fragment is what the code in yj_*.py help a lot. In the end I gave up. I first tried to just add new TOC item to the KPF book, but there seems to be multiple places where this need to be added. Futhermore, after a few hour playing with the structure, I still cannot figure which ION hold the "spine" of the book. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Some problems with manga/comic | agugu | KOReader | 2 | 11-25-2021 07:59 AM |
Odyssey Best way to read a comic/manga? | Canapin | Bookeen | 10 | 01-02-2013 05:39 AM |
Comic/Manga on eInk | micro | Netronix | 4 | 06-24-2007 09:25 AM |
Manga comic surfing on the go | Alexander Turcic | Lounge | 2 | 08-22-2005 07:31 PM |