Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-11-2026, 04:14 AM   #1741
oops
Junior Member
oops knows the difference between 'who' and 'whom'oops knows the difference between 'who' and 'whom'oops knows the difference between 'who' and 'whom'oops knows the difference between 'who' and 'whom'oops knows the difference between 'who' and 'whom'oops knows the difference between 'who' and 'whom'oops knows the difference between 'who' and 'whom'oops knows the difference between 'who' and 'whom'oops knows the difference between 'who' and 'whom'oops knows the difference between 'who' and 'whom'oops knows the difference between 'who' and 'whom'
 
Posts: 1
Karma: 10000
Join Date: Jan 2026
Device: none
Quote:
Originally Posted by alessandrokindle View Post
Hi, I have an EPUB file that contains different types of fonts. After using your tool, the fonts are not preserved...
Hi. I ran into the same problem and have root-caused it and have a fix. First of all, the KFX Output plugin is not at fault. Kindle Previewer/KindleGen are the ones that are misbehaving. In my case, there would be messages in "KPR.Log" where the font files would be invalidated. The reason is that "FontValidator.exe" is a) a 32-bit application and b) requires the x86 2013 VC redistributable DLLs. It might complain only about "msvcr120.dll" and you'll be tempted to just copy it alongside the executable, but looking at the executable in Dependency Walker, it needs its supporting libraries as well. In my case the redistributable was not installed--I don't play games on this machine and Steam tends to be the one installing these nowadays. Installing the redistributable fixed the problem.

For reference here is what the error looks like in "KPR.Log":
Spoiler:
[ERROR] Invalidating the font:%LOCALAPPDATA%\Temp\2f029474-7d9d-47a1-b485-786b93621966\conv_out\book\res/rsrc55B

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:
************************************************** ***********
Amazon kindlegen(Windows) V2.9 build 0000-kdevbld
A command line e-book compiler
Copyright Amazon.com and its Affiliates 2015
************************************************** ***********
...
Warning(prcfile):W14029: CFF/Type1 (Postscript) embedded font included in your source may not render clearly on all Kindle readers. Please refer to Kindle Publishing Guidelines on the recommended usage of embedded fonts. Font File : ...

Quote:
Originally Posted by jhowell View Post
If that doesn't work I would need to see an example of an EPUB the loses its fonts when converted in order to diagnose this further.
Hopefully @jhowell, this saves you some sleuthing.
oops is offline   Reply With Quote
Old 01-11-2026, 02:12 PM   #1742
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,253
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by oops View Post
Hi. I ran into the same problem and have root-caused it and have a fix.
Thanks for the useful information.
jhowell is online now   Reply With Quote
Old 01-18-2026, 05:37 AM   #1743
alessandrokindle
Junior Member
alessandrokindle began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2026
Device: Kindle paperwhite 11 signature edition
Quote:
Originally Posted by oops View Post
Hi. I ran into the same problem and have root-caused it and have a fix. First of all, the KFX Output plugin is not at fault. Kindle Previewer/KindleGen are the ones that are misbehaving. In my case, there would be messages in "KPR.Log" where the font files would be invalidated. The reason is that "FontValidator.exe" is a) a 32-bit application and b) requires the x86 2013 VC redistributable DLLs. It might complain only about "msvcr120.dll" and you'll be tempted to just copy it alongside the executable, but looking at the executable in Dependency Walker, it needs its supporting libraries as well. In my case the redistributable was not installed--I don't play games on this machine and Steam tends to be the one installing these nowadays. Installing the redistributable fixed the problem.

For reference here is what the error looks like in "KPR.Log":
Spoiler:
[ERROR] Invalidating the font:%LOCALAPPDATA%\Temp\2f029474-7d9d-47a1-b485-786b93621966\conv_out\book\res/rsrc55B

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:
************************************************** ***********
Amazon kindlegen(Windows) V2.9 build 0000-kdevbld
A command line e-book compiler
Copyright Amazon.com and its Affiliates 2015
************************************************** ***********
...
Warning(prcfile):W14029: CFF/Type1 (Postscript) embedded font included in your source may not render clearly on all Kindle readers. Please refer to Kindle Publishing Guidelines on the recommended usage of embedded fonts. Font File : ...


Hopefully @jhowell, this saves you some sleuthing.
This fixed the problem, thank you so much!
alessandrokindle is offline   Reply With Quote
Old 01-18-2026, 12:09 PM   #1744
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 7,124
Karma: 28000001
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Quote:
Originally Posted by alessandrokindle View Post
This fixed the problem, thank you so much!
I take it that this is a Windows-specific issue?
tomsem is offline   Reply With Quote
Old 01-21-2026, 03:48 PM   #1745
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 7,124
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?
tomsem is offline   Reply With Quote
Old 01-21-2026, 05:55 PM   #1746
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,253
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by tomsem View Post
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?
calibre's conversion workflow always converts to EPUB as an intermediate format, so in your case it will convert KPF to EPUB and then EPUB to KFX using the Kindle Previewer. Additionally calibre's conversion does not properly support fixed layout books such as comics. So for now it is best to use the CLI to convert KPF to KFX.

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.
jhowell is online now   Reply With Quote
Old 01-23-2026, 12:38 AM   #1747
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 7,124
Karma: 28000001
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Quote:
Originally Posted by jhowell View Post
calibre's conversion workflow always converts to EPUB as an intermediate format, so in your case it will convert KPF to EPUB and then EPUB to KFX using the Kindle Previewer. Additionally calibre's conversion does not properly support fixed layout books such as comics. So for now it is best to use the CLI to convert KPF to KFX.

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.
Got it, thanks!
tomsem is offline   Reply With Quote
Old 02-06-2026, 10:16 PM   #1748
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 7,124
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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-02-06 at 6.03.23 PM.jpg
Views:	22
Size:	171.8 KB
ID:	220766   Click image for larger version

Name:	Screenshot 2026-02-06 at 6.09.22 PM.png
Views:	24
Size:	547.6 KB
ID:	220767  

Last edited by tomsem; 02-06-2026 at 10:21 PM.
tomsem is offline   Reply With Quote
Old 02-07-2026, 09:08 AM   #1749
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,253
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by tomsem View Post
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.
The combine option tells calibre to treat each of the files in the folder as a separate instance of the same book. Books in KFX format are composed of multiple files that together make up only one instance of the book.

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.

Quote:
Originally Posted by tomsem View Post
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.
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.)
jhowell is online now   Reply With Quote
Reply

Tags
kfx, linux, wine

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


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


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