02-17-2012, 06:21 PM | #1 |
Zealot
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
|
KindleGen basics
Hello. I'm trying to get to grips with using Kindlegen to create ebooks from html files, but having downloaded it and tried the instructions, I'm getting nowhere. I'm starting from the point of zero knowledge on how to use command prompts. Amazon says to type in:
c:\KindleGen\kindlegen to receive instructions, but when I run the command prompt the path c:\Documents and Settings\Derek> comes up and I'm unable (or don't know how) to overwrite it. The actual location of the html I want to use in a test conversion is in a c:\ebooks folder. I have tried searching for the idiot's guide to this difficulty, but with no success, so if anyone is willing and able to help an idiot... |
02-17-2012, 06:41 PM | #2 |
Wizard
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
|
Per the instructions in the kindlegen README file:
KindleGen for Windows (XP, Vista, 7): 1. Download the KindleGen zip file from www.amazon.com/kindleformat/kindlegen to the desktop. 2. Right-click the zip file, select Extract All, and enter the folder name as c:\KindleGen. 3. Open a command prompt by selecting Start menu > All Programs > Accessories > Command Prompt. 4. Type c:\KindleGen\kindlegen. Instructions on how to run KindleGen are displayed. 5. Conversion Example: To convert a file called book.html, go to the directory where the book is located, such as cd desktop, and type c:\KindleGen\kindlegen book.html. If the conversion was successful, a new file called book.mobi displays on the desktop. 6. Please note: it is recommended to follow these steps to run KindleGen. Double-clicking the KindleGen icon does not launch this program. Run the above commands without quotes. If you drag and drop a file on the kindlegen executable it will convert the file for you, but you will not be able to capture the output logging, so this is also not recommended. |
Advert | |
|
02-17-2012, 07:06 PM | #3 |
Zealot
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
|
Thanks, Susan. I did read that - several times, in fact - but I was still at a loss. I eventually found this page which was a bit more expansive:
http://www.helenhanson.com/kindle-fo...-exe-–-part-6/ I have now managed to get Kindlegen to run and produce a .prc file. However, although I put the file to be converted on to the desktop I could not find the .prc file there, so I had to run a search for it, and found it in My Documents\My Publications. Is there any way of altering where the output is saved to? |
02-17-2012, 07:21 PM | #4 | |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
a) Using normal Windows mouse-based copying, make a copy of kindlegen (kindlegen.exe) in the target folder, i.e. in c:\ebooks. While there, copy the folder location to the clipboard. b) Open the Command Prompt (Windows Command Processor). One easy way is to type cmd into Start -> "Search programs and files". I use this often enough that I pin Windows Command Processor to my start menu. c) Goto (cd) the target folder: Code:
cd c:\ebooks d) Issue the command you want to run: Code:
kindlegen ebook_name.htm -c1 -o ebook_name.mobi Since you are running this in the target folder, the output file is in that folder as well. |
|
02-17-2012, 07:23 PM | #5 |
Zealot
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
|
Apologies, it did save to the desktop as a .mobi
|
Advert | |
|
02-17-2012, 07:30 PM | #6 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
The Kindle Previewer can be used as a GUI interface to kindlegen. Just open an .htm or .opf or .epub in Kindle Previewer and it will convert it to .mobi (i.e. it calls kindlegen for you).
|
02-17-2012, 07:40 PM | #7 |
Zealot
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
|
Thank you very much for the reply, wallcraft - I believe I know what to do now. Presumably -c1 -o means 'convert to' or 'output as' or something along those lines?
|
02-17-2012, 07:45 PM | #8 |
Zealot
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
|
P.S. I have just successfully used the Kindle Previewer for conversion as you suggested. Thank you again for your help!
|
02-18-2012, 12:52 AM | #9 |
Wizzard
Posts: 11,517
Karma: 33048258
Join Date: Mar 2010
Location: Roundworld
Device: Kindle 2 International, Sony PRS-T1, BlackBerry PlayBook, Acer Iconia
|
The -c options are for compression settings. -c2 gets you the smallest file size, -c0 is no compression and useful for debugging a build gone wrong without having to wait the extra time it takes a file to compress.
|
02-18-2012, 09:53 AM | #10 |
Grand Sorcerer
Posts: 27,903
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Just a quick addition:
After extracting the exe to c:\kindlegen (or whatever), I've found it's quite handy to add that folder to your PATH. That way you can easily cd into any directory and run kindlegen with no preceding path and without any file copying. That also allows me to rename the executable and easily run multiple versions (for debug purposes when kindlegen gets updated). |
02-19-2012, 12:48 AM | #11 |
Kindler of the Flame
Posts: 582
Karma: 646016
Join Date: Oct 2009
Location: US of A
Device: K DX,3,KT,KP,KF, KFHD; Nook C, PRS600, iPad, Xoom, N900, N810, Zaurus
|
I am still using Mobipocket Creator (it's GUI based) with manual .opf and toc.ncx files. Kindlegen adds the source files inflating the file size. I use kindlegen only when the toc.ncx is too big for Mobipocket Creator (it has a limit).
|
03-17-2012, 08:13 PM | #12 |
A Thirsty Mind
Posts: 92
Karma: 2546
Join Date: May 2011
Location: Lubec, Maine
Device: Kindle Fire, iPad, iPhone
|
I'm probably way behind the discussion, but I just got the Kindlegen instructions, and am baffled. I realize the KF8 can let me do lots more than mobi/prc does. But I'm just converting novels, nothing fancy, one font throughout usually, no images except small excerpt cover images and some flourish images. The books I convert and preview on both Kindle Previewer as well as on my Kindle Fire, look fine using MobiPocket. Do I HAVE to use Kindlegen at all? At least until my clients want to do more complex books.
|
03-19-2012, 10:54 AM | #13 | |
Grand Sorcerer
Posts: 27,903
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
03-19-2012, 11:45 AM | #14 |
Groupie
Posts: 184
Karma: 2572
Join Date: Aug 2010
Device: Kindle
|
I don't! But then I am only working for myself; I don't have any clients. No one has yet complained that my books lack an NCX file. When they do, or when Amazon actually enforces the requirement, I will face up to the task. For now I'm having too much fun getting new books up there.
|
03-20-2012, 03:39 AM | #15 |
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
I'd also note that any prc files, or mobis made with older versions of KG, will not produce the "MasterMobi" file needed to make use of the Fire's abilities. When you drop a prc file on KDP, it will stay a prc file, in essence (yes, it will crunch into azw, but it won't be a MasterMobi).
What it does mean is that your books shan't be Fire-optimized, which also means that you might get unexpected results when the books are loaded onto the Fire. We gen our books from ePUBs, but we test every single book, practically page-by-page, because we've had some highly unexpected results from ePUBs run through the Fire, and we've also had unexpected results from "regular" mobi's/prc's that were made pre-K8. Lastly, FWIW, aside from the Previewer GUI interface, I'd also note that instead of screwing around with the CL, you can simply take an OPF, or ePUB, or html file, etc., and literally DRAG AND DROP it on the KindleGen.exe program icon in the directory in which it is installed, and it works perfectly. ;-) HTH, Hitch |
Tags |
kindlegen |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Content Server - Basics | ddjohn | Calibre | 9 | 12-16-2011 10:02 PM |
Basics on Droid Apps for NC | JonnyG | Nook Developer's Corner | 8 | 02-14-2011 10:39 PM |
Troubleshooting TOC fails in Kindlegen 1.1, not Kindlegen 1.0 | cyberbaffled | Amazon Kindle | 3 | 12-25-2010 05:21 PM |
K3 plugboard basics | jackie999 | Calibre | 13 | 12-13-2010 03:48 AM |
Conversion Basics Help | raggedpelicanllc | Workshop | 2 | 10-22-2010 03:17 PM |