|
|
#1741 | |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1
Karma: 10000
Join Date: Jan 2026
Device: none
|
Quote:
For reference here is what the error looks like in "KPR.Log": Spoiler:
In addition, some fonts might require conversion to TrueType glyphs to display properly, so make sure that you take care of that in case it is still not working for you. This is what that warning from KindleGen looks like; note that it doesn't bubble up to Kindle Previewer's conversion log: Spoiler:
Hopefully @jhowell, this saves you some sleuthing. |
|
|
|
|
|
|
#1742 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,263
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
|
|
|
|
|
|
#1743 | |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2026
Device: Kindle paperwhite 11 signature edition
|
Quote:
|
|
|
|
|
|
|
#1744 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,144
Karma: 28000001
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
|
|
|
|
|
|
#1745 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,144
Karma: 28000001
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
I've been using CLI to convert KPF (from Kindle Create) to KFX, but just tried using Convert in calibre after importing the KPF. The job ran for a couple of minutes without progressing beyond 67%, so I killed it (the CLI does this in a couple of seconds).
I assume this workflow is not supported. Is it possible to support it? |
|
|
|
|
|
#1746 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,263
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
At some point I may add a toolbar button to this plugin to perform the equivalent conversion of the CLI within the calibre GUI, bypassing calibre's conversion pipeline. But that won't be coming in the near future. |
|
|
|
|
|
|
#1747 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,144
Karma: 28000001
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Quote:
|
|
|
|
|
|
|
#1748 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,144
Karma: 28000001
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
I have an interesting issue.
I've started doing Add from folders and subfolders for the first time, as I'm doing some housekeeping on my calibre library and re-doing the earliest ones added when I didn't know as much - and also I prefer KFX to AZW3 for side loading and when these are fixed content, the conversion to ePub with From KFX is more of a no brainer (in past I had to remember to use KindleUnpack's conversion). I'm downloading with Windows app, pointing it at the My Kindle Content folder and selecting the aforementioned option. It asks if I want to combine books in folders as one book, or treat them as separate. If I chose to 'combine' it creates books with goofy titles (ASIN?) that end with .azw extension and inside that are the imported book in KFX, usually. And that goofy title is used for the book file (.kfx) and another with the same name with .MD extension. These .MD files are in binary format, no idea where they came from but it was not in the source folder, and .MD is supposed to be plain text. I thought I could exclude .MD from calibre's supported file preference but it had no effect, and even if there was no .MD file the title/filename is not as expected. This instance of calibre is only used to de-drm books, then I import them to my Mac via cloud folder. But Saving to this folder propagates the goofy book name, making it hard to merge with the previous book record in order to update with the refreshed content. The workaround is to treat them as separate books. Then the MD's have the goofy names and the KFX (AZW3 or MOBI) have the expected names. I can delete the MD entries, select the books and Save to the transfer folder. I don't know where these MD files are coming from (it's not in the source folder) but I believe it is only there with KFX imports so that's why I'm posting here. Last edited by tomsem; 02-06-2026 at 10:21 PM. |
|
|
|
|
|
#1749 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,263
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
The Kindle for PC app uses the file extension .md for KFX metadata files. Calibre will interpret that incorrectly as being a separate copy of the book in markdown format. See the section "Importing from Kindle for PC" under "Importing KFX books into calibre" in the first post of the KFX Input plugin thread for information on how to ignore those .md files and make the import work better. They are there in the folder that makes up a book in KFX format along with .azw, .res, and .voucher files. Your screenshot shows that you have file extensions hidden in Windows file explorer. (That is the default unless changed.) |
|
|
|
|
|
|
#1750 |
|
meat popsicle
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 240
Karma: 441248
Join Date: Jul 2007
Location: USA
Device: Kindles, Pixels, iPads
|
Hello jhowell
Thank you for your wonderful work - it is really inspiring! I have a technical question, not sure this is the right place to ask, but I will try. 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. Reason for me asking is simple - I am doing direct conversion of FB2 books into KFX (using my own code) and one of the users noticed that when scaling up font size on the device in one case indentation of first line of paragraph scales with the font and in another it does not (obvious, right?). 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. In all cases the only enabled Calibre plugins are KFXInput and KFXOutput. So I was wondering if you may have any idea where to look? I am extremely curious what may cause such behavior. Thank you! |
|
|
|
|
|
#1751 | ||
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,263
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Quote:
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. |
||
|
|
|
|
|
#1752 |
|
meat popsicle
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 240
Karma: 441248
Join Date: Jul 2007
Location: USA
Device: Kindles, Pixels, iPads
|
Thank you for the answers.
calibre-with-kfx is running "calibre-debug -r "KFX Output" -- <infile> [<outfile>] [options]" - is that what you mean by "KFX Output CLI"? The part where Kindle Previewer does its magic I investigated pretty thoroughly before switching my focus to what Calibre does (or does not do) ![]() Just trying to understand the behavior - I do not think KFX Output converts those units and I am quite certain that KPF/KDF output from Kindle Previewer contains "em" units in some cases. However when I got resulting KFX from Calibre GUI conversion - all units are "%"... |
|
|
|
|
|
#1753 | |||
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,263
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Quote:
Quote:
This can be a problem if the calibre GUI conversion pipeline is used since the margins specified in the "Page setup" tab all default to 5pt. Changing the left margin setting there to either "0" or "Unchanged" prior to conversion should result in em units being preserved for text-indent. I will make a note of this finding in the KFX Output plugin documentation and see whether I can do anything to mitigate this behavior in the future. |
|||
|
|
|
|
|
#1754 | |
|
meat popsicle
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 240
Karma: 441248
Join Date: Jul 2007
Location: USA
Device: Kindles, Pixels, iPads
|
Quote:
Thanks to your pointer I found missing piece now and updated my doc, here is what I missed before: It is converted to "%" if text layout is normal and for original unit being "em" and if - Text-indent value exceeds 4.0em, OR - margin-left is non-zero, OR - padding-left is non-zero I am not sure I need to repeat all of this, may be some day. Kind of wonder why such complexity is needed at all... Thank You for your help - all is clear now! Last edited by rupor; 02-25-2026 at 07:49 PM. |
|
|
|
|
|
|
#1755 |
|
Zealot
![]() Posts: 109
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
|
Hello,
This epub file sent to kindle via https://www.amazon.com/sendtokindle is not converted to kfx format. Anybody has clue on this? Thanks, Fei. |
|
|
|
![]() |
| Tags |
| kfx, linux, wine |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Conversion Output] KePub Output Plugin | jgoguen | Plugins | 588 | 03-28-2025 03:26 PM |
| Conversion output plugins? | jgoguen | Development | 14 | 08-10-2013 12:19 PM |
| Output file name after conversion | dbellefuil | Calibre | 2 | 06-14-2013 05:40 PM |
| catalogue builder output columns are not in the same order in the output | KWhytte | Library Management | 5 | 12-04-2012 03:03 AM |
| Conversion output folders | TechieLady | Conversion | 6 | 01-19-2012 03:49 AM |