12/31/2012

Kindling: Converting a Word Doc to a Kindle Book


Occasionally, I have serious thoughts. These times usually pass quickly and are soon forgotten, and they're certainly never posted here on my humor blog.

But in this case, today, the serious thoughts were around the comedy book I just published, so it didn't seem unwarranted to post the thoughts here. More importantly, the thoughts were around the incredibly tedious and frustrating process of converting a book written in Microsoft Word to the format that Kindle accepts. I've gone through this pile o' fun three times now: once for the first book, and now twice for the second book (once when it was first published, and again when I realized I really needed to fix some of numerous, tiny errors in the first edition). I'm getting sick of re-learning all of these steps each time, so I thought I'd write them down this time. And what better place for me to find them again when I do this next time than on my blog?

If anyone else finds their way here in search of the same information, or otherwise finds this a fascinating read worthy of posting on this gripping humor blog, so much the better.

Assumptions

  • You wrote a book. I can't help you with this one. I can barely help myself with. So let's just assume that you got this far already. If not, you might want to stop reading right now and go write that book. Come back when you're done.
  • You wrote the book in Microsoft Word. This is not a requirement for books, or writing, or anything. In fact, I regret using Word for many reasons, and spent precious hours fighting with it over the course of trying to ready my book for publication (especially the $%*%&?!$!!! non-deterministic Picture placement functionality. How hard can it be, really?) But it's a decent way to do a fair job of formatting something reasonably complex, and many people know how to use it, so it's a reasonably place to start.
    By the way, I used Word 2008 on a Mac for my book. I'm not sure how much of my experience is specific to that version (although I believe the Table of Contents issue described below may be specific to the Mac).
    Note that many of the steps below apply regardless of whether you use Word, but some of the steps were specific to my situation of using Word and some of the corner cases I ran into were because of the specific (creaky) process used to convert from Word into Kindle-friendly HTML. So even if you didn't use Word, maybe the following points can help you ... but you could also just go to the KDP site and start there. For example, this page provides a starting point with various formatting tips for Mac users.
  • You feel the need to make the book available on Kindle. It's a fantastic book. The world is dying to read it and it will surely be voted Best Book Ever, except for this one fatal flaw: it's not available on Kindle. Of course, you started writing because you love books: you love the way they feel, you love the turn of the pages, and you love the fact that they stare down at you from your shelves, showing you in glorious color what you've already read and what you will read soon.
    But the rest of the world doesn't share your love of books: they take up too much space, and they just aren't as trendy-cool as content that they can access on their many electronic gadgets.
    So you want to provide them a way to read the book on Kindle.
  • You're using the Amazon's Kindle Direct Publishing service. I have no idea if there's a better service. This is the one that CreateSpace sends you to after publishing through them, and it's the one I used. I recommend it because I don't know what else to recommend. And what the heck; it's free (like CreateSpace, they take their cut off of the copies sold, not off of the creation/uploading process).
  • You have a half day to kill. You're already so incredibly sick of your book that you'd just as soon burn it as read it, but you fortunately have nothing better to do on a Saturday morning than review it one more time as you walk through the various steps to convert it to Kindle format. This shows not only the strength and fortitude which made you an author, but also the lack of social life which also makes you a good author.

Caveats

This is not a comprehensive soup-to-nuts description of what to do to post the book to Kindle. For that, please refer to the Kindle Direct Publishing site (or whatever other service you want to use for this). In fact, the KDP site covers some of the items below, and in much more detail; I've honed my list to the real pain points that I ran into, whether covered there or not.
Instead, this article is about just getting the damn Word doc converted into HTML that looks reasonable on Kindle. Period.

Converting a Word document to a Kindle book

Okay, here goes:
  1. Overview: "All" you're doing is converting the Word file (.doc or .docx) to HTML. This is actually easy ... but if you look at the results of the conversion, you'll probably see, as I did, that many things get messed up in this conversion. The steps below are meant to take care of these issues so that the resulting book looks good on Kindle.
  2. Start from the final version of the Word doc used to create your hardcopy version. For me, this was the final version of the Word file that I then converted to PDF, which I then uploaded to createspace (my publisher). You'll want to start with this copy because it would be really handy if the versions you're working with don't get out of sync. Also, it's common sense - you want to make sure you get all of those last-minute fixes you applied to your published version before you start on the electronic one.
    By the way, in the process of converting to Kindle format, you may want to make changes that should be applied to the original version - go ahead and do this to avoid the versions getting out of sync. For example, you may have a future edition, and you want to make sure that all of those fixes you made to get the Kindle version working don't get clobbered by starting from an older version of the hardcopy version.
  3. Save As... to a new version of the document, like MyFantasticBook-KDP.doc. You're going to do things to your book that will be specific to the electronic version. These will be horrible, terrible things, things you wouldn't tell your children about, things you wouldn't want your co-workers to know about, and definitely things that you don't want to pollute the original version of the book. For example, you're going to move images around that you worked so hard on to get Word to inline them next to the text in question; you're just going to put them on their own lines, after the referencing text. Don't destroy your artwork of the hardcopy by doing this in the original document.
  4. Image Insertion: For some reason, KDP suggests you "Insert" all images instead of copy/pasting them. When I have noticed problems in moving pictures around and getting them to stay where I put them (between the version I see in Word and the version I see in the resulting HTML), I've deleted the picture and done the insert operation (Insert -> Picture -> From File...), and seemed to have better luck with that.
  5. Image Placement: Occasionally, I've had inlined images end up (in the resulting HTML and/or Kindle document) in a reasonable place, next to the text where I inlined them. Usually, this is when I placed the image on the left of the text. But more often, I've had the image move around unpredictably between the Word and Kindle versions, moving above the original placement, below it, to the right, and to the left. I've even had it hop a number of chapters and resize itself along the way, like it was a high school kid trying to crash a local frat party. There is something completely f'd up happening with Picture placement in Word, and it's best to just avoid the issues entirely: put each image on a line of its own near the text that references it (I put my images after the text usually, hoping that the reader hasn't yet forgotten what I wrote before they see what I drew).
  6. Table of Contents: Word has this great ability to create a custom Table of Contents (TOC) based on styles that you specify and use for section headings, chapters, whatever. It's quirky, but once I figured out how to use it, it was very powerful.
    And then I converted to Kindle.
    I believe there's a facility on the Windows version of Word that allows you to carry this TOC over to the Kindle version. But on the Mac, you have to start over. Completely. Like this:
    1. Delete the TOC. (Remember that part where I said you want a new version of the document for Kindle? This is one of the reasons).
    2. Go to all of the items in your book that you want in the TOC and create a Bookmark for them (Insert -> Bookmark...). Name them appropriately. Note: I dumbed-down my TOC for the Kindle version and just created headings for the sections. No way was I going to go to the trouble of bookmarking all of my tiny little chapters. Huh-uh.
    3. Go to where you want the TOC and create Hyperlinks (Insert -> Hyperlink...) for each of these items (go to the Document tab in the dialog box, select the Anchor field and find the bookmark you want to link. Name it appropriately in the Display field and click the OK button and voilĂ  your TOC entry is there for that item). Keep going until everything you want in the TOC is there. Note that you can format all of these handy hyperlinks however you want (you may want different formatting for chapter headings than, say, the 96-point bold all-caps Chancery font used for the ABOUT THE AUTHOR link, because that's how important you are).
  7. Create extra bookmarks for the Start and TOC locations just for Kindle. These are used by the Kindle readers and won't show up in your TOC section. Go to your TOC and insert a bookmark named "TOC" (not with quotes, those were just to call out the word in my text here). Now go to wherever you want the user to pop into the story when they start, or when they navigate to the Beginning of the book. Insert a bookmark named "Start" (no quotes. See above.)
  8. Use Page Break. Freaking Word, I swear. In fact, I swear all the time. At Word. One of the reasons is its insistence on using Column Break instead of Page Break when I specifically used the keyboard shortcut that it says is for Page Break. (Note: you can see what kind of breaks you have by going into Outline mode).
    Anyway, use Page Break whenever you want to start at the top of a new page. This may be between sections or chapters or whatever. I found that Section Break and Column Break worked similarly in the hardcopy version of the Word doc, but were completely wrong in the Kindle version. Fortunately, it was easy to use Find/Replace to replace the mistaken Column Break things with Page Breaks. And where I did have a Section Break instead of a Page Break, I deleted it and inserted a Page Break instead (Insert -> Break -> Page Break). I had some issues around Page Breaks inserting an extra line afterwards that was tricky to delete, but some fiddling around will fix that when it occurs.
  9. Watch for custom-formatted fonts/characters. I had one single character that I custom-formatted several times in my book to get it to look right. Basically, I wanted a huge W, italic and bold, at the beginning of some of my sections of text. I got it to look right (without too much padding around it) in the hardcopy version by doing a Format -> Font on the character, going to the Character Spacing tab of that dialog, choosing Spacing: Condensed and then specifying 8 pts for it to do the right thing. Looked great. Until I converted to Kindle.
    Kindle displayed this same text by placing that character several characters over to the right, over the following letters in that word. Icky. Totally icky.
    The fix was to simply remove that formatting before converting. This made it look bad in Word itself, but the converted HTML, and resulting Kindle, text looked great.
  10. Save as HTML: Now you've done all of this (and probably many more things besides) and you're onto the final step (oh, so you hope). Save as HTML by doing Save -> Save As Web Page....
    This will create a .htm version of your document, along with a folder that is similarly-named which contains all of the images used in the doc. You're almost done, except for a couple more steps...
  11. Review: Open up the resulting HTML page in a browser (double-click on the file in Finder) and see how it looks. It won't be paginated, but you can at least see how things like the images and text look. This preview may also show you things like messed-up HTML which I found in my conversion. Just look for anything that looks screwy and deal with it.
    In fact, this step may be useful several times between the steps above - you can always save as HTML and see how things are going, just to check in.
  12. Image sizes: I found that converting to HTML converted several of my images from their original, large PNG files to much smaller GIF files. But I also found that it left the originals in the folder with the other images, giving me about 6.5 MB more image bulk in my upload than I really needed (remember: time is money. And so is upload size. The KDP pricing is based partly on download size, so getting rid of huge images can save some of the overhead cost). I simply deleted the images that I knew I didn't need anymore (because there were smaller versions also saved) and everything was fine.
    However: You should always check the resulting HTML to make sure that you haven't deleted an image that it was actually using. Refresh the HTML page in the browser after these changes and make sure you don't have any missing-images problems.
  13. Upload to KDP: Now you're almost there (ha!). Compress your htm file and images folder into one single zip file (I did this by selecting both the file and the folder in Finder and compressing them together, which created a file called Archive.zip). Upload this to KDP (use their UI for this - there's a step where they tell you to browse to this file and upload it). This will make available both online and offline preview versions. You really need to preview it. Really.
  14. Preview: Preview your resulting Kindle file. Trust me, the HTML-in-browser version does not show all of the problems that can result from the double-conversion step from Word, and you really need to see what your book looks like on actual Kindle devices (or even these emulated offline/online devices that KDP offers).
  15. Finalize: Once you're satisfied with your eBook, you're ready to go - follow the rest of the steps in KDP and publish the damn thing.
Now you're ready for the final two steps. These are by far the most critical in the entire process, so pay attention:
  1. Sell millions of copies.
  2. Use your unbelievable profits to come back here and buy my latest comedy book. Or my other comedy book. In Kindle format, even, because I'd hate to have wasted all of the steps above and that Saturday morning I spent doing this instead of wondering what to do with my Saturday morning if nobody actually buys the Kindle version.
I hope this was useful to you. If not, I have no idea why you've read this far.

12/29/2012

Standup: Parenting

I realized that I never posted this older standup session. This is from a set at the San Jose Improv in April, 2012. It's an expanded, more, er, refined version of the short set I did at the Purple Onion.

It's about parenting. Or, rather, about sucking at parenting. The audio's not great. Oh, and it's not completely kid-friendly. A bit like me, I guess.

12/16/2012

Butter Up!

It's the time of year for holiday treats; here are some simple recipes.

Enjoy!

12/15/2012

Christmas is Coming!




Christmas is Coming!
I have to be good!
I must be the best kid
In my neighborhood.

Santa will know if
I’m not at the top, and
He gives the best gifts to
The cream of the crop.

I tried to be nice
All the year long.
But all that I did
Just turned out wrong.

I helped an old lady
Crossing the street
Till she fell through the manhole
Under her feet.

I lit up our house,
‘Twas the brightest in town.
But the fires I lit just
Burned the place down.

I donated things and
Gave to the poor,
But I guess they don’t like
My compost anymore.

I tried to recycle
All kinds of things
But my sister complained
She still needed those rings.

I treated my parents with
Kindness and pleasance,
Except for the times I
Was in their presence.

I kept my room spotless
One time for a week,
After my dead gerbil
Started to reek.

I help with the dishes when
Mother is cooking,
And I only break stuff when
She isn’t looking.

But no matter what,
I just don’t end up nice,
So Santa, I really could
Use some advice.

How can I do this?
What have I missed?
Help me to get off
Your long naughty list.

Should I write you more letters?
Can I bribe you at all?
Do you have a cell number
That I can call?

If I kidnapped your reindeer,
Would that do the trick?
Or what if I threatened
You, Mr. Saint Nick?

I’ll do anything,
Anything; is that clear?
Whatever will get me
A present this year.

12/09/2012

Depend on the Kindleness of Strangers

The Kindle version of When I am King... II: More Reasons to Put Me in Charge is now available on Amazon (the hardcopy version was already available).

In an odd twist, the Kindle version is apparently free ($0.00) for Amazon Prime members through the Kindle lending library. I don't quite get how this works, but apparently you can read it free through the library. Or you can buy it for $3.49. I, er, uh... maybe they make it up through volume?

Either way, you can get it for your Kindle now.

This eBook version is quite distinct from the hardcopy in several respects:
  • Unique table of contents, specifically tuned for this electronic edition (because Kindle couldn't cope with the hardcopy's table of contents. Apparently links to page numbers don't translate well. That was fun to fix)
  • Unique placement of graphics (because the conversion process completely messed with the nicely inlined pictures in the original Word version and everything had to be painfully tweaked, one by one. Holy hell, graphics are tough to deal with when going electronic. Next time, I think I'll stick with words.)
  • Fixes for minor glitches found during the publishing process (No matter how many times you edit your own stuff, you will *always* find more errors, especially after it's actually published. Grumble.)
Oh, and it's way cheaper, as eBooks should be, coming in at about half the price of the hardcopy.

Obligatory link to the eBook version. And, for completeness, a link to the original hardcopy WAIKII-classic version. You know, the book. The actual, printed thing. Made from trees, has pages.

eBook
hardcopy

12/08/2012

When I am King... II: The Book

It's out. It's here. It's the one you've been waiting for, even if you didn't know it.

It's the second, it's the sequel, it's the one that the first was published in anticipation of, even if it didn't know it.

It's published, it's on sale an Amazon, it's the reason that Amazon exists, even if it doesn't know it.

When I am King... II, the book. Available now from Amazon.

Get it for a gift. Get it for yourself. Get it for a coffee table coaster.

Buy one for your dog.
Buy one for your cat.
Buy a couple dozen for
A front door mat.

This new book is remarkably similar to the first When I am King... book, except for the part where it's all new content. Okay, okay, it contains King essays originally published on my blog, but none of them are in the first book. Because that'd be cheating, and dumb. It'd be like those bands that release Yet Another Greatest Hits album with most of the songs from the previous Greatest Hits on it again. Also, this second volume is bigger. And longer. And bigger. And I spent some quality time refining this one, adding a bit of content here and there, updating the material, and generally making the book look (if I do say so myself) pretty good.

The book will also be available in a Kindle version, just as soon as I can push that through the process. Expect another self-serving blog post about that soon.

In the meantime, go get the hardcopy. Before Amazon runs out of books and the Amazon Rainforest runs out of trees.



Fat



My jeans are much tighter than this time last year.
Maybe I’ve been drinking far too much beer.
And too much dessert didn’t help, it seems clear:
I’m think that I’m getting fat.

The problem is that I just like food too much.
I can’t stand just looking; I have to then touch.
Then touch leads to eating, my emotional crutch.
I feel really bad about that.

My shirts don’t even button all the way down
They stop about half-way, right around
My stomach, expanding, without any bound.
Like it’s trying to break itself free.

I can’t see my feet past the rise in my middle.
The view past my chins is also quite little
And the fat in my cheeks blocks the view from my spittle.
I really can’t see much of me.

I tried eating pebbles and twigs and dirt
But rocks made me nauseous, and sticks made me hurt.
I lived like a hermit, in a cave and a yurt,
But nothing helped me a bit.

I tried throwing up everything that I ate
(So desperate was I to lose all this weight)
But getting rotunder just must be my fate
Though I wish my clothes would just fit.

I tried drinking less than a keg every day
And cases of wine are not good, so they say,
I’d like to keep guzzling scotch, if I may,
But it all settles down on my gut.

Then birthdays happen, with piles of cake,
And holiday feasts drag me into their wake,
And I end up stuffing all I can take,
Till I can’t even get off my butt.

So nothing is helping to knock down the pounds,
Not the diets, or puking, or teetotalling, sounds
Like I’d better get used to my big, doughy mounds;
I just can’t seem to beat it.

So bring on the cake and the ice cream and frosting,
And give me the steak and the gravy. It’s costing
My health and it’s emotionally exhausting,
But if you can’t fight it, eat it.