Showing posts with label iTunes Connect. Show all posts
Showing posts with label iTunes Connect. Show all posts

Friday, November 16, 2012

Versioning in iBooks 3 (part 1)

Another promising new feature announced by Tim Cook about iBooks 3 is the ability to make updates to an ebook, and then make those updates available to readers who have already bought the book. There were a few minor errors in my Monarch Butterfly book so I decided I would use it as a guinea pig to test versioning.

The first thing to note is that versioning only exists for EPUB 3 documents. They can be flowing or fixed layout, but they have to be EPUB 3.

So, my first task was to update the Monarch Butterfly fixed layout book to EPUB 3.

Changes to the OPF file

I began with the OPF file, adding version="3.0" to the initial package element and adding the namespaces that Apple recommends.

I updated the title of my book to indicate the version number, though I'm not sure this is necessary (or desired).

I added the required modification date and time:

<meta property="dcterms:modified">2012-11-06T12:00:00Z</meta>

Pay special attention to the time format: CCYY-MM-DDTHH:MM:SSZ. I tried putting just the year, and EpubCheck gave me an error. Note that both the T and the Z are required.

To make sure my fonts are recognized, Apple now requires this line instead of the com.apple.ibooks.metadata.plist file:

<meta property="ibooks:specified-fonts">true</meta>

And then comes the part where Apple lets you specify the version of your book. You are allowed two dots and three components (so 1.2.1) and up to four numbers per component (which seems excessive, frankly). And these aren't decimal numbers: trailing 0's count to keep them ordered; 1.10 is later than 1.9.

<meta property="ibooks:version">1.1</meta><!--controls versioning in iBooks3-->

Then, since my book is fixed layout, I had to add the EPUB 3 specific metadata:

<meta property="rendition:layout">pre-paginated</meta>
<meta property="rendition:spread">auto</meta>
<meta property="rendition:orientation">auto</meta>


Because my books' pages include Javascript, I had to add properties="scripted" to each of the pages which links to a Javascript file, even if it didn't use Javascript in that particular page.

<item id="milkweed" href="milkweed.xhtml" media-type="application/xhtml+xml" properties="scripted" />

And then I removed the guide section, which is no longer required by Apple (and was already deprecated in the EPUB 3 spec).

</spine>
<!--new to 1.1 guide is removed -->
</package>


New TOC file

EPUB 3 requires a new XHTML-based TOC file, which is a lot easier to write than the old toc.ncx format, since it's just formed by an ol list with links to the various TOC entries. For a Fixed Layout book, for which you want iBooks to create its graphic TOC (made of the covers of the books), just create a single entry to the first page, or cover in my case:

<nav id="toc" epub:type="toc">
<h1 class="chapter">Table of Contents</h1>
<ol>
<li><a href="title.xhtml">The Monarch Butterfly Book</a></li>
</ol>
</nav>


Then, as a replacement to the guide section, add a landmarks section, which works very similarly:

<nav epub:type="landmarks">
<h1>Guide</h1>
<ol>
<li><a epub:type="ibooks:reader-start-page" href="title.xhtml">The Monarch Butterfly Book</a></li>
<li><a epub:type="cover" href="title.xhtml">Cover</a></li>
<li><a epub:type="bodymatter" href="milkweed.xhtml">First page</a></li>
</ol>
</nav>


Finally, declare the new toc.xhtml file in the OPF file, paying special attention to the properties attribute:

<item id="toc" href="toc.xhtml" media-type="application/xhtml+xml" properties="nav"/><!--new in 1.1-->

That's it for the OPF file.

Changes to the XHTML files

In each of the XHTML files, I had to change the meta tag where I declared the character set. It was:

<meta content="text/html; charset=UTF-8" />

and it should be:

<meta charset="UTF-8"/>

I also had a few documents that somehow still had extraneous DOCTYPE elements. I got rid of those and made sure that each XHTML document started like this:

<?xml version="1.0" ?>
<html xmlns:epub="http://www.idpf.org/2007/ops" xmlns="http://www.w3.org/1999/xhtml">
<head>


There were also a few places I had erroneously used character entities, things like &copy; to show the © symbol. Now that I had the proper character set declaration, that was no longer necessary (or allowed). So I simply removed the character entities and replaced them with the characters themselves, typed in directly.

<p>Copyright ©2012 by Elizabeth Castro...

As far as content, I also fixed the error on page 24, which had the blinking arrows in the wrong place:

Wrong arrow placement

And put them where they go:

Correct placement of arrows

I also changed the Javascript so that the arrows would blink more slowly. People seem to have had difficulty finding the captions. It's actually a tricky problem. I want the photos to be displayed without distractions, but I want to offer clues. I haven't quite found the perfect solution yet.

Validating

Once of all of the changes were made, I used EpubCheck to make sure I had done it all correctly. I used the latest version: EpubCheck3RC.

Uploading the new file to the iBookstore

Finally, I uploaded it to Apple's iBookstore with iTunes Producer. When you make changes to a book that already exists, you only have to change the parts in iBooks Producer that are different, and it will only update those pieces of your package. So, I updated the description and then on the Assets page, I clicked the Choose button under Publication, and selected the new updated EPUB file. This screenshot is actually after I've done that. iTunes Producer doesn't give a lot of feedback.

Upload new file in iTunes Producer

And then I got the error I was suspecting:

Versioning error

I was expecting it because Apple says that you have to say what changed in a "Version_whats_new" XML file. I hadn't been able to find where that was.

It turns out I had downloaded the latest version of iTunes Producer, but I hadn't installed it. Once I did that, I was able to add the What's new information on the Book page:

iTunes Producer: What's New

Then I delivered the package again (no need to upload the book files again), and it went through without a hitch.

What I am most interested to see now is how it notifies me (and all of you who have purchased the book through the iBookstore) about the new changes. The new description went live almost immediately, but when I go to iTunes Connect, it tells me that the EPUB 3 version is under review.

iTunes Connect-3

And indeed, I don't see that little update icon that Tim Cook promised. Though I'm left with questions: When does iBooks check? Does versioning only work in iBooks 3? Do I have to open and close the app to force a check?

Update versioning, not yet

When I go to the Purchased section of the iBookstore, I also see that it shows that the book was already downloaded and I have no opportunity to update it. I assume that when the changes go live, this button will change.

Already downloaded

If you haven't bought the book yet, you'll be able to tell if you have the new version by checking page 24 and clicking the info arrow to see where those arrows show up.

And I'll keep you posted about how long it takes to go live. It seems like a really important feature to me. I would have liked to add a note or bookmark to see if those are maintained, but fixed layout format doesn't allow them. I'll have to update one of my other books...

Wednesday, October 31, 2012

New Contract needed for new iBookstores

I got an email from Aaron Shepard, POD expert, this morning, letting me know that it's not enough to add your books to the new 18 iBookstores (Latin America and New Zealand) that Apple made available last week. You also have to download and accept the new contract addendums! Argh. So glad he told me.

Quick overview:

First, add the new territories to your books. Start by going into iTunes Connect and clicking Manage Your Books.

Manage your books

Next, click the cover of the book to which you wish to add territories.

On stores-1

Notice that the book on the right just says "32 stores", but there are currently 50 total possible. That means I need to add the remaining 18 new territories.

You can also see, under the Read Aloud EPUB book on the left, that I had already added the new territories to this book, but the book has still not been accepted into the new territories.

Next, you'll see the summary page for the chosen book. click the Rights and Pricing button in the upper-right corner.

Rights and Pricing button

iTunes Connect will show you the current list of territories where your book has been added, along with the Sales Start Date, DRM, Price, and other data. Click the Add New Territories button in upper-left corner.

iTunes Connect Rights and Pricing list

Choose a DRM option, Sales Start Date, Base Currency (sales in most Latin American countries in their own currencies is not available, with notable exception of Mexico), Publication Type, List Price (of print edition), and Suggested iBookstore Price (which must be less than List Price). Then check the boxes next to the territories you wish to add. Or click Select All. Then click Continue.

Add New Territories dbox

iTunes Connect now shows you a list of the new territories and the price for each one. You are not limited to this price. Go through the list and adjust as necessary. (The book shown here is free, so the price is 0 in each case.)

Confirm New Territories

Click Confirm when you're ready. Now you'll be back at the Rights and Pricing list, with the new territories added. But notice that they're still Not On Store. (Aaron tells me that if you click on the Not On Store label, you can see what the problem is.)

New Rights and Pricing

Click Done three times (always at bottom right of window) to get back to the iTunes Connect main window.

Now click Contracts, Tax, and Banking on the left side of the main iTunes Connect window.

Contracts, Tax, and Banking

Click Request next to the new Contract amendment. I recommend downloading and reading the document. If you agree, click the appropriate box and then click Submit.

Two more Done buttons and you're, well, done.

Now when you go to Manage Your Books, you'll see that your books are available on all 50 stores.

On 50 stores

And if you visit one of the new territories in iTunes (by clicking the flag button in the lower-right hand corner and then choosing the desired country), you'll see your books listed. It might take some time for the new iBookstores to properly index your book's search terms. At first, I was unable to find my books, even by searching on my name. Searching on ISBN does seem to work, and I'm hoping that that will get updated quickly.

Mexico iBookstore

Note that my book that sells for $5 in the US sells for 65 Mexican pesos which, according to Google, is indeed the going rate.

One more thing I learned last week: reviews are posted only in the iBookstore that belongs to the country of the person who wrote the review. So, there is a lovely review of the Monarch Butterfly book by Laura Brady which I can only see if I connect to the Canada iBookstore:

Monarch Butterfly review, by Laura Brady

and folks who connect from countries besides the US cannot see the five five-star ratings that the book has in the US iBookstore.

In US iBookstore

I think it would be nice if Apple made those out-of-country reviews available (perhaps after reviews from one's own country?) If it's the same book, this is information that would be useful to all.

At any rate, keep in mind that if you want to see reviews of your books in other iBookstores, you'll have to go to each store individually. And if you've reviewed my book on a non-US iBookstore, please let me know. I'd love to see it. (And thanks!)

Tuesday, October 23, 2012

Apple opens iBookstores across Latin America (and New Zealand)

Updated: 9:32am

Thanks to a tip from Miquel Hudin, I noticed that Apple has already made it possible for publishers to add books to iBookstore in Latin America: specifically, Argentina, Bolivia, Brazil, Chile, Colombia, Costa Rica, Dominican Republic, Ecuador, El Salvador, Guatemala, Honduras, Mexico, Nicaragua, Panama, Paraguay, Peru, and Venezuela. And it has also opened the iBookstore in New Zealand.

Add Territories Latin America

Simply go to iTunes Connect, Manage your books, and then choose Add Territories in the upper-left part of the window.

I assume that there will be a new version of iTunes Publisher today as well.

Note that I added a few of my books this morning, but they still say "Not on iBookstore" in the new countries. I suspect that will change during the day.

There are books in Spanish for sale already on some of the new iBookstores. To see a different country's iBookstore, in iTunes, choose iTunes Store, and then go to the very bottom of the window and click the flag in the bottom-right corner.

Click flag to change iBookstore country

Then choose the desired country from the list. Note that not all of the listed countries have the iBookstore (some only have the App store).

Here's a screenshot I took after switching to the Argentina iBookstore. Actual books for sale, in Spanish. Note the currency, however, all in USD.

iBookstore Argentina

As of 9:23, my books are still not available in the new countries, even though one is in Spanish. I'll let you know.

It is interesting to note that "Libros" now appears as a category on Apple's LinkMaker page for the new Latin American Market (and Books for New Zealand):

iTunes Link Maker Argentina

This is very exciting and is definitely an auspicious start to this day of new announcements by Apple. Can't wait for the rest.

More of my books