This document provides an overview of adding JavaScript interactivity to iBooks and EPUB files, including:
- Examples of using JavaScript widgets in iBooks through tools like Dashcode and Tumult Hype.
- Details on creating JavaScript widgets from scratch for iBooks by including the required files and properties.
- An explanation of the EPUB 3.0 standard which enables JavaScript, and guidelines for progressive enhancement and fallbacks.
- A demonstration of cracking the DRM on iBooks files and creating fully interactive EPUB files from scratch using spine-level JavaScript according to the EPUB specifications.
2013년 11월, HTML5 융합기술 포럼 창립 기념 세미나 발표자료
전자출판표준인 EPUB3는 HTML5, CSS3, Java Script를 근간으로 한 일종의 프로파일링 표준이다. 왜 EPUB3를 개발하게 되었는지에 대한 배경과 HTML5의 킬러 애플리케이션으로서 전자출판 분야에 대한 역할과 기대를 설명한 자료이다.
A quick overview of the ePUB 3 format and various implementations of it in e-book publishing. This is the talk given at HTML5 meetup in Vancouver on April 12, 2012.
"세계 전자책 시장은 어떻게 움직이는가"를 읽고 만든 프레젠테이션입니다.
알게 모르게 우리 생활 곳곳에 전자책이 서비스되어지고 있고 글로벌 플랫폼과 각 나라의 정부는 전자책 산업을 잡기위해 부단한 노력을 하고 있습니다. 하지만 아직 일반인들에게는 "전자책"이란 단어가 생소하기만 합니다. 본 PT는 조금 더 많은 사람들에게 전자책에대해 알리고자 제작하였습니다.
이 책과 PT를 통해 아마존, 구글, 애플 등의 플랫폼 기업들의 전자책 전략과 각 나라별로 전자책 산업은 어떻게 진행되고 있는지 등의 포괄적인 전자책 산업 현황에 대해 알아보실 수 있습니다.
분명한 사실은 콘텐츠를 담는 그릇이 하나 추가되었을 뿐 그릇 자체가 바뀌지는 않습니다. 그릇에 크기가 변할지언정 전자책은 절대 종이책을 점령하지 않습니다. 종이책과 전자책은 상호 보완하며 더욱 발전할 것입니다.
끝으로 전자책 관련 일을 하면서 이와 같이 잘 정리된 책이 있었으면 좋겠다고 생각해왔습니다. 이 책의 저자이신 류영호 저자님께 감사드립니다.
Utilizing the full potential of ePub 3.0 feature set.
EPUB has been widely adopted as the format for digital books (eBooks), and these new specifications significantly increase the format's capabilities in order to better support a wider range of publication requirements, including complex layouts, rich media and interactivity, and global typography features. The expectation is that EPUB 3 will be utilized for a broad range of content, including books, magazines and educational, professional and scientific publications.
Social Media have given us the opportunity to share things we love with our friends, connect with people wherever they are in the world, follow our favourite brands, get informed, participate in communities, and so many other great possibilities!
On the other hand, there are concerns about safety and privacy on social networks.
The truth is that all things have pros and cons. It is up to us to use them wisely. So, here's a few tips on how to control your security and privacy on Facebook.
2013년 11월, HTML5 융합기술 포럼 창립 기념 세미나 발표자료
전자출판표준인 EPUB3는 HTML5, CSS3, Java Script를 근간으로 한 일종의 프로파일링 표준이다. 왜 EPUB3를 개발하게 되었는지에 대한 배경과 HTML5의 킬러 애플리케이션으로서 전자출판 분야에 대한 역할과 기대를 설명한 자료이다.
A quick overview of the ePUB 3 format and various implementations of it in e-book publishing. This is the talk given at HTML5 meetup in Vancouver on April 12, 2012.
"세계 전자책 시장은 어떻게 움직이는가"를 읽고 만든 프레젠테이션입니다.
알게 모르게 우리 생활 곳곳에 전자책이 서비스되어지고 있고 글로벌 플랫폼과 각 나라의 정부는 전자책 산업을 잡기위해 부단한 노력을 하고 있습니다. 하지만 아직 일반인들에게는 "전자책"이란 단어가 생소하기만 합니다. 본 PT는 조금 더 많은 사람들에게 전자책에대해 알리고자 제작하였습니다.
이 책과 PT를 통해 아마존, 구글, 애플 등의 플랫폼 기업들의 전자책 전략과 각 나라별로 전자책 산업은 어떻게 진행되고 있는지 등의 포괄적인 전자책 산업 현황에 대해 알아보실 수 있습니다.
분명한 사실은 콘텐츠를 담는 그릇이 하나 추가되었을 뿐 그릇 자체가 바뀌지는 않습니다. 그릇에 크기가 변할지언정 전자책은 절대 종이책을 점령하지 않습니다. 종이책과 전자책은 상호 보완하며 더욱 발전할 것입니다.
끝으로 전자책 관련 일을 하면서 이와 같이 잘 정리된 책이 있었으면 좋겠다고 생각해왔습니다. 이 책의 저자이신 류영호 저자님께 감사드립니다.
Utilizing the full potential of ePub 3.0 feature set.
EPUB has been widely adopted as the format for digital books (eBooks), and these new specifications significantly increase the format's capabilities in order to better support a wider range of publication requirements, including complex layouts, rich media and interactivity, and global typography features. The expectation is that EPUB 3 will be utilized for a broad range of content, including books, magazines and educational, professional and scientific publications.
Social Media have given us the opportunity to share things we love with our friends, connect with people wherever they are in the world, follow our favourite brands, get informed, participate in communities, and so many other great possibilities!
On the other hand, there are concerns about safety and privacy on social networks.
The truth is that all things have pros and cons. It is up to us to use them wisely. So, here's a few tips on how to control your security and privacy on Facebook.
Web Development with Delphi and React - ITDevCon 2016Marco Breveglieri
React is the library created by Facebook to manage user interfaces inside the famous social network. In this talk we'll se how you can develop Web applications with a highly dynamic and performing UI connected to a Web API provided by a Delphi backend.
Masterin Large Scale Java Script ApplicationsFabian Jakobs
Writing large desktop-like web applications is a challenge. Adapting such an application to different markets, languages or brands is even more of a challenge. This talk shows how the open source JavaScript framework qooxdoo can be leveraged to build such a rich internet application. As a real-life example the free web mail client gmx.com is used. This talk discusses the development model, customization and deployment of such an application.
Learn how JavaScript applications of this size and complexity are fundamentally different from classic web applications, and what issues come up when building fast, multi-language, multi-brand JavaScript applications.
Alfresco Share provides a rich platform for further development, allowing you to tweak and customize to your heart’s content, using only lightweight scripting and templating. But with great power, comes great responsibility, as they say. So this session looks at what it means to customize Share, before discussing how best to go about it, with tips and tricks based on real-world examples.
Building mobile apps with PhoneGap and BackboneTroy Miles
HTML5 at one point held the promise of being the unifying platform for desktop and mobile devices. Then big name companies turned their backs on the platform in droves. But don't don't despair, HTML5 isn't dead, in fact it is still a great choice for many mobile applications.
In this session, we will build a simple to understand but easy to enhance mobile app. We will use PhoneGap version 3.x, HTML5, CSS3, and JavaScript. While will be working on a Mac since it is required for iOS, users of other platforms should be able to follow along. The techniques show should also work with Windows Phone 8, Blackberry and other support PhoneGap platforms.
Similar to Hacking iBooks and ePub3 with JavaScript! (20)
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
Announcing the new 2.0 version of Codolex, the low code development solution for Delphi developers. This new version includes many enhancements and fixes, as well as a very exciting new pricing model. Check out the slides to learn more about the benefits of Codolex and why you need to elevate your Delphi development today.
Smart Contracts - The Blockchain Beyond BitcoinJim McKeeth
A smart contract is a program that runs on the blockchain. This session is a technical look at the blockchain and smart contracts from a programmer's perspective. We will start with the basics of the blockchain and work our way up through the EVM and smart contract standards. Then we will discuss alternative blockchains and the options they provide. While smart contracts are the basis of NFTs and Distributed Finance (DiFi), this session's focus is on technology and will explore many potential uses, including an introduction to Solidity and other smart contract programming languages.
Presented at the Boise Software Developers Group on September 12th, 2023
Rapid Prototyping Mobile IoT Projects with Arduino and Open HardwareJim McKeeth
Thanks to the rise of the Arduino and open source hardware it is much easier to prototype and built smart devices enabling the Internet of Things. Arduino comes with a useful Integrated Developers Environment (IDE) using Processing, C and C++ programming languages. It is easy to get started with simple projects proof of concepts.
Taking a proof of concept to the next stage involves communication between the Arduino, the mobile device and the cloud. This facilitates configuration, data gathering, and more. The connectivity is what makes the Internet of Things interesting.
Let’s take a look at some options in all the layers of rapidly prototyping an Internet of Things solution powered by Arduino, connecting to Android and iPhone smartphones, and sharing data in the cloud. Looking at the best way to put the pieces together quickly and effectively.
Day 5 of C++ Boot Camp - Stepping Up to MobileJim McKeeth
Day 5 of C++ Boot Camp - Stepping Up to Mobile
Introduction to the mobile platforms
Prototyping mobile apps on Windows
Using platform services
Conditional defines
The mobile compilers
Understanding ARC memory management
Deployment manager
Making the move to mobile
More info http://embt.co/2016cppbootcamp5
Creating Android Services with Delphi and RAD Studio 10 SeattleJim McKeeth
Creating Android Services with Delphi and RAD Studio 10 Seattle
Covers: Why Android Services, Services vs. Threads, Service Types, Service Wizard, Service Limitations, etc.
More information http://delphi.org/?p=2084
Embarcadero provides the only app development platform for mobile, desktop, and the Internet of Things. Reach iOS, Android, Windows, Mac and more all from one code base, with one team.
Computer-brain interface is a mainstay of science fiction, and devices are available today to use our brainwaves as a computer input. But is it practical? How far away is it? Will "Big Brother" read our thoughts and hack our brains?
In this class, we will dive into the future of thought as input for wearable devices with real-world examples and code. Demonstrations will be shown using the Emotiv EPOC headset, a revolutionary high resolution, neuro-signal acquisition and processing wireless neuroheadset that uses a set of sensors to tune into electric signals produced by the brain to detect thoughts, feelings and expressions.
You will see the EEG neuroheadset and computer interface with examples of interfacing with desktop, mobile and wearable apps. We will dive into the roots of the technology, showing code and examples along with big pictures of the technology. You will walk away with an understanding of how this still evolving and largely unknown technology really works, how it can be used, as well as longer-term implications.
Introduction to Android Development with JavaJim McKeeth
An introduction to the Android platform and how to develop for it with Java and the provided tools. Also covers best practices and some resources to aid in the development process.
Cover about half of the requirements for the Boise Scouts of America's Inventing Merit Badge - all of the "knowledge" requirements. Still need to do the activity requirements. Also good primer on inventing and intellectual property. Presented at Desert Code Camp 2011.
Here is a download link for the Keynote (original) http://dl.dropbox.com/u/2847329/Inventing%20Merit%20Badge.key and the PowerPoint (converted) http://dl.dropbox.com/u/2847329/Inventing%20Merit%20Badge.ppt - since the PowerPoint is converted from the Keynote it may not be exactly right. Be sure to review it first.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
Sidekick Solutions uses Bonterra Impact Management (fka Social Solutions Apricot) and automation solutions to integrate data for business workflows.
We believe integration and automation are essential to user experience and the promise of efficient work through technology. Automation is the critical ingredient to realizing that full vision. We develop integration products and services for Bonterra Case Management software to support the deployment of automations for a variety of use cases.
This video focuses on the notifications, alerts, and approval requests using Slack for Bonterra Impact Management. The solutions covered in this webinar can also be deployed for Microsoft Teams.
Interested in deploying notification automations for Bonterra Impact Management? Contact us at sales@sidekicksolutionsllc.com to discuss next steps.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
Here is something new! In our next Connector Corner webinar, we will demonstrate how you can use a single workflow to:
Create a campaign using Mailchimp with merge tags/fields
Send an interactive Slack channel message (using buttons)
Have the message received by managers and peers along with a test email for review
But there’s more:
In a second workflow supporting the same use case, you’ll see:
Your campaign sent to target colleagues for approval
If the “Approve” button is clicked, a Jira/Zendesk ticket is created for the marketing design team
But—if the “Reject” button is pushed, colleagues will be alerted via Slack message
Join us to learn more about this new, human-in-the-loop capability, brought to you by Integration Service connectors.
And...
Speakers:
Akshay Agnihotri, Product Manager
Charlie Greenberg, Host
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
Hacking iBooks and ePub3 with JavaScript!
1. Hacking iBooks and EPUB
with JavaScript!
Jim McKeeth
jim@mckeeth.org
@JimMcKeeth
2. What 400 Level Means
• Assumed understanding of JavaScript and HTML5 web technologies.
• More examples and less explanation.
• Please ask questions as we go.
3. About Jim McKeeth
• Lead Developer Evangelist for EmbarcaderoTechnologies
• Delphi XE5 creates native iOS & Android apps from same code
• Improvisational performer with ComedySportz Boise
• Inventor of pattern and swipe to unlock
• US Patent #s 6,766,456 & 8,352,745 . . . (First patented in 2000)
• Used on iOS,Android and Windows 8
4. Why Put JavaScript in a Book?
• Provide updated data to go
along with book topic
• Allow real time collaboration
between readers / students
• Create interactive story books
• Customize story to the reader
• Collect quiz responses
• Interesting animation effects
• Add games & bonuses
• Engage your readers
• Track readers
• Gather feedback
• Sky’s the limit!
6. More Information
• 4 Part Series on iBooks JavaScript Widgets
• http://sn.im/ibooksjs
7. iBooks Author 2
• Free in the Mac App Store
• Extension on ePub 3 standard (non-compatible)
• DRM and license only for iBooks on the iPad
• Nice powerful and easy interface for building books
• Be aware of orientations
8. iBooks / ePub Technical Details
• Zip file of HTML5 content adhering to specific spec.
• 2 GB technical book size limit
• 200 MB recommended size
• iBooks IBA files encrypt the page content
• All resources must be included!
9. 3D Models
• 20,000 to 50,000 moderately textured polygons
• Textures <= 1024x1024
• Use COLLADA (.dae) file format
• Specify a camera
• Simple lighting
• http://support.apple.com/kb/ht5093
10. 3D Models
• Trimble SketchUp Make
• www.sketchup.com
• Free version creates .dae 3D models that
work in iBooks Author
• http://www.sketchup.com/products/3D-warehouse
13. Dashcode
• JavaScript, HTML and CSS Editor
from Apple
• For creating Dashboard widgets
• Part of Xcode until Xcode 4.3
• Now a separate download: http://
bit.ly/Dashcode
Latest:“Late July” for
Aug 7, 2012 - 3.0.5
15. Things to Remember
1. Backwards compatibility on, or parts disappear.
2. The back of the widget never gets displayed.
3. Text doesn’t show up in the default image unless
you change the option in the inspector.
4. Dashcode text parts layout odd on the iPad.
5. Java and other plugins don’t work on the iPad.
16. Posting to Web Services
• External web services must implement CORS
• (Cross-Origin Resource Sharing) headers.
• enable-cors.org
• www.w3.org/TR/cors
17. Tumult Hype 2
• HTML5 & JavaScript Multimedia Studio
• Create JavaScript Powered Animations and Interactions
• Creates Widgets Directly
• Compatible with iBooks Author & the iPad
• $59.99 in Mac App Store (on sale $29.99 through Sept 10th)
19. Creating from Scratch
• Required files:
• Main.html - Main HTML file (any name
will work).
• Default.png – Preview image and place
holder.
• Info.plist – Property list describing
widget. References main HTML.
http://support.apple.com/kb/HT5068
22. Making a Package
• Put all files in a directory - Subdirectories are
OK (use relative paths for references).
• Rename root directory .wdgt
• Don’t Install Package! It gets deleted. Use
Duplicate to test.
• Context / Show Package Contents to edit.
23. Supported HTML5 Features
• localStorage (per book - between widgets)
• Geolocation (requests permission)
• Canvas
• CSS Animations
• Others . . .
24. Prevent Flicker
1. Add a IBNotifiesOnReady item set to true in the Dashboard widget's
info.plist file, so iBooks knows this Dashboard widget will tell it when to switch to
displaying the running HTML widget.
2. Set your Dashboard widget to load the Apple javascript library.
3. In javascript call widget.notifyContentIsReady() to notify iBooks it can
switch from showing the Default.png file to displaying the running HTML widget.
http://support.apple.com/kb/HT5068
26. Things to Remember
1. Double clicking a widget on desktop deletes it
(installs it into the library).
2. The aspect ratio of your Default.png
determine the aspect ratio of your widget.
3. All JavaScript libraries must be referenced from
the Main HTML file, and in the package.
27. bookry.com
• Custom Sliding Puzzle
• LiveTwitter Feed
• InteractiveTimeline Images
• YouTubeVideo
• VimeoVideo
• Google Maps
• Live Polling
• More to come . . .
• Auto-generated customized widgets ready to add to iBooks (or look
at the code to figure out how they did it.)
• Free license includes “branding”
See also ibooksgenerator.com
30. Creating an ePub from Scratch
No iBooks Author, no Dashcode, just text editing!
31. Disclaimer
• So far I have been unable to access online content
without using iBooks Author.
32. International Digital
Publishing Forum
• Develops and maintains the EPUB
content publication standard
• idpf.org/epub
• ePub 3.0 is current standard
• October 2011
• Official support for JavaScript
34. 2.4.1 Scripting Contexts
• container-constrained
• An instance of the [HTML5]
script element included in an
EPUB Content Document
that is embedded in a parent
Content Document using
one of the [HTML5] object,
iframe or embed elements.
• spine-level
• An instance of the [HTML5]
script element included in a
Top-level Content Document.
• JavaScript on the page itself!
•
iBooks Author widgets are
container-constrained
35. 2.4.2 Content Conformance
• A container-constrained script must not contain instructions to:
• modify the DOM of the parent Content Document
• modify other contents in the Publication
• manipulate the size of its containing rectangle
• Container-constrained scripts
36. 2.4.2 Content Conformance
• EPUB Content Documents that include spine-level scripting must
utilize the progressive enhancement technique:
• When rendered without scripting support document must retain
its integrity, remaining consumable by the User without any
information loss or other significant deterioration.
• Use fallbacks!
• iBooks doesn’t seem to allow network communications at spine-level
• Spine-level scripts
38. preventDefault
• Use to “override” the default behavior of the reading system.
• If you have a touch zone near the edge of the screen, this gives you
the touch event instead of turning the page.
• Turn off for whole document:
• document.addEventListener('touchmove', function (e) {e.preventDefault();},
false);
• In individual event handler:
• event.preventDefault();
39. ePub Samples
• Repository of ePub 3.0 sample documents
• http://code.google.com/p/epub-samples/
• See “Scripted Content Documents” under the “Feature Matrix”
40. ePub Format
• A zip file with epub extension
• mimetype must be the first file
in the zip
• Container.xml references the
opf file (which can be named
anything)
• All content files must be listed
in the opf file
• mimetype
• iTunesMetadata.plist
• META-INF
• container.xml
• OPS
• content.opf
• content files
Automatically
added by iTunes
but not needed.
41. mimetype
• First file in zip - uncompressed
• No Unicode signature or byte order mark
• Only contain
• application/epub+zip
44. Content OPF
metadata
•The metadata section describes the book
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:title id="title">JavaScript Test Book</dc:title>
<dc:description>Test of spine-level scripting</dc:description>
<dc:creator>Jim McKeeth</dc:creator>
<dc:identifier id="uid">8181AEF2-CD21-4FE6-9AE8-9A83572FF4D</dc:identifier>
<dc:language>en-US</dc:language>
<meta property="dcterms:modified">2012-09-11T12:47:00Z</meta>
<dc:rights>
Licensed under a Creative Commons Attribution 3.0 License.
</dc:rights>
<link
rel="cc:license" href="http://creativecommons.org/licenses/by-sa/3.0/"/>
</metadata>
45. Content OPF
manifest
•The manifest section must list all other files in the ePub.
•There must be exactly one with property “nav” and up to one “cover-image”
•The “scripted” property indicates the page executes JavaScript.
<manifest>
<item id="i" href="main.xhtml" media-type="application/xhtml+xml"
properties="scripted"/>
<item id="nav" href="nav.xhtml" media-type="application/xhtml+xml"
properties="nav"/>
<item id="prt" href="default.png" media-type="image/png"
properties="cover-image"/>
<item id="first" href="first.jpg" media-type="image/jpeg"/>
<item id="css" href="ro.css" media-type="text/css"/>
<item id="scrpt" href="main.js" media-type="application/javascript"/>
<item id="jq" href="jQuery.js" media-type="application/javascript"/>
</manifest>
46. Content OPF
spine
•Must list all “sections” on the spine. Includes chapters, preface, glossary, etc.
•The idref value is defined in the manifest section
<spine>
<itemref idref="i"
properties="rendition:layout-reflowable
rendition:spread-auto"/>
</spine>
47. Zipping an ePub
• zip -X ../epubfile.epub mimetype
• zip ../epubfile.epub META-INF/*
• zip -r ../epubfile.epub OPS/*
• unzip -l ../epubfile.epub
http://idpf.org/epub/30/spec/epub30-ocf.html
mimetype must be the
first file (uncompressed).
Any folder(s) with
“content”
Lists the contents for
verification
49. iBooks Fixed Layout Format
• Use a separate XHTML document for each Fixed Layout page.
• Use CSS relative and/or absolute positioning to place text and images
on a page.
• Include the height and width of the page in a viewport meta tag in
the head of each XHTML document. (used for aspect ratio)
<head>
<title>Fixed Layout Example</title>
<meta content="text/html; charset=UTF-8"/>
<link href="css/stylesheet.css" type="text/css" rel="stylesheet"/>
<meta name="viewport" content="width=575, height=432"/>
</head>
52. iBooks DRM Decrypt
• iTunes 10.5.3.3 x64 (as close as possible)
• http://www.oldversion.com/windows/itunes/
• Requiem 3.3.6
• https://tag3ulp55xczs3pn.onion.to/ (viaTor)
M
ustbe
these
versionsworkingtogether.
Run
itin
an
XPVirtualM
achine.
53. Other ePub Books
• Calibre
• http://calibre-ebook.com/ (eBook conversion and management)
• DeDRM plugins
• http://apprenticealf.wordpress.com/ 6.05 is latest
54. Other Possible Resources
• Threepress Consulting Blog
• http://blog.threepress.org/
• ePub Straight to the Point by Elizabeth Castro
• http://www.elizabethcastro.com/epub/
Have not read, but
was recommended.
55. More Information
• 4 Part Series on iBooks JavaScript Widgets
• http://sn.im/ibooksjs
• Might become an iBook
• jim@mckeeth.org or @JimMcKeeth