Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-18-2023, 01:50 PM   #1
JBReadin
Junior Member
JBReadin began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2023
Device: Kindle Paperwhite Signature Edition (11th Gen)
Losing details in content.opf when parsing for conversion

Hello!

First post here so I hope I describe this issue well for everyone's clarity

I am having an issue when converting a manga from .KPF to .KFX, though I have since noticed this issue when converting from and to any combination of types. The files convert without throwing any errors, but I lose a lot of the HTML tags and attributes in the parsing of the .OPF that are necessary to make the book function like a manga, for example:
  • <meta name="fixed-layout" content="true"/>
  • <meta name="original-resolution" content="..."/>
  • <itemref ... properties="page-spread-left">
  • etc.
all of which are defined as necessary by KDP here: Creating Fixed-Layout Books with Image Pop-Ups or Virtual Panels

I have attatched the debug folder from when I ran the converstion so that you can see the content.opf file losing these tags throughout the conversion

What I noticed is rather strange, that the initial content.opf file in the "input" folder has the correct tags and attributes, but after parsing, the content.opf file in the "parsed" folder doesn't have the correct tags or attributes anymore. For this reason I believe that the extension that reads .KPF is functioning correctly, and that it is some other component (please excuse that I am not familiar with the internal process of Calibre) which is responsible for parsing the input which is not catching and continuing the necessary tags and attributes

I really hope that this had made sense! And if there are any further questions I am more than happy to elaborate!
Attached Files
File Type: zip debug.zip (1.79 MB, 109 views)
JBReadin is offline   Reply With Quote
Old 04-18-2023, 03:06 PM   #2
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,069
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
The calibre conversion feature is designed for reflowable books. It does not support fixed layout formats such as Kindle comics.

My KFX Input plugin has a command line interface (CLI) that can be used to perform conversion of KPF to EPUB bypassing calibre's conversion pipeline. That will retain the fixed layout formatting of a comic. And the KFX Output plugin command line interface can convert KPF comics to KFX.

If you are instead starting from a KF8 (azw3) file you can use the KindleUnpack plugin to extract a fixed layout EPUB without conversion.

Last edited by jhowell; 04-18-2023 at 05:00 PM.
jhowell is offline   Reply With Quote
Advert
Old 04-18-2023, 08:51 PM   #3
JBReadin
Junior Member
JBReadin began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2023
Device: Kindle Paperwhite Signature Edition (11th Gen)
Quote:
Originally Posted by jhowell View Post
the KFX Output plugin command line interface can convert KPF comics to KFX
That's exactly what I needed! Thank you so much!
JBReadin is offline   Reply With Quote
Old 04-19-2023, 05:20 AM   #4
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,010
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by jhowell View Post
And the KFX Output plugin command line interface can convert KPF comics to KFX.
Doesn't that need also some Amazon program installed? Conversion to KFX doesn't work on Linux, at least not for me. The only way I get KFX (for testing) is to upload epub to Amazon KDP, publish, and buy a copy using Whispernet delivery direct to a Kindle that supports KFX (like my PW3). Even Send-To-Kindle doesn't do the exact same epub to azw3 as KDP publishing or Calibre conversion (which is near identical to published azw3).

Amazon seem determined to make life difficult.
Quoth is offline   Reply With Quote
Old 04-19-2023, 09:14 AM   #5
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,069
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Quoth View Post
Doesn't that need also some Amazon program installed?
Conversion from KPF to KFX does not require any extra software.

Conversion to KFX from other formats, such as EPUB, does require the Kindle Previewer to be installed.
jhowell is offline   Reply With Quote
Advert
Old 04-19-2023, 09:40 AM   #6
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,010
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by jhowell View Post
Conversion from KPF to KFX does not require any extra software.

Conversion to KFX from other formats, such as EPUB, does require the Kindle Previewer to be installed.
That's good to know!
Thanks.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IngramSpark citing content.opf errors I can't find in the .opf persand Calibre 4 03-21-2019 10:49 AM
Cleaning content.opf rubeus Plugins 5 09-04-2017 11:12 AM
Losing content exaltedwombat Sigil 14 07-20-2015 11:16 AM
Change opf filename from content.opf to title.opf northstar7 Sigil 3 09-23-2013 12:44 PM
[Old Thread] calibre not creating content.opf or toc.ncx files during conversion foxxywith2xs Calibre 7 12-16-2012 07:49 PM


All times are GMT -4. The time now is 10:06 PM.


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