Thread: KFX Format
View Single Post
Old 02-16-2016, 12:08 PM   #338
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 KevinH View Post
baf, can you get a dump of the environment variables that are set during the conversion to kfx? The internal Epub conversion jar seems to look for AMZN_ prefixed environment variables in places but so it might help to see what is getting set.

KevinH
I don't see any such variables.
Previewer runs following command to convert epub to kdf. Run it from lib/fc directory. Then watch /tmp directory for resulting files. Also notice the files that are created and then deleted.
This applies to OS X, should be similar for windows.
Code:
jre/bin/java -cp lib/EpubToKFXConverter-1.0.jar:lib/* com.amazon.kfxconverter.app.KFXGenApp -libDir . -tmpDir /tmp -outDir /tmp -inputFile sample.epub -locale en -amzncreator "Kindle Previewer 3.0.0"
The command takes following parameters. I don't see any profiling options here though:

Code:
Usage: <main class> [options]
  Options:
    -amzncreator
       tool version (optional)
    -compressionType
       Compression type
  * -inputFile
       Input file
  * -libDir
       Base directory where all the required libraries are present
  * -locale
       The language for Kindlegen logs
  * -outDir
       Output directory where mastermobi is stored
    -outFileName
       Output file name for .mobi, if not given the input filename is taken
  * -tmpDir
       Temp directory where kdf is stored
baf is offline   Reply With Quote