Skip to main content

Exploring iBooks Author Books and Templates

I've talked to a few authors and editors who wish to create custom templates for iBooks Author, well beyond what is possible making minor changes to fonts.

To create a custom template with altered background images and formatting, first create a simple iBook using an existing template.

If you are familiar with the ePub format, which is a compressed directory, you know there are several folders within the ePub. These folders contain what might be compared to a self-contained website. I like the ePub structure and wish iBooks were closer to that format than they are. But, Apple goes its own way. The iBooks format is much simpler than ePubs.

Do you wonder what is inside an iBooks "iba" file? To find out, do the following:


  1. Copy your ".iba" (I use the Apple-D "Duplicate" command in Finder)
  2. Change the extension from ".iba" to ".zip" 
  3. Double-click the ".zip" file, which will uncompress the folder
  4. Explore the new folder

First, you will notice there are a lot of files. In the iBook I tested for this analysis, there were 16,720 files and one folder. That's why I suggest using a nearly empty book to craft a custom template.

The entire text of the book, layout information, and revision data reside in two files:

  • buildVersionHistory.plist
  • index.xml

The "index.xml" can be opened in any text editor. If you open this file, you can skim through the file until you see the text of your book. While the ePub format supports chapters or sections as individual files, the Apple approach places everything in one huge XML file. Again, I prefer the ePub standard instead of placing everything in one disorganized folder.

The only subdirectory/folder that Apple creates in the iBooks format is named "QuickLook." The folder contains thumbnail images of the book. This is interesting because the mail folder also contains a long list of thumbnail images. In the sample book I am using for this analysis, the thumbnails in the main folder are named KFPageThumbnail-XXX.jpeg, where the XXX ranges from 1 to 650.

In the example books I have explored, there are some images that seem to exist no matter what. These image files are:

  • slate_green.jpg
  • slate_grey.jpg
  • slate_light-grey.jpg
  • slate_rust.jpg
  • slate_tan.jpg
  • slate_yellow.jpg

I don't know what the purpose of the "slate" set of images might be, but they appear in three different books I created using a mix of templates. Maybe someone else can dig into these?

There are also several other image files. These seem to be the images used for the various templates, based on my explorations. These files are different in each template. The design files in the book used for this example are:

  • Background-1.jpg
  • Colored_paper_backgrounds-1.jpg
  • Light-parchment-paper_a-1.jpg
  • Photo 2.jpg
  • Photo 6.jpg
  • Shape1.png

Three Adobe/Apple color profiles are also in the book folder:

  • color-profile
  • color-profile-1
  • color-profile-2

If you want to craft a custom template, you need to alter the files in this uncompressed iBook folder. For example, you could change the "Background-1.jpg" to a background of your own design. Match the size of the existing file, though. Don't worry about things like "DPI" or other settings in a graphics program: focus on the pixel-by-pixel size, such as 1024-by-768 pixels used by the original iPad screens.

Once you have changed images or made other tweaks, you can then compress the file back into a ".zip" format. Changing ".zip" to ".iba" makes the compressed folder an "iBook" again, a document you can open and edit in iBooks Author.

Again, the steps are:

  1. Create an "empty" shell book using an existing template.
  2. Duplicate the file and change the extension to ".zip" so it can be decompressed.
  3. Decompress the iBook into a folder you can edit. 
  4. Alter or replace any images you wish to customize.
  5. Compress the modified folder.
  6. Change the extension from ".zip" back to ".iba" to open the file in iBooks Author.
  7. Open the new file in iBooks Author and save it as a template!

You now have a customized template.

For a discussion on creating a template, read the following thread in the Apple Discussion Forums:
https://discussions.apple.com/thread/3677610

Comments

Popular posts from this blog

Slowly Rebooting in 286 Mode

The lumbar radiculopathy, which sounds too much like "ridiculously" for me, hasn't faded completely. My left leg still cramps, tingles, and hurts with sharp pains. My mind remains cloudy, too, even as I stop taking painkillers for the back pain and a recent surgery.

Efforts to reboot and get back on track intellectually, physically, and emotionally are off to a slow, grinding start. It reminds me of an old 80286 PC, the infamously confused Intel CPU that wasn't sure what it was meant to be. And this was before the "SX" fiascos, which wedded 32-bit CPU cores with 16-bit connections. The 80286 was supposed to be able to multitask, but design flaws resulted in a first-generation that was useless to operating system vendors.

My back, my knees, my ankles are each making noises like those old computers.

If I haven't already lost you as a reader, the basic problem is that my mind cannot focus on one task for long without exhaustion and multitasking seems…

MarsEdit and Blogging

MarsEdit (Photo credit: Wikipedia) Mailing posts to blogs, a practice I adopted in 2005, allows a blogger like me to store copies of draft posts within email. If Blogger, WordPress, or the blogging platform of the moment crashes or for some other reason eats my posts, at least I have the original drafts of most entries. I find having such a nicely organized archive convenient — much easier than remembering to archive posts from Blogger or WordPress to my computer.

With this post, I am testing MarsEdit from Red Sweater Software based on recent reviews, including an overview on 9to5Mac.

Composing posts an email offers a fast way to prepare draft blogs, but the email does not always work well if you want to include basic formatting, images, and links to online resources. Submitting to Blogger via Apple Mail often produced complex HTML with unnecessary font and paragraph formatting styles. Problems with rich text led me to convert blog entries to plaintext in Apple Mail and then format th…

Screenwriting Applications

Screenplay sample, showing dialogue and action descriptions. "O.S."=off screen. Written in Final Draft. (Photo credit: Wikipedia) A lot of students and aspiring writers ask me if you "must" use Final Draft or Screenwriter to write a screenplay. No. Absolutely not, unless you are working on a production. In which case, they own or your earn enough for Final Draft or Screenwriter and whatever budget/scheduling apps the production team uses.

I have to say, after trying WriterDuet I would use it in a heartbeat for a small production company and definitely for any non-profit, educational projects. No question. The only reason not to use it is that you must have the exclusive rights to a script... and I don't have those in my work.

WriterDuet is probably best free or low-cost option I have tested. It is very interesting. Blows away Celtx. The Pro version with off-line editing is cheaper than Final Draft or Screenwriter.

The Pro edition is a standalone, offline versio…