View Single Post
Old 06-11-2014, 01:10 PM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Can I do this manually using unpacking the .mobi and adding the code then repeat OR do I have to use KindleGen?
There's no need to upack the mobi, unless you no longer have the source files. Simply execute KindleGen with the -dont_append_source parameter and the name of the .opf file.
(Kindle Previewer uses KindleGen in the Background.)

If you're "command line challenged," try the following:

1. Make a backup copy of your source files.

2. Download Kindlegen and extract Kindlegen.exe to the folder that contains the .opf file:

3. Create a text file with Notepad and paste following text into it:

Code:
DEL conversion.log
FOR %%f IN ("*.opf") DO  (
	kindlegen -dont_append_source "%%f" >> conversion.log
)
Then save it as kg.cmd. (Make sure that the file has a .cmd extension.)

Double-click kg.cmd and wait for the .mobi file to appear in the Explorer.
If nothing happens, check conversion.log for error messages.

If you want to give the -c2 parameter a try simply add it before -dont_append_source:

Code:
DEL conversion.log
FOR %%f IN ("*.opf") DO  (
	kindlegen -c2 -dont_append_source "%%f" >> conversion.log
)
Doitsu is offline   Reply With Quote