• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Html5 and-ebook

on

  • 12,446 views

XHTML is dead. Let's move EPUB to HTML5. Presented at COSCUP/GNOME.Asia 2010.

XHTML is dead. Let's move EPUB to HTML5. Presented at COSCUP/GNOME.Asia 2010.

Statistics

Views

Total Views
12,446
Views on SlideShare
12,156
Embed Views
290

Actions

Likes
10
Downloads
332
Comments
1

2 Embeds 290

http://infuture.pixnet.net 285
http://webcache.googleusercontent.com 5

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • WebKit <br /> ...... <br /> external/webkit/WebCore/platform/graphics/MediaPlayer.cpp (just an interface) <br /> -> <br /> external/webkit/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp <br /> -> <br /> WebView <br /> frameworks/base/core/java/android/webkit/HTML5VideoViewProxy.java &#xA0;(Create a VideoView, an then switch to this VideoView) <br /> -> <br /> VideoView <br /> frameworks/base/core/java/android/widget/VideoView.java <br /> -> <br /> frameworks/base/core/media/java/android/media/MediaPlayer.java <br /> -> <br /> Media Framework <br /> frameworks/base/media/jni/android_media_MediaPlayer.cpp <br /> -> <br /> frameworks/base/media/libmedia/mediaplayer.cpp <br /> -> <br /> frameworks/base/media/libmediaplayerservice/MediaPlayerService.cpp <br /> -> <br /> OpenCORE <br /> external/opencore/android/playerdriver.cpp (PV player) <br /> <br />
  • <br />
  • <br />

Html5 and-ebook Html5 and-ebook Presentation Transcript

  • eBooks and HTML5 Koan-Sin Tan freedom@computer.org COSCUP/GNOME.Asia , Aug 14, 2010
  • Outline • The Real Raising of eBooks • Ebook standards and Functions/Features? • What HTML5 can help? • iBooks.app: reader supports HTML5 • UIWebView and WebView • Summary
  • http://www.nytimes.com/2010/08/12/business/media/12bookstore.html
  • eBook Standards • Text file: Project Gutenberg started in 1971! • HTML • CHM • PDF • Kindle: azw (mobipocket’s XHTML-based format, .mobi, .prc) • ePUB: from International Digital Publishing Forum (IPDF), XHTML
  • eBook Features • Search, carry-around, variable font size, instantaneous delivery, reflowable • Annotation and highlight • Dictionary • Social networking: twitter and facebook • Embedded Audio/Video • DRM(?)
  • EPUB format • A zip file with .epub suffix • XML to describe metadata • toc.ncx, content.opf • XHTML 1.1+CSS to describe real contents • Current EPUB specs: 2.0 (2006/2007), 2.0.1 (2010)
  • What are lacking? • IPDF chartered a working group to work on EPUB 2.1this April. 13 main problems are identified 1. Rich media and interactive 2. CJK: no, not just UTF-8. Some still prefer vertical writing. Somebody wanna have <ruby> 3. Article as atomic unit for magazines (previously, EPUB is more book-centric) 4. .... • As we can see, many of the problems can be mitigated by HTML5 • http://www.idpf.org/idpf_groups/IDPF-EPUB-WG- Charter-4-6-2010.html
  • • Vertical writing, only supported by IE • <ruby>
  • <ruby> on iOS4 and Froyo
  • What Else? • “HTML5 ~= HTML+CSS+JS APIs” • Rich media and interactivity • <audio>, <video>, and other JS APIs, such as <canvas> • Cloud Computing? • Put large amount of data to datacenter and do lots of computation in datacenter • Always on, always connected? • That’s not always true. Even that’s true. You may wanna read stuff offline sometimes • Things such as Web Storage and Web SQL can help offline operations • JS engines are improving their performance: HTML5-based ebook reader? • WebKit everywhere: Android, iPad, Kindle 3, etc.
  • iBooks.app • The best EPUB reader that “supports” HTML5 now • no, not UIWebView-based. Surely, it’s WebKit-based • XHTML5: <audio>, <video>, <canvas>, <svg>, geolocation, etc. Even contenteditable works a bit in iBooks • JavaScript • Many CSS3 features • .epub books are deflated in iTunes on your Mac/Windows, then sync to your iPhone/iPad • Limitations: XTHML5, iTunes
  • <video>, <canvas>, and Geolocation in iBooks
  • XHTML5 • Draconian
  • .epub on iPad/iPhone • .epub files are located in ~/Music/iTunes/iTunes Music/ • Since Jailbreak is legal now, why don’t ssh into your iPhone
  • UIWebView and WebView • Some open source guys just don’t like closed platforms, such iPhone/iPad. • Well, thanks Google and other guys, you have Android and other platforms • On iPhone you got UIWebView, if you add a UIWebView to your application , you got almost everything you want: <video>, <canvas>, etc. • On Android, it’s a bit trick. • JavaScript is not enabled by default • <video> doesn’t work • <svg> is not enabled/compiled before GingerBread
  • Aldiko and JavaScript Enabled
  • How <video> works in Eclair/Froyo Application Framework WebView VideoView WebKit Media Framework Libraries OpenCORE figure from herbage@gmail.com 22 video and audio
  • Summary • XHTML is kinda dead. eBooks should move to HTML5 • WebKit is everywhere (on embedded devices) • JS engines, such as V8, are getting more and and acceptable • JS APIs, such as Web Storage, can help create cross- platform eBook readers • Of course, when necessary, you can use Java/ Objective-C
  • 24