Conversion using Kindlegen: usage instructions (Windows only)
- Download the attached zip-file.
- Open it in your favorite archiving program, and put the folder "KindleScript" somewhere. C:\ would be a good place.
- If you don't have Python installed, download version 2.7.5
http://www.python.org/download/
Pick the X86-64 version if you have a 64-bit Windows.
- Install Python.
- Now open Kindlegen.bat (Found in the KindleScript folder) in your favorite text editor.
- Edit this line:
Code:
"C:\Programs\Python 2.7.5\python.exe" "c:\KindleScript\lib\kindleunpack.py" -s "%%f" ".\Unpacked\%%~nf"
- Replace C:\Programs\Python 2.7.5\ with the location where you have installed Python. (Example: C:\Program Files\Python\)
- Replace C:\KindleScript\ with the location where you have put the KindleScript folder.
- Save the file.
The above is a one-time setup.
Now collect some EPUBs in a folder on your desktop. Copy them there, or save them there from Calibre. Convert as follows:
- Press and hold SHIFT.
- Rightclick the folder with the EPUBs, and click "Open Command Window Here".
- Type the following:
Code:
c:\kindlescript\kindlegen.bat
(Replace c:\kindlescript\ with the actual location where you put the KindleScript folder.)
- Wait.
- Pray.
If you doubleclick the folder that contains the EPUBs, you should see the script processing the files. In the end, you should have the following:
1. OriginalEPUB (the original EPUBs you started with)
2. OriginalMobi (the KF8:Joint combo-files that KindleGen generates)
3. AZW3 (the AZW3 files extracted from the KF8:Joint combo-format)
4. Unpacked (the stuff where everything is extracted to get the AZW3.)
If you started with 10 EPUBs, you should end up with 10 files in OriginalEPUB, 10 files in OriginalMobi, 10 files in AZW3, and 10 folders in Unpacked. If stuff is missing, a file did not convert correctly.
As I wrote before: this mini-script is for my personal use. Run it at your own risk, and use one COPIES OF YOUR FILES. If you run it on the folder where you store all your bought EPUBs, and something goes wrong, you could end up with an empty folder. There is NO protection for errors in here.