Quote:
Originally Posted by rupor
I am converting epub to kfx using Calibre with your KFX Output plugin. When I am doing it on Windows (calibre-portable, gui, convert individual, save to disk) I got output in which text-indent on the paragraph style is always expressed in "%" ($314). If I am using yshalsager/calibre-with-kfx (which basically runs KP3 on Wine) text-indent is in "em" ($308). I am pretty sure that versions of your plugins are the same in both cases and version of KP3 is pretty close if not the same too. I spent quite a bit of time trying to trace it down through Calibre code and such, but was not able to so far.
|
When converting to KPF/KFX the Kindle Previewer tries to normalize some of the book's formatting for consistent look on Kindles. It uses heuristics to determine whether some units should be changed to scale with the screen size (%) or font size (em) based on how the book is formatted. "em" units are used for text-indent in the cases I have examined. Something about the specific formatting or conversion process in your books might be triggering something different to occur.
Quote:
Originally Posted by rupor
All of that is pretty easily reproducible in KP3 GUI, but what makes it even more puzzling is the fact, that if I open source epub in KP3 directly - text-indent scales! When I open KFX file produced by abovementioned yshalsager/calibre-with-kfx - it scales. But when I open KFX file produced by Calibre and KFX Output plugin (same computer, same KP3, calibre-portable) - it does not.
|
It seems you are using the calibre GUI for conversion while calibre-with-kfx uses the KFX Output plugin's CLI. One possible source of different results is that the conversion process in calibre's GUI performs additional steps that can alter a book's formatting prior to passing it to KFX Output.
Quote:
Originally Posted by rupor
So I was wondering if you may have any idea where to look? I am extremely curious what may cause such behavior.
|
You could try using the CLI of KFX Output in order to avoid the calibre conversion pipeline and more closely match what calibre-with-kfx is doing.