Monday, 19 July 2010

Howto go from Indesign CS4 to Amazon Kindle ...

So how did we get on with migrating printed documents to Amazon Kindle via Adobe's InDesign CS4?

This is a summary of the eventual route we took. It seems to work ok.

  1. We created new versions of the books in InDesign. The books and chapters are free standing copies away from the printed InDesign versions.
  2. We stripped out most of the formatting of text:
    a. Chapter titles were reduced in size
    b. Chapters were allowed on the next page (no odd/even setting)
    c. We removed page numbering from the books
    d. We removed the contents pages
    e. We assigned new ISBN codes on the verso pages
    f. We removed tables and converted to lists.
    g. We created new InDesign paragraph styles for the e-books; this helps to eliminate stray styles when you load the pages into the “template”. You delete the old style and assign one of the new e-styles.
    h. We eliminated special fonts like Drop Capitals at the start of each chapter.
  3. We set up the books to a page size roughly equivalent to the e-book display size so we could get a feel for how it will look on the eventual device.
  4. We exported to pdf for an eyeball check of the format of the new book.
  5. Once we'd worked out all of the formatting bugs, we exported the books to .epub format from InDesign CS4
  6. Then we imported the .epub book into Calibre software (fee/donateware) and converted it to the .mobi format using Calibre.
  7. We then used Amazon's (free) Kindle-for-PC viewer to view the converted .mobi book (Calibre). We scanned through each page looking for formatting problems. In some cases where we'd over-ridden a style in InDesign we'd find it would not accurately convert from the indd format to .epub. The over-ride formatting would be applied to the whole paragraph. We also found some corrupt characters; these seemed to be tied to left/righthand quotation marks in the original Microsoft Word documents, but it was not consistent and had not shown up when the books were printed. We needed to delve into the innards of the epub files to fix this; this is not as hairy as it sounds!
  8. The .epub file is essentially a bunch (directory) of HTML format files all compressed (zipped) together in one .epub file. If you can get at the HTML files you can edit them manually with HTML editing software (we used Dreamweaver software) and re-compress the files.
  9. First rename the file extension from .epub to .zip then double click on the resulting file name in windows explorer. Windows will offer an option to expand all. Accept that ant give it a suitable place to store the expanded files. Once that has been done follow the directory tree for the expanded document a couple of levels and look in the OEBPS where you'll find the XHTML files corresponding to each of the chapters/sections in the InDesign Book.
  10. Start up Dreamweaver, or similar editing tool, and load the XHTML file corresponding to the chapter you want to edit. Make the changes and save the file.
  11. Continue with each chapter needing change.
  12. Recompress the expanded directory to reform the .epub file. Change the file extension from .zip to .epub and you should then be able to reload the file into Calibre (go back to Step 6... until editing is fixed). Windows provides a free compression utility, from the file explorer right-click on the name of the directory you want to compress; select send to ... and chose the compression option.
  13. When you are satisfied with the .mobi output from Calibre, upload it (the .mobi file) toKindle, wait two days and your e-book will be ready for sale.

Sunday, 18 July 2010

InDesign CS4 to Amazon Kindle

What a tortuous web we weave. My books are prepared using Open Office Writer and also Microsoft Office Word 2007. My editor works on them in Word 2007 and then returns the file for final editing and review. We then take the .doc files and import them (place files) into the templates in Adobe's InDesign CS4 to provide the typesetting in preparation for printing. When we are ready to print we use CS4 to produce a pdf file which is then sent to our printers. They work from the pdf file to print out book blocks.  We use CS4 because it is great at producing accurate output and it also is great at getting rid of the various print fonts that Microsoft Word seems to want to maliciously slip into the body of your text without your knowledge and consent.
That all works fine.
Now we decided to publish an E-book version of our publications, Boy, does the immaturity of this branch of technology show or what?! Eventually we decided to use Amazon's Kindle format as a distribution platform. It takes a wide range of input formats and converts them to a Kindle format of e-book. The process is pretty slick, but has some bugs.
Firstly there is no point in using the pdf files prepared for a print house. The e-book readers are no great at handling all the different styles employed in paper printing. The book layout really has to be much more primitive. InDesign CS4 nicely produces an e-book format called .epub. That format is used by many ebook readers, but it isn't used by Kindle. So the first thing we did was to produce a different edition of our books for the e-versions, We stripped out text justification, tables etc ready for the ebooks. We removed things like always starting the next chapter on an an odd-numbered page. It just isn't relevant for modern day generic ebooks. Sure you can do this type of formatting for e-book readers, but you'd be tied to the physical screen size of a particular reader. 
Great - now all we have to do is to zap out a pdf file and upload it to Amazon, then wait 2 days and Voila your e-book is available to the public. That is what appears to happen, but it doesn't. Your pdf file can look just fine on visual inspection, but when it is shredded by the Amazon conversion programs, odd things can happen. (I think the cause of this lays back somewhere in Microsoft Word.) We had Chapter headings mysteriously disappear from the e-book. When I inspected downloaded files from Amazon, the xhtml code generated by the Amazon programs things started looking worse. Lines of text that should have been continuous were terminated with a [br /] html code for a new line. In some cases where the [p ... /p] paragraph markers were expected they wouldn't be present. What was worse was that there was no apparent pattern to the failures. The pdf & InDesign stuff looked fine, it certainly printed okay.
Amazon's help files suggested that you manually edited the HTML code and then reloaded it on to their site. If your book is 180,000 words long that just isn't workable.
After a Sunday spent investigating a way around this we think we've found a way through!! I'll resubmit the upload to Amazon, and let you know how it works out.


Here's a hint.

Alaric

I should have guessed it was too easy!

I'm currently battling with the Kindle file conversion facility on the Amazon web site. When converting from pdf files I seem to get unpredictable results. Most of the output looks good, but as you look more closely there are some bad formatting errors by the Amazon Kindle programs. We've temporarily pulled the Kindle version of our books while we sort this out. Making use of Calibre looks promising at present.
Alaric

Saturday, 17 July 2010

Kindle - Teen Valour

I was pleased to noted that within a couple of hours of Teen Valour being added to Amazon's Kindle books someone has made a purchase. It spurs me on to have Company Mole available through this route. There will be some cost to have the book reformatted, but it will be worth it in the long run. It will have the benefit of keeping the costs down to the followers of the Adam Cranford series. I'm delighted that we can save people around $9 or more by avoiding the printing costs and shipping costs.When Teen Valour goes high volume, I'll be able to justify high volume print runs; that will allow us to reduce the cost of the printed book to the public.

I was a bit concerned about making the book available only through Amazon, but they do provide free software for PC's and other readers such as the iPad that will allow Kindle books to be read in many places. Sure it means that Amazon will receive a commission, but they are after all providing the infrastructure.
Alaric

Friday, 16 July 2010

Kindle and proof prints.

We just setup my first book Teen Valour on Amazon's Kindle website. I must say it was a very easy process, though we did get the InDesign CS4 whiz-kid to prepare a new layout for the e-book. We eliminated a lot of the format and the contents page as the viewers on the market don't always handle those consistently. Freed from the costs of producing printed books we have been able to reduce the price significantly. My publisher does not believe in charging the same price as the list price of the printed book.
I'm just inspecting the first proof print of Dangerous Donkey. It is looking good. I think the smaller format will be much more to the liking of the younger readers. Despite the book going through at least four edits I spotted a missing word - arrgh! Ah well, that is not too difficult or expensive to fix. We should still be able to release by the August publication date.
Alaric

Tuesday, 13 July 2010

Dangerous Donkey released into the public domain.

After a slight delay I've released the first edition of the third book in the Adam Cranford series. It is called Dangerous Donkey. It can be purchased direct from www.lulu.com with an ISBN 978-1-907250-06-4
It is in the pocket book format and has 260 pages. This one is action packed and sees our teenage hero sky diving over the mountains of Afghanistan to rescue a friend. Lulu also provide an ebook version.
In a few weeks I'll be releasing the book in a different format and it will be available through major book sellers such as Amazon and B&N. The new format will be slightly cheaper, reflecting lower printing costs.
This book follows on from Teen Valour and Company Mole.

Alaric

UK NHS - Poor Management

I've just hear from a friend of mine in London about a Primary Care Trust. The interim managers (external contractors) have suddenly discovered that the local PCT is exceeding its budget. So now they are in panic mode, rapidly trying to slash costs, which if they'd managed them properly in the first place would not be a problem. They are trying to cut costs by reducing the number of nurses and also recruiting lower grade nurses where an essential vacancy occurs. For this particular clinic the funding was supposed to have been ring fenced.

The result is that the senior experienced nurses are voting with their feet and leaving what was a highly skilled and stable team that has taken years to build up. The management response, stopping any temporary staff needed to cover sickness/maternity leave, bullying to get the senior nurses to agree to unrealistic rotas and expecting nurses to work unpaid overtime to fill the gaps. These senior "managers" are paid four times what the nurses are paid. The managers have no clinical skills or experience of nursing.

It is ironic that this particular service attracts payments from other PCT for treating "out of area" patients. The "income" is twice the running cost of the Department. The whole service is funded by external commissioners and there are agreed service levels. If there are not sufficient nurses on site, the public will be turned away and their ailments not treated.

I say - fire the managers and not the nurses! Just another demonstration of the difference between managers and administrators. These people are definitely not managers, but probably can craft excellent powerpoint slide shows.

Alaric