August 21st, 2013

There is a patch for your copy of Instant Puppet 3 Starter

So I have done three things:

  1. Gone through the entire ePub file and fixed everything which was marked up in the PreFinal version sent to Packt a few weeks before publishing.
  2. Found and fixed a few small errors introduced between the PreFinal and what a buyer received.
  3. Learned about the ePub file structure and produced a patch.

Yes, I am not kidding. You can PATCH your ePub like so:

$ mkdir epubfix
$ unzip ../"Instant Puppet 3 Starter [eBook].epub"
$ patch < ../InstantPuppet3Starter.patch
$ zip -r ../"Instant Puppet 3 Starter -fixed [eBook].epub" *

It works well. When I started this, I had a fantasy of providing small patches to the file to keep it up to date for everyone. Great idea, since it would only change the different lines, right? Unfortunately, the ePub generator used by Packt eliminates linefeeds in the content. A fix to any sentence inside a chapter causes the entire chapter to be quoted in the patch file. Doh!

So giving away the patch just isn’t going to work. I have provided the patch to Packt; I hope they will push out the new version to all buyers. I’ll have the patch with me at PuppetConf too, if you have a receipt to show me…

You can read the original article at http://www.netconsonance.com/2013/08/patch-for-instant-puppet-3-starter/. Comments are welcome here or there as you please.