View Single Post
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, 112 views)
JBReadin is offline   Reply With Quote