<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Threepress Consulting blog &#187; epub</title>
	<atom:link href="http://blog.threepress.org/category/epub/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.threepress.org</link>
	<description>Threepress creates software for publishers, educators and authors.</description>
	<lastBuildDate>Wed, 01 Sep 2010 18:04:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HTML5 for Web Designers by Jeremy Keith available as an EPUB</title>
		<link>http://blog.threepress.org/2010/09/01/html5-for-web-designers-by-jeremy-keith-available-as-an-epub/</link>
		<comments>http://blog.threepress.org/2010/09/01/html5-for-web-designers-by-jeremy-keith-available-as-an-epub/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 18:04:27 +0000</pubDate>
		<dc:creator>Liza Daly</dc:creator>
				<category><![CDATA[ebooks]]></category>
		<category><![CDATA[epub]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://blog.threepress.org/?p=1599</guid>
		<description><![CDATA[

We were very happy to develop the EPUB version of HTML5 for Web Designers by Jeremy Keith, the first title from A Book Apart. A Book Apart is the publishing offshoot of A List Apart, an organization hosting a fantastic digital design blog (including Web Standards for E-books by Joe Clark). 
We love working with [...]]]></description>
			<content:encoded><![CDATA[<div style="float:right"><a href="http://books.alistapart.com/products/html5-for-web-designers"><img src="http://3press-blog.s3.amazonaws.com/sm-buy-html5-for-web-designers.png" alt="HTML5 for Web Designers" /></a>
</div>
<p>We were very happy to develop the EPUB version of <a href="http://books.alistapart.com/products/html5-for-web-designers">HTML5 for Web Designers</a> by Jeremy Keith, the first title from <em><a href="http://books.alistapart.com/">A Book Apart</a></em>. <em>A Book Apart</em> is the publishing offshoot of <a href="http://alistapart.com/">A List Apart</a>, an organization hosting a fantastic digital design blog (including <a href="http://www.alistapart.com/articles/ebookstandards/">Web Standards for E-books</a> by Joe Clark). </p>
<p>We love working with digital-friendly publishers and we&#8217;re very pleased with how great the book looks, especially in ereaders with advanced CSS support, like iBooks and <a href="http://ibisreader.com/">Ibis Reader</a>. It&#8217;s DRM-free too!</p>
<p><em>Special thanks to our friends at Granade Graphic Design who assisted with the conversion.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threepress.org/2010/09/01/html5-for-web-designers-by-jeremy-keith-available-as-an-epub/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Test-driving Apple Pages with ePub export</title>
		<link>http://blog.threepress.org/2010/08/26/test-driving-apple-pages-with-epub-export/</link>
		<comments>http://blog.threepress.org/2010/08/26/test-driving-apple-pages-with-epub-export/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 21:40:29 +0000</pubDate>
		<dc:creator>Liza Daly</dc:creator>
				<category><![CDATA[epub]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.threepress.org/?p=1584</guid>
		<description><![CDATA[Finally there&#8217;s a commercial word processor that can export ePub.  
Today Apple released an update to iWork 9.0.4 that provides ePub as one of the output formats in the Export menu, alongside PDF and Word.  Apple has also provided a support page describing the differences between ePub and PDF, and a very helpful [...]]]></description>
			<content:encoded><![CDATA[<p>Finally there&#8217;s a commercial word processor that can export ePub.  </p>
<p>Today Apple released an update to iWork 9.0.4 that provides ePub as one of the output formats in the Export menu, alongside PDF and Word.  Apple has also provided a <a href="http://support.apple.com/kb/HT4168">support page</a> describing the differences between ePub and PDF, and a very helpful <a href="http://images.apple.com/support/pages/docs/ePub_Best_Practices_EN.zip">Pages template for use in creating an ePub</a>.</p>
<p>I quickly took a stroll through the template and its output and so far I&#8217;m quite impressed.</p>
<p>The template provides a number of different default styles and headers.  The headers are critical; this is how Pages determines which items are chapter boundaries that should be given unique NCX entries.  Headers with the <strong>Chapter Name</strong> style mark the boundaries where content is chunked into discrete XHTML files.  The <strong>Chapter Subtitle</strong> style  will create a new nested TOC entry but not a new XHTML file.  This is sensible and should produce rich TOCs if used appropriately.</p>
<p>I modified the sample template just a bit to test out color and ensure that my changes were propagated into the epub:</p>
<p><a href="http://3press-blog.s3.amazonaws.com/test-document-in-pages.png"><img src="http://3press-blog.s3.amazonaws.com/sm-test-document-in-pages.png" alt="Test document in Pages" /></a></p>
<p>Then I went to the <strong>Export</strong> Menu, which now has an ePub option:</p>
<p><a href="http://3press-blog.s3.amazonaws.com/pages-export-screen.png"><img src="http://3press-blog.s3.amazonaws.com/sm-pages-export-screen.png" alt="Pages ePub export" /></a></p>
<p>and prompts you for some additional metadata, a nice touch:</p>
<p><a href="http://3press-blog.s3.amazonaws.com/pages-metadata.png"><img src="http://3press-blog.s3.amazonaws.com/sm-pages-metadata.png" alt="Pages ePub metadata" /></a></p>
<p>The ePub file was valid, hooray.  I took a look at the OPF file:</p>
<pre class="brush: xml;">
&lt;dc:title&gt;ePub Best Practices for Pages 09-49-51&lt;/dc:title&gt;
&lt;dc:creator opf:role=&quot;aut&quot;&gt;Liza Daly&lt;/dc:creator&gt;
&lt;dc:contributor opf:role=&quot;bkp&quot;&gt;Pages v4.0.4&lt;/dc:contributor&gt;
&lt;dc:date&gt;2010-08-26&lt;/dc:date&gt;
&lt;dc:subject&gt;Business &amp;amp; Personal Finance&lt;/dc:subject&gt;
</pre>
<p>Nice use of <code>opf:role</code>, one of the additional types of <a href="http://blog.threepress.org/2009/11/27/practical-epub-metadata-authorship/">ePub authorship metadata that we recommend</a>.  The NCX file was also sane.</p>
<p>The CSS is a little bloat-y and unreadable but that&#8217;s typical of automated output from page-centric tools.  It&#8217;s no worse than InDesign&#8217;s:</p>
<pre class="brush: css;">
.s2{
	color: #000000;
	font-size: 75.0000%;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	letter-spacing: 0.0000em;
	margin-bottom: 1.2821%;
...
</pre>
<p>The default style produces some reasonable CSS for superscripts and subscripts, another nice touch:</p>
<pre class="brush: css;">
sup{
	font-size: 67%;
	vertical-align: 33%;
}
sub{
	font-size: 67%;
	vertical-align: -10%;
}
</pre>
<p>In future improvements I&#8217;d like to see the randomly-numbered classnames be transformed to something more human-readable.</p>
<p>Unfortunately I can&#8217;t say as many positive things about the XHTML:</p>
<pre class="brush: xml;">
&lt;div class=&quot;s2&quot;&gt;
  This document will show you how to use paragraph styles to create a publication that looks great..
&lt;/div&gt;
</pre>
<p>If those are paragraph styles, where are the paragraphs? It is not acceptable to use <code>&lt;div&gt;</code> where <code>&lt;p&gt;</code> is semantically accurate.  <strong>This must be corrected in future updates.</strong> </p>
<p>Uploading it to <a href="http://ibisreader.com/">Ibis Reader</a> produced good results, and the CSS &#8220;works&#8221;:</p>
<p><a href="http://3press-blog.s3.amazonaws.com/test-document-in-ibisreader.png"><img src="http://3press-blog.s3.amazonaws.com/sm-test-document-in-ibisreader.png" alt="Pages ePub output in Ibis Reader" /></a></p>
<p>I had a few random Pages documents lying around and I got decent ePub output from them too, even without using the styles found in the best-practices template. Those styles should be used on content of any length or complexity, if only to get the critical XHTML automatic chunking.</p>
<p>Overall I&#8217;m quite excited that there&#8217;s finally a commercial tool for normal humans that produces one-step valid ePub output. If the XHTML output is improved only to use <code>&lt;p&gt;</code> I&#8217;ll be able to recommend Pages without reservation.</p>
<p><em>The outputted ePub file: <a href="http://3press-blog.s3.amazonaws.com/test-from-pages.epub">test-from-pages.epub</a>.</em></p>
<p><em>Edited Friday August 27 to reflect some further exploration. Thank you to <a href="http://loud.anotherquietday.com/post/1019413113/pages-to-epub">Baldur Bjarnason</a> for identifying the div issue.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threepress.org/2010/08/26/test-driving-apple-pages-with-epub-export/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Easier EPUB Experimenting and Updating in iBooks</title>
		<link>http://blog.threepress.org/2010/08/19/easier-epub-experimenting-in-ibooks/</link>
		<comments>http://blog.threepress.org/2010/08/19/easier-epub-experimenting-in-ibooks/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 12:00:51 +0000</pubDate>
		<dc:creator>Keith Fahlgren</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[ebooks]]></category>
		<category><![CDATA[epub]]></category>
		<category><![CDATA[ibooks]]></category>
		<category><![CDATA[ipad]]></category>

		<guid isPermaLink="false">http://blog.threepress.org/?p=1558</guid>
		<description><![CDATA[The arrival of iBooks this year helped many people understand that ebooks were already capable of interesting experimentation, multimedia, and nuanced, thoughtful design. Many of iBooks’ strengths come directly from the fact that they wisely chose to base it on WebKit, the rendering engine core used in desktop browsers like Safari &#38; Chrome and mobile [...]]]></description>
			<content:encoded><![CDATA[<p>The arrival of iBooks this year helped many people understand that ebooks were <em>already</em> capable of <a href="http://blog.threepress.org/2010/06/24/javascript-and-interactivity-in-ibooks/">interesting</a> <a href="http://blog.threepress.org/2010/06/08/geo-aware-ebook-demo/">experimentation</a>, <a href="http://blog.threepress.org/2009/11/15/using-html5-video-in-epub/">multimedia</a>, and <a href="http://www.vqronline.org/blog/2010/06/08/vqr-ipad/">nuanced, thoughtful design</a>. Many of iBooks’ strengths come directly from the fact that they wisely chose to base it on <a href="http://webkit.org">WebKit</a>, the rendering engine core used in desktop browsers like Safari &amp; Chrome and mobile browsers for the iPhone, iPad, Android, and now Blackberry browsers. This makes it an attractive test platform for folks developing new and innovative content in EPUB, but many have <a href="http://answers.oreilly.com/topic/1918-how-ibooks-stores-user-bookmarks/">been</a> <a href="http://www.pigsgourdsandwikis.com/2010/04/updating-epub-tests-in-ibooks-on-ipad.html">frustrated</a> with the time and effort it takes to update EPUB content in iBooks on an iPad using the iTunes sync. This post outlines an easier approach for iteratively developing and testing changes to EPUB XHTML and CSS files in iBooks (1.1.2) without using iTunes.</p>
<p>Here&#8217;s a tweak to the XHTML of a chapter and the CSS used for <code>h1</code>s that I did quickly without having to make a new EPUB or use iTunes:</p>
<p><a href="http://blog.threepress.org/wp-content/uploads/2010/08/content_updates_without_itunes.png"><img src="http://blog.threepress.org/wp-content/uploads/2010/08/content_updates_without_itunes.png" alt="A screenshot from an iPad in iBooks show content modified without a sync" title="Updating iBooks without iTunes" width="799" height="541" class="alignnone size-full wp-image-1582" /></a></p>
<p>The key to this <span style="text-decoration: line-through;">hack</span> technique is the free (as in beer) <a href="http://www.macroplant.com/iphoneexplorer/">iPhone Explorer</a> application, which exposes the contents of your iPad like a USB drive (including resources for Apps). It has both a Mac and Windows version, but I’ve only tested these instructions on a Mac. Before starting, connect your iPad to your computer and iTunes. You should not be using automatic syncing (&#8220;Sync Books&#8221; is not checked).</p>
<p>To get started playing with a particular EPUB, sync the file onto your iPad, open the book once in iBooks, then close iBooks. Now you&#8217;re ready to start moving the files back and forth (iPhone Explorer is all drag and drop).</p>
<ol>
<li>Open iBooks to your Library (<strong>not</strong> a book).</li>
<li>Open iPhone Explorer (or hit Refresh if it was open, but this is occasionally flaky).</li>
<li>Expand [Your] iPad-&gt;Media-&gt;Books.</li>
<li>Find the <code>[XXXX].epub</code> you’re interested in and expand it until you find your XHTML content or CSS.</li>
<li>Drag the XHTML file or CSS you want to experiment with somewhere on your computer (perhaps your Desktop in the Finder) to edit.</li>
<li>Edit the file using something you like.</li>
<li>Drag the XHTML or CSS file back from your computer to the same location in iPhone Explorer.</li>
<li>Say &#8220;OK&#8221; to the &#8220;Overwrite?&#8221; dialog.</li>
<li>Open the book in iBooks to see the changes.</li>
</ol>
<p><a href="http://blog.threepress.org/wp-content/uploads/2010/08/how_to_update_content.png"><img class="alignnone size-full wp-image-1563" title="How content is updated without a sync into iBooks" src="http://blog.threepress.org/wp-content/uploads/2010/08/how_to_update_content.png" alt="A screenshot of updating content using iPhone Explorer" width="600" height="404" /></a></p>
<p>Now you’re ready to use steps 5–9 (closing the book in iBooks in between) to continue experimenting with the EPUB’s design or content.</p>
<p>It can occasionally be non-obvious which filename iBooks has assigned to your EPUB. Curious folks will want to play around with some of the other resources exposed in addition to the exploded EPUBs (check out <code>Books.plist</code>).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threepress.org/2010/08/19/easier-epub-experimenting-in-ibooks/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>JavaScript and interactivity in iBooks</title>
		<link>http://blog.threepress.org/2010/06/24/javascript-and-interactivity-in-ibooks/</link>
		<comments>http://blog.threepress.org/2010/06/24/javascript-and-interactivity-in-ibooks/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 15:36:06 +0000</pubDate>
		<dc:creator>Liza Daly</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[epub]]></category>
		<category><![CDATA[ibooks]]></category>
		<category><![CDATA[interactivity]]></category>
		<category><![CDATA[ipad]]></category>

		<guid isPermaLink="false">http://blog.threepress.org/?p=1519</guid>
		<description><![CDATA[iBooks supports JavaScript-based interactivity in EPUB content.  
I took some content from Cooking with Booze by James Bridle (a.k.a. George Harvey Bone).  It&#8217;s released under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 license, which means that this derivative work is as well.
I took one recipe and marked it up in EPUB:

I added some slightly [...]]]></description>
			<content:encoded><![CDATA[<p>iBooks supports JavaScript-based interactivity in EPUB content.  </p>
<p>I took some content from <a href="http://cookingwithbooze.org/">Cooking with Booze</a> by James Bridle (a.k.a. George Harvey Bone).  It&#8217;s released under a <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 license</a>, which means that this derivative work is as well.</p>
<p>I took one recipe and marked it up in EPUB:</p>
<p><a href="http://3press-blog.s3.amazonaws.com/cooking-with-booze1.png"><img src="http://3press-blog.s3.amazonaws.com/sm-cooking-with-booze1.png"/></a></p>
<p>I added some slightly useless annotations and illustrative images from Flickr (also under an Attribution license).  I then added some JavaScript-based event handlers.  If you tap on the hyperlinked items in the recipe, the annotation will fade in as a popup.  Tap on the annotation to dismiss it.</p>
<p><a href="http://3press-blog.s3.amazonaws.com/cooking-with-booze2.png"><img src="http://3press-blog.s3.amazonaws.com/sm-cooking-with-booze2.png"/></a></p>
<p>There are two kinds of annotations available: image popups and textual notes. Here&#8217;s a text note:</p>
<p><a href="http://3press-blog.s3.amazonaws.com/cooking-with-booze3.png"><img src="http://3press-blog.s3.amazonaws.com/sm-cooking-with-booze3.png"/></a></p>
<p>The JavaScript here is extremely simple, though I needed to use <code>webkitTransform</code> rather than normal positioning code because iBooks does not recognize <code>position: absolute</code> and the like:</p>
<pre class="brush: jscript;">
function popup() {
  var p = document.getElementById(this.id + '-popup');
  var top_of_el = this.offsetTop;
  p.style.opacity = 1;
  var new_y = p.offsetTop - top_of_el - 30;
  p.style.webkitTransform = 'translateY(-' + new_y + 'px) translateX(' + this.offsetLeft + 'px)';
}
function dismiss() {
  this.style.opacity = 0;
  var el = this;
  setTimeout(function () {
    el.style.webkitTransform = null;
  }, 1000);
}
/* Register the events */
var terms = document.getElementsByClassName('term');
for (var i=0; i &amp;amp;lt; terms.length; i++) {
  terms[i].addEventListener('click', popup);
}
var popups = document.getElementsByClassName('popup');
for (var i=0; i &amp;amp;lt; popups.length; i++) {
  popups[i].addEventListener('click', dismiss);
}
</pre>
<p>Here&#8217;s a sample of the XHTML:</p>
<pre class="brush: xml;">
1 wild &lt;a class=&quot;term&quot; id=&quot;turkey&quot;&gt;turkey&lt;/a&gt; breast
</pre>
<p>Some other nerdy details:</p>
<ol>
<li> The fade-in effect uses CSS3. I think the iBooks implementation may not be hardware-accelerated like Mobile Safari &#8212; it&#8217;s less smooth than the transitions on <a href="http://ibisreader.com/">Ibis Reader</a>, for example. </li>
<li> Inline script blocks do not work, which is not a bad thing. </li>
<li>Scripts are disallowed from accessing remote URLs. This means that ebooks that interact with remote data, like the <a href="http://blog.threepress.org/2010/06/08/geo-aware-ebook-demo/">geo-aware ebook</a>, do not work. Interestingly, this is one of the restrictions that  Baldur Bjarnason suggested might allow for safe JavaScript use in ebooks in a <a href="http://blog.threepress.org/2010/06/22/practical-interactivity-and-shaping-the-future-of-epub/#comment-3250">recent comment</a> on our post <a href="http://blog.threepress.org/2010/06/22/practical-interactivity-and-shaping-the-future-of-epub">Practical Interactivity and Shaping the Future of EPUB</a>. </li>
<li> iBooks caching is really annoying isn&#8217;t it?</li>
<li> I haven&#8217;t tried this on iBooks for iPhone.</li>
<li>I have no idea if JavaScript is allowed in the iBookstore&#8230;</li>
<li>&#8230;not that you need Apple&#8217;s permission to sell a DRM-free enhanced EPUB that users could load into iBooks themselves.</li>
</ol>
<p><a href="https://s3.amazonaws.com/3press-blog/javascript-in-epub.epub">Download the sample EPUB book</a>.  All content in the book is licensed under a Creative Commons license of some kind; the whole bundle should be considered <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0</a>.  </p>
<p>That said, I encourage commercial publishers to explore interactivity in EPUB, and it goes without saying that <a href="http://threepress.org/">we&#8217;d love to help</a>, whether it&#8217;s to provide glosses and annotations like those shown here, or interactive quizzes, or animation, or&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threepress.org/2010/06/24/javascript-and-interactivity-in-ibooks/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>Practical Interactivity and Shaping the Future of EPUB</title>
		<link>http://blog.threepress.org/2010/06/22/practical-interactivity-and-shaping-the-future-of-epub/</link>
		<comments>http://blog.threepress.org/2010/06/22/practical-interactivity-and-shaping-the-future-of-epub/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 21:00:47 +0000</pubDate>
		<dc:creator>Keith Fahlgren</dc:creator>
				<category><![CDATA[ebooks]]></category>
		<category><![CDATA[epub]]></category>
		<category><![CDATA[idpf]]></category>
		<category><![CDATA[interactivity]]></category>

		<guid isPermaLink="false">http://blog.threepress.org/?p=1512</guid>
		<description><![CDATA[The IDPF kicked off the next revision of EPUB with two days of face-to-face meetings in New York last week. I came away from the (lively, well-attended) meetings feeling very optimistic about the work ahead of us, as there was a humbling range of backgrounds and experience present in the room. That said, many of [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.idpf.org/">IDPF</a> kicked off the <a href="https://www.idpf.org/idpf_groups/epub21wg/IDPF-EPUB-WG-Charter-5-7-2010.html">next revision of EPUB</a> with two days of face-to-face meetings in New York last week. I came away from the (lively, well-attended) meetings feeling very optimistic about the work ahead of us, as there was a humbling range of <a href="http://activitypress.com/2010/06/22/magazines-get-behind-next-generation-epub-standard/">backgrounds</a> and experience present in the room. That said, many of the fourteen <q>Industry Problems</q> that the Working Group is chartered with <em>ameliorating</em> (<strong>not</strong> solving forever for everyone) will present real challenges.</p>
<p><span id="more-1512"></span></p>
<p>With the work on those challenges just starting, I was pleased to see that <a href="http://twitter.com/josephpearson">Joseph Pearson</a>, the creator of the <a href="http://monocle.inventivelabs.com.au/">Monocle</a> EPUB reader, had taken the time to start writing <a href="http://inventivelabs.com.au/weblog/post/my-long-good-natured-article-about-epub-2-1-part-1-of-3/">his thoughts about the challenges of solving the interactivity <q>Problem</q></a>. Joseph raises three concerns surrounding the work on interactivity: a need for scripting security, the lack of a defined interaction model, and the danger of document modification by reading systems. While I think that he raises two real problems that will need pragmatic solutions (the first two), we can acknowledge either problem and still get started on defining &#038; supporting more interactive content in EPUB.</p>
<p>In particular, it&#8217;s seems unnecessarily pessimistic to point to the current limitations of JavaScript&#8217;s security model as an insurmountable issue. Reading systems like iBooks, which hosts its own customized setup of the WebKit rendering engine, <a href="http://blog.threepress.org/2010/06/24/javascript-and-interactivity-in-ibooks/">already enable a secure, sandboxed JavaScript execution environment</a>. If the IDPF and the Working Group comes up with concrete use cases and requirements around scripting and security, those concrete needs may be the motivation that browser-makers require to get started on aligning broader emerging web standards with the needs of ereaders, especially browser-based readers like <a href="http://ibisreader.com">Ibis Reader</a> and Monocle. Existing work like Eli Grey&#8217;s <a href="http://github.com/eligrey/jsandbox">JSandbox</a> is promising in this regard.</p>
<p>As for the issue of defining the interface &#038; events that an interactive EPUB can hook into: yes, we&#8217;ll need that. It&#8217;s clear that a basic interaction model should be included in the new specification, but that doesn&#8217;t seem like an unrealistic goal at this time.</p>
<p>I don&#8217;t understand Joseph&#8217;s concern with document modification (as a major problem). EPUB Reading Systems that enable interactivity will need to be careful about keeping the EPUB internals consistent-enough to be usable. It will also be challenging to ensure that content is structured and provided inside interactive content to ensure accessibility for all readers. With luck, work from the <a href="http://www.w3.org/WAI/intro/aria.php">WAI-ARIA</a> folks will help guide us.</p>
<hr />
<p>I&#8217;d like to explicitly encourage Joseph and anyone interested in contributing to the future of EPUB (and digital reading in general) to <a href="https://www.idpf.org/membership/memberjoin.htm">join the IDPF</a> and contribute to the Working Group. In particular, I&#8217;d love to hear more voices from people creating digital content, especially outside of North America. </p>
<p>Explicitly: This is purely my own opinion. <a href="http://twitter.com/liza">Liza</a> has her own more informed and interesting thoughts on the topic and she&#8217;ll be actively participating in the Interactivity Subgroup and the Working Group in general.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threepress.org/2010/06/22/practical-interactivity-and-shaping-the-future-of-epub/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Interactivity in EPUB using JavaScript, HTML5 and CSS3: BEA/IDPF video posted</title>
		<link>http://blog.threepress.org/2010/06/02/interactivity-in-epub-using-javascript-html5-and-css3-beaidpf-video-posted/</link>
		<comments>http://blog.threepress.org/2010/06/02/interactivity-in-epub-using-javascript-html5-and-css3-beaidpf-video-posted/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 14:29:39 +0000</pubDate>
		<dc:creator>Liza Daly</dc:creator>
				<category><![CDATA[conferences]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[ebooks]]></category>
		<category><![CDATA[epub]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[interactivity]]></category>
		<category><![CDATA[talks]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.threepress.org/?p=1467</guid>
		<description><![CDATA[I re-recorded my talk at IDPF Digital Book as a video.  Getting the audio synced properly was no fun so I apologize for a few production issues.
Interactivity in EPUB
View more videos from lizadaly.

Here&#8217;s the executive summary of the talk:

 You can add interactivity to an EPUB book using either the &#60;object&#62; or &#60;script&#62; elements.
 [...]]]></description>
			<content:encoded><![CDATA[<p>I re-recorded my talk at IDPF Digital Book as a video.  Getting the audio synced properly was no fun so I apologize for a few production issues.</p>
<div style="width:425px" id="__ss_4390733"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/lizadaly/interactivity-in-epub" title="Interactivity in EPUB">Interactivity in EPUB</a></strong><object id="__sse4390733" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/playerv.swf?doc=epub-100602085847-phpapp02-video&#038;stripped_title=interactivity-in-epub&#038;autoplay=0" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse4390733" src="http://static.slidesharecdn.com/swf/playerv.swf?doc=epub-100602085847-phpapp02-video&#038;stripped_title=interactivity-in-epub&#038;autoplay=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">videos</a> from <a href="http://www.slideshare.net/lizadaly">lizadaly</a>.</div>
</div>
<p>Here&#8217;s the executive summary of the talk:</p>
<ul>
<li> You can add interactivity to an EPUB book using either the &lt;object&gt; or &lt;script&gt; elements.</li>
<li> Currently <em>object</em> has the best support, especially <a href="http://blog.threepress.org/2009/11/14/using-flash-video-in-epub/">using Flash in Adobe Digital Editions</a>.</li>
<li> The <em>script</em> element is specifically discouraged (though not disallowed) in EPUB 2.0.1, and no major reading system supports it. However, all browsers do!</li>
<li> The primary advantage of interactivity using <em>script</em> is that the content creator has the ability to manipulate every part of the ebook: all of the text, its layout, even potentially the user interface of the reading system itself. With <em>object</em> you can apply interactivity to just an arbitrary rectangle.</li>
<li> There is a great deal of interesting animation and even interactivity possible using CSS3, which <em>is</em> allowed in EPUB 2.0.1 and is supported by iBooks and <a href="http://blog.threepress.org/2010/04/02/designing-ebooks-for-epub-reading-engines/">other WebKit-based ereaders</a>.</li>
<li> Interactivity is also possible using JavaScript combined with the <a href="http://blog.threepress.org/2010/04/12/html5-for-publishers/">HTML5</a> <em>canvas</em> element, though <em>canvas</em> is not part of EPUB 2.0.1.</li>
<li> With access to JavaScript on mobile devices, ebooks can potentially gain access to information about the reading device itself, such as the location of the reader in the physical world, or the device&#8217;s orientation, or even add photos and video from the device&#8217;s camera.</li>
<li> Any ereader that allows JavaScript provides the ability for ebooks to access live data on the web.</li>
<li>The primary blocker for extremely rich interactive ebooks is ereader support, but by embedding browser-based reading systems like <a href="http://monocle.inventivelabs.com.au/">Monocle</a>, content creators can distribute such ebooks today.</li>
<li>It remains to be worked out how to handle JavaScript in larger ereading systems both safely and with proper fallbacks to non-interactive content.</li>
</ul>
<p>I&#8217;ll also be posting some of the example files used in the tutorial in a forthcoming post.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threepress.org/2010/06/02/interactivity-in-epub-using-javascript-html5-and-css3-beaidpf-video-posted/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>docbook2epub updated to version 1.0.2</title>
		<link>http://blog.threepress.org/2010/05/11/docbook2epub-updated-to-version-1-0-2/</link>
		<comments>http://blog.threepress.org/2010/05/11/docbook2epub-updated-to-version-1-0-2/#comments</comments>
		<pubDate>Tue, 11 May 2010 15:57:15 +0000</pubDate>
		<dc:creator>Liza Daly</dc:creator>
				<category><![CDATA[epub]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.threepress.org/?p=1463</guid>
		<description><![CDATA[Our Python script to convert from DocBook to ePub using the DocBook XSL has been updated to version 1.0.2.
I&#8217;ve added some command-line options to override the location of the DocBook XSL (previously it was stuck in a settings file) and to also point to an optional CSS file.


$ db2epub.py
Usage: db2epub.py docbook1.xml [docbook2.xml]... --xsl [DocBook XSL [...]]]></description>
			<content:encoded><![CDATA[<p>Our Python script to convert from <a href="http://docbook.org/">DocBook</a> to ePub using the <a href="http://docbook.sourceforge.net/release/xsl/current/doc/">DocBook XSL</a> has been updated to <a href="http://code.google.com/p/epub-tools/">version 1.0.2</a>.</p>
<p>I&#8217;ve added some command-line options to override the location of the DocBook XSL (previously it was stuck in a settings file) and to also point to an optional CSS file.</p>
<pre class="brush: plain;">

$ db2epub.py
Usage: db2epub.py docbook1.xml [docbook2.xml]... --xsl [DocBook XSL or customization] --css [css file]
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.threepress.org/2010/05/11/docbook2epub-updated-to-version-1-0-2/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Tutorial on building ePubs now freely available</title>
		<link>http://blog.threepress.org/2010/04/29/tutorial-on-building-epubs-now-freely-available/</link>
		<comments>http://blog.threepress.org/2010/04/29/tutorial-on-building-epubs-now-freely-available/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 14:16:49 +0000</pubDate>
		<dc:creator>Liza Daly</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[epub]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.threepress.org/?p=1458</guid>
		<description><![CDATA[My tutorial Build a digital book with EPUB, posted on IBM DeveloperWorks,  has been out for some time (November 2008!) but it has recently been updated with some minor corrections. It also no longer requires registration thanks to a policy change at DeveloperWorks.

]]></description>
			<content:encoded><![CDATA[<p>My tutorial <a href="http://www.ibm.com/developerworks/xml/tutorials/x-epubtut/index.html">Build a digital book with EPUB</a>, posted on IBM DeveloperWorks,  has been out for some time (November 2008!) but it has recently been updated with some minor corrections. It also no longer requires registration thanks to a policy change at DeveloperWorks.</p>
<p><a href="http://www.ibm.com/developerworks/xml/tutorials/x-epubtut/index.html"><img src="http://3press-blog.s3.amazonaws.com/ibm_tutorial.png" alt="EPUB Tutorial screenshot" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threepress.org/2010/04/29/tutorial-on-building-epubs-now-freely-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Threepress joins the IDPF board</title>
		<link>http://blog.threepress.org/2010/04/08/threepress-joins-the-idpf-board/</link>
		<comments>http://blog.threepress.org/2010/04/08/threepress-joins-the-idpf-board/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 19:30:14 +0000</pubDate>
		<dc:creator>Liza Daly</dc:creator>
				<category><![CDATA[epub]]></category>

		<guid isPermaLink="false">http://blog.threepress.org/?p=1398</guid>
		<description><![CDATA[I&#8217;m pleased to be joining the board of the International Digital Publishing Forum.
In my nomination statement I listed three outcomes for ePub that I&#8217;d like to see realized:


 EPUB must thoughtfully embrace the dramatic evolution in web technology that is represented by HTML5. Though HTML5 offers some intriguing semantic tagging, the most pressing issue is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m pleased to be joining the board of the <a href="http://idpf.org/">International Digital Publishing Forum</a>.</p>
<p>In my <a href="http://www.idpf.org/events/voting/ldalynomination3-10.htm">nomination statement</a> I listed three outcomes for ePub that I&#8217;d like to see realized:</p>
<blockquote>
<ul>
<li> EPUB must thoughtfully embrace the dramatic evolution in web technology that is represented by HTML5. Though HTML5 offers some intriguing semantic tagging, the most pressing issue is native support for HTML5 multimedia. Similarly, EPUB should offer guidelines for developing books with interactive components using JavaScript, a practice currently discouraged (though not prohibited) by the extant specification.
</li>
<li>
 Historical limitations in reading systems have led to the perception that EPUB has poor international character support. I have raised multiple tickets in the EPUB Working Group issue tracker related to better support of Asian languages. Implementers of ebooks and ereaders in non-Western languages should be provided with clear guidelines on how to correctly encode and style such books, before proprietary formats tailored to those languages chokes off global adoption of EPUB.
</li>
<li>
  Improved outreach into the wider content community. While EPUB was designed with ebooks in mind, it is also an excellent generic container for any structured document. I believe there is opportunity to promote the use of EPUB for newspapers, magazines, journals, and other kinds of content, using the existing install base of EPUB readers. Sponsoring example documents and best practices would encourage developers from those industries to consider EPUB for a wider set of use cases than just ebooks.
</li>
</ul>
</blockquote>
<p>Thank you to the member organizations, and I look forward to serving with the great team that&#8217;s already in place.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threepress.org/2010/04/08/threepress-joins-the-idpf-board/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>iBooks and ePub</title>
		<link>http://blog.threepress.org/2010/04/05/ibooks-and-epub/</link>
		<comments>http://blog.threepress.org/2010/04/05/ibooks-and-epub/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 16:09:23 +0000</pubDate>
		<dc:creator>Liza Daly</dc:creator>
				<category><![CDATA[epub]]></category>
		<category><![CDATA[ipad]]></category>

		<guid isPermaLink="false">http://blog.threepress.org/?p=1380</guid>
		<description><![CDATA[Now that I&#8217;ve got the hardware iPad, I was able to do some comprehensive reviews of the iBooks application and its treatment of the ePub format.


As noted earlier by Dave Thomas, when an ePub file is added to iTunes, the file is modified in place to add a file called iTunesMetadata.plist. This is really obnoxious, [...]]]></description>
			<content:encoded><![CDATA[<p>Now that I&#8217;ve got the hardware iPad, I was able to do some comprehensive reviews of the iBooks application and its treatment of the ePub format.</p>
<ol>
<li>
As <a href="http://twitter.com/pragdave/status/11450222873">noted earlier by Dave Thomas</a>, when an ePub file is added to iTunes, the file is modified in place to add a file called <code>iTunesMetadata.plist</code>. <em>This is really obnoxious</em>, but it doesn&#8217;t render the files invalid. You can look at the file to see the values that iTunes has derived from the metadata of the epub; initially it won&#8217;t be readable &#8212; change the file permissions, if that&#8217;s something you know how to do.</p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
&lt;plist version=&quot;1.0&quot;&gt;
&lt;dict&gt;
        &lt;key&gt;artistName&lt;/key&gt;
        &lt;string&gt;Doctorow, Cory&lt;/string&gt;
        &lt;key&gt;book-info&lt;/key&gt;
        &lt;dict&gt;
                &lt;key&gt;package-file-hash&lt;/key&gt;
                &lt;string&gt;47CC1BA0C40608D65C4F815788FBD10F&lt;/string&gt;
                &lt;key&gt;publisher-unique-id&lt;/key&gt;
                &lt;string&gt;urn:uuid:9bde0872-1ad5-11dd-b5b9-0018f369440e&lt;/string&gt;
                &lt;key&gt;unique-id&lt;/key&gt;
                &lt;integer&gt;336337745614362820&lt;/integer&gt;
        &lt;/dict&gt;
        &lt;key&gt;genre&lt;/key&gt;
        &lt;string&gt;lcsh: Novels&lt;/string&gt;
        &lt;key&gt;itemName&lt;/key&gt;
        &lt;string&gt;Little Brother&lt;/string&gt;
        &lt;key&gt;playlistName&lt;/key&gt;
        &lt;string&gt;Little Brother&lt;/string&gt;
        &lt;key&gt;releaseDate&lt;/key&gt;
        &lt;string&gt;2008&lt;/string&gt;
        &lt;key&gt;sort-artist&lt;/key&gt;
        &lt;string&gt;Doctorow, Cory&lt;/string&gt;
        &lt;key&gt;sort-artist-status&lt;/key&gt;
        &lt;integer&gt;3&lt;/integer&gt;
&lt;/dict&gt;
&lt;/plist&gt;
</pre>
</li>
<li>
<a href="http://3press-blog.s3.amazonaws.com/error.png"><img src="http://3press-blog.s3.amazonaws.com/error-sm.png" alt="" title="photo (2)" width="300" height="225" class="aligncenter size-medium wp-image-1385" /></a></p>
<p>As expected, you can add ePubs that <a href="http://blog.threepress.org/2010/04/01/itunes-and-malformed-epub/">won&#8217;t actually be readable in iBooks</a>. Most of the cases are totally understandable: missing container files and other severe problems. It also seems that omitting a dc:title is a fatal error.  All errors are reported generically as &#8220;This book cannot be opened,&#8221; so check with the <a href="http://threepress.org/document/epub-validate">ePub validator</a> to look for the real cause.
</li>
<li> One nice feature of <a href="http://feedbooks.com/">Feedbooks</a> content is the recommendations for related titles, with links directly to those ePub files.  In <a href="http://ibisreader.com/">Ibis Reader</a>, accessing an ePub file link will prompt you if you want to add that book to your library, and let you start reading right away. In iBooks, it will open Mobile Safari and then return an error.
</li>
<li>Hyperlinks, either internal to the book or external to the web, otherwise work normally.</li>
<li>Flash video does not work (of course). HTML5 <code>&lt;video&gt;</code> also does not work, though that&#8217;s outside of the spec and therefore unsurprising. I don&#8217;t know if it&#8217;s possible to embed multimedia into an iBook ePub using some other method.</li>
<li><em>[Edited to remove incorrect statement about justification; does seem to be under CSS control.]</em></li>
<li>CSS support seems good, as expected from a <a href="http://blog.threepress.org/2010/04/02/designing-ebooks-for-epub-reading-engines/">WebKit-based reading engine</a>. I haven&#8217;t rigorously tested it but I assume it will support CSS outside of the required ePub subset, just as a normal web browser would.</li>
<li>Embedded fonts don&#8217;t appear to work. This is consistent with @font-face not being supported on Mobile Safari. It was also what I expected.</li>
<li>Extremely long books with limited breaks seem to fail. At least, <a href="http://www.feedbooks.com/book/1232">Ulysses</a> does not work at all: page numbering is random, and reading the book is basically impossible.</li>
<li>
<p>Text that cannot be line-broken (like code) runs off the screen. This is true of both portrait and landscape mode:</p>
<p><a href="http://3press-blog.s3.amazonaws.com/longtext.png"><img src="http://3press-blog.s3.amazonaws.com/longtext-sm.png" alt="" title="photo" width="300" height="225" class="aligncenter size-medium wp-image-1381" /></a>
</li>
<li>Tables sometimes break in the middle of text when paginating. (In Ibis Reader we try to ensure that text doesn&#8217;t get cut off even when it occurs inside a table.)</li>
<li>My favorite test book looks fine:<br />
<a href="http://3press-blog.s3.amazonaws.com/abyss.png"><img src="http://3press-blog.s3.amazonaws.com/abyss-sm.png" alt="" title="photo (1)" width="300" height="225" class="aligncenter size-medium wp-image-1382" /></a>
</li>
</ol>
<p>Overall I&#8217;d say iBooks is pretty good for a first-generation ePub reader. The biggest concern is of course that once you purchase books from iTunes, you&#8217;re locked in to only reading them in iBooks.</p>
<p>I also hope to see an ePub style guide from Apple to help publishers and designers understand more fully what is and isn&#8217;t supported in iBooks.</p>
<p><em>Update: <a href="http://www.pigsgourdsandwikis.com/2010/04/ibooks-on-ipad-first-glance.html">Liz Castro has some good observations too</a>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threepress.org/2010/04/05/ibooks-and-epub/feed/</wfw:commentRss>
		<slash:comments>62</slash:comments>
		</item>
	</channel>
</rss>
