10-23-2013, 01:09 AM | #121 | |
Nameless Being
|
Quote:
|
|
10-23-2013, 02:44 PM | #122 | |
Treasure Seeker
Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
|
Quote:
|
|
Advert | |
|
10-23-2013, 03:23 PM | #123 |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Kindlegen and Kinde Previewer create a mobi that has both old mobi and new KF8 in it.
|
10-23-2013, 03:36 PM | #124 |
Treasure Seeker
Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
|
|
10-23-2013, 03:38 PM | #125 |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Just by opening an epub with it
|
Advert | |
|
10-23-2013, 03:46 PM | #126 |
Treasure Seeker
Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
|
|
10-23-2013, 05:06 PM | #127 |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
If you'd like to convert a huge number of books, it would be best to use kindlegen itself. Kindle Previewer uses this in the background.
When I get at my desktop computer, I'll post a zip-file with a mini-script that creates AZW3 files using KindleGen and KindleUnpack, saving the original EPUB and intermittent mobi KF8:Joint file as well. Warning in advance: there's no error-checking. If the script finishes, you should have the same number of EPUBs, MOBI's and AZW3s. If you don't, you'll have to check the logs and/or compare the output directories to see which book didn't convert. Even though the script saves the original EPUBs, I highly recommend running it on a copy of your files. Last edited by Katsunami; 10-23-2013 at 07:40 PM. |
10-23-2013, 07:40 PM | #128 |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
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:\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 - 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. |
10-24-2013, 12:17 AM | #129 | |
Treasure Seeker
Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
|
Quote:
|
|
10-24-2013, 10:31 AM | #130 |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Thanks.
If it's Python 2.7.5, it should. The script depends on KindleUnpack.py, and I have not tested that on any other Python than 2.7.5. Don't forget to change that line to point to the correct install locations of Python and the script. After I'm done with my Linux conversion, I may make one for Linux too. It's no more than some loops to run along the files, really. |
10-24-2013, 11:49 AM | #131 |
doofus
Posts: 2,529
Karma: 13088847
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
|
What kind of file is azw3. It doesn't seem to be a zip file like epub
|
10-24-2013, 12:04 PM | #132 |
Nameless Being
|
|
10-24-2013, 10:08 PM | #133 |
Resident Curmudgeon
Posts: 76,002
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If anyone wants, I can post the CSS to an ePub that I converted to an AZW3 via Kindlegen (then split via KindleUnpack) that has -30px margins for the Kindle Touch.
-30px for the Touch -40px for the PW1/2 |
10-24-2013, 11:34 PM | #134 |
Wizard
Posts: 1,731
Karma: 3472866
Join Date: Apr 2008
Device: Sony PRS-650 & 350; Kindle Voyage; Kobo Aura HD, Aura One, and Forma
|
I would like to see this--Thanks! I'm trying to learn this stuff--not sure if I'll ever figure it out, but I'm trying.
|
10-25-2013, 01:26 AM | #135 | |
Treasure Seeker
Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
|
Quote:
I plan to work on this on the weekend. I am getting a replacement for the HDX on Monday. Mine is acting up. So I will have time to convert more books. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Embedding font produces strange spacing | northstar7 | Sigil | 6 | 09-17-2013 01:52 PM |
Fonts embedding | 1drey | Writer2ePub | 3 | 06-17-2011 11:15 PM |
Embedding fonts | JaneFancher | Calibre | 14 | 04-10-2010 09:28 PM |
Embedding fonts | AprilHare | ePub | 6 | 01-02-2010 11:42 AM |
Embedding fonts | jash | Calibre | 2 | 09-09-2008 05:05 PM |