Thread: KFX Format
View Single Post
Old 02-22-2016, 06:13 PM   #357
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Quote:
Originally Posted by jhowell View Post
It is still mysterious to me why some books convert to KFX/KDF and others don't.
The reason is usually in one of the logs. I rsynced temp directory in a loop to get all output.
Creating kdf file is a very complicated, multi-staged process. Input html files are cleaned, parsed, individual tags, styles are extracted, images are optimised, mobi files are created and then parsed again. The process involves multiple applications, many temporary files and directories are created and deleted.
If any of the stages fails kdf file is not produced and previewer renders mobi file without enhanced features. I suppose most of the errors are due to conservative approach – if there is a chance that parsing might break original layout of the document, the process fails.
I didn't have time to test many documents. Some of the errors were as simple as: "The Language given is not supported currently", other more cryptical: "Not exact match - YJ=ContentFormat:YJCANONICAL, ContentType:IMAGE, TextChar:null at md pos 3,Mobi=ContentFormat:MOBI8, ContentType:TEXT, TextChar:T at 283"
baf is offline   Reply With Quote