SlideShare una empresa de Scribd logo
1 de 45
Descargar para leer sin conexión
Advanced EPUB creation for iPad with Adobe InDesign CC
Douglas Waterfall | Architect, InDesign Engineering (douglas.waterfall@adobe.com)	


© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
The Perils Of Asking An Engineer To Explain How It Works…

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
How To Find The List Of EPUB Changes In CC

helpx.adobe.com/pdf/InDesign_EPUB_Changes_from-CS6-to-CC.pdf	

helpx.adobe.com/pdf/InDesign_EPUB_Changes_CC_9.0_to_9.2.pdf

Soon!

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Mapping InDesign To EPUB

§ 

The history of EPUB within InDesign

§ 

Our Mapping Philosophy

§ 

A Peek Behind the Curtain:
§ 
§ 

CSS

§ 
§ 

HTML Markup
Packaging

Questions
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
The history of EPUB within InDesign	


© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Continuing to build on more than seven years of EPUB creation…

InDesign CS3

InDesign CS4

2007

2008

Initial support for
EPUB export via
script

‘Export for Digital
Editions’

InDesign CS5
2010

InDesign CS5.5
2011

Complete rewrite of
EPUB export to now
be native feature of
InDesign

InDesign CS6
2012

First EPUB3
support

InDesign CC (9.1)

InDesign CC (9.2)

2013

2014

More than 30 new
and enhanced
EPUB features

More Good
Stuff

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Our Mapping Philosophy	


© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Our Mapping Philosophy (cont)
§ 

Be realistic about what we can and cannot control

§ 

Prefer vanilla EPUB over device specific versions

§ 

Semantic markup is more important than making it look like InDesign

§ 

Prefer 1:1 mapping of attributes to CSS properties

§ 

Map as much of InDesign’s document paradigm as we can

§ 

Add EPUB specific controls over our markup & CSS & packaging

§ 

Continue to reduce the number of reasons you have edit the EPUB

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
A Peek Behind The Curtain:
HTML Markup	


© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
HTML Markup
§ 

<body> tag

§ 

Objects & Groups

§ 

Object Content

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: <body> tag

<body id=”myINDDFileName" xml:lang="en-US”>

§ 

What is up with the id?
§ 
§ 

§ 

Based on the filename of the INDD file
Why is it there?

Language calculation

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Objects & Groups: These Are All Objects

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Objects & Groups

<div class=“myObjectClass myExtraClass”>
some content
</div>
§ 

Tag and Class come from
Object Style Export Tagging
Tab
§ 

Multiple classes allowed, only
first will be be used to Emit
CSS

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Object Content

Graphics

Audio & Video

Text

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Graphics

<div class=“myObjectClass myExtraClass”>
<div class=“myClass
<img src="image/dog.jpg" alt=”Rover”/>
</div>

§ 

Alt Text comes from the Object Export Options Dialog

§ 

The Image is created from the Graphic to be EPUB compatible and with
the desired resolution.

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Graphic Conversion

§ 
§ 
§ 

Controlled by Export Dialog Image Tab
Rotation and Scaling flatten into the new image
But happened to the blue stroke?

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Graphics - Preserve Appearance From Layout
§ 

Object and Content are different both in InDesign and HTML
§ 

§ 

The blue stroke was on the Object not the Graphic

To make the generated image include the Object Graphic Attribute use
Preserve Appearance From Layout in the Export Dialog Image Tab.
§ 

In some cases InDesign will do this automatically – ex: Text On Path on Image

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Graphics – (More) Preserve Appearance From Layout

§ 

What happens if the Object is Rotated?
§ 

Few EPUB2 Reading Systems support CSS transforms
Converted image (the red box) “burns in” the rotation

§ 

Next update no longer forces this automatically

§ 

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Graphics – Why So Complicated?
§ 
§ 
§ 
§ 

InDesign supports more Graphic formats than EPUB
Graphics can be transformed and cropped in InDesign
Objects can be transformed and contain fill
Choices and Tradeoffs
§ 

Some advantages to having CSS handle stroke and fill on the Object
§ 

§ 

…though we currently don’t emit CSS for this

Next update will have an additional control to Use Existing Image

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Audio & Video
<div class=“myObjectClass myExtraClass”>
<video id="AUD_MW_E.264.mp4” poster="image/243.jpg”
autoplay="autoplay" controls="controls">
<source src="video/AUD_MW_E.264.mp4” type="video/mp4" />
</video>
</div>

•  Poster and autoplay come from the Media Palette
<div class=“myObjectClass myExtraClass”>
<audio id="bear.mp3” autoplay="autoplay" loop="loop”
controls="controls">
<source src="audio/bear.mp3" type="audio/mpeg" />
</audio>
</div>

•  Autoplay and loop also come from the Media Palette
•  Poster appears NOT to be emitted – something wrong there
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Text

§ 
§ 

Character Styles and Overrides
Paragraphs, Paragraph Styles and Overrides
§ 

Nested Styles
Lists

§ 

Anchored Objects

§ 

§ 
§ 

Tables
Other…

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Character Styles and Overrides
Hello, World!
<span class=“cRed” {xml:lang=}>
H
<span class=“CharOverride-1”>e</span>
llo
</span>
World!
§ 

§ 

§ 

Tag and class come from Character Style
Export Tagging Tab
User applied overrides are named
CharOverride-#
xml:lang is applied as tag attribute as
needed

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Paragraphs, Paragraph Styles and Overrides
Hello, World!
<p class=“myParaStyle ParaOverride-1”
{xml:lang=} {dir=}>
Hello, World!
</p>
§ 

Tag and class come from Paragraph
Style Export Tagging Tab
§ 

§ 

§ 

If no Class specified, the Style Name is
used.

User applied overrides are named
ParaOverride-#
xml:lang and dir are applied as
tag attributes as needed

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Paragraph/Nested Styles
Hello, World!
<p class=“myParaStyle”>
<span class=“cRed cItalic”>Hello</span>, World!
</p>
§ 

Nested Styles create the opportunity for more than one Character Style to be
applied on the same span.
§ 

Nested Style applies Character Style “cRed” to first word
User applies Character Style “cItalic” to same word

§ 

User Character Overrides could have been applied too

§ 

§ 

Which wins if both Character Styles specified a color…?

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Paragraph/Lists
•  Bullet 1
o  Nested Bullet
•  Bullet 2
<ul>
<li class=“bl”>Bullet 1
<ul>
<li class=“nbl”>Nested Bullet</li>
</ul>
</li>
<li class=“bl”>Bullet 2</li>
</ul>
§ 

InDesign Lists are controlled by a set of Paragraph Attributes
§ 
§ 

There is no internal hierarchy/level tracking mechanism
We calculate the hierarchy with a heuristic based on the Left Indent and the List
Attributes – do not use Tabs!
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Paragraph/Anchored Objects

§ 

Three types of Anchored Objects – Inline, Above Line and Custom
§ 

§ 

(Red <> shows the position of the anchor)

HTML markup rules constrain what we can do - no <div> in the middle of
paragraphs only <img>
§ 

Above Line and Custom have to be moved outside of the Paragraph
§ 

§ 

An example where we cannot maintain sematic mapping

Inline Objects must be rasterized as if Preserve Appearance From Layout – including
Text Frames!
§ 

What the difference between an Inline Glyph and Inline Graphic?

§ 

Be nice to have a control to deal with this ambiguity
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Tables

§ 

Tables cannot be a child of a <p> tag, same problem as <div>s
§ 

§ 

No Export Tagging support for Tables yet
§ 
§ 

§ 

§ 

Have to be moved outside of the Paragraph thus we cannot maintain sematic
mapping
No tag control needed anyway
Class named based on Table/Cell Style name

Table Styles can apply Cell Styles based on Regions, here we have left column
(red), right column (blue) and body rows (yellow)
User can also apply a Cell Style too – here it is green.
§ 

So more than one Cell Style/Class is possible, plus Cell Overrides too
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Markup: Other Text Markup
§ 
§ 
§ 

Hyperlinks
Cross References
Japanese Specific
§ 
§ 

Ruby
Tate-chu-yoko (TCY)

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
A Peek Behind The Curtain:
CSS	


© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
A Peek Behind The Curtain: CSS
CSS creates the visual styling within the framework of our markup
We create CSS by mapping InDesign Attributes to CSS Properties
§ 
§ 

Challenges
Style To Class Mapping Controls
§ 
§ 

§ 

Export Tagging Emit CSS
Export Dialog CSS Options

Special Topics

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
CSS: Challenges
§ 

CSS Properties are mere shadow of what InDesign Attributes can do
§ 

Over 255 InDesign Paragraph and Character Attributes alone!
Object Graphic Attributes, Media Attributes, Table Attributes…oh! my!

§ 

Those you think will behave the same do not – ex: Cell Strokes

§ 

§ 

Inconsistent CSS Property support by Reading Systems
§ 

§ 

Some CSS Properties are controlled by the Reading System
§ 

§ 
§ 

Ex: Lists, Ruby, TCY, Language, Direction

Not all Attributes are held by InDesign Styles
§ 

§ 

Font, color, text size, image size (ex: iBooks)

CSS Class Priority Order not the same as InDesign Style/Override Order
Some InDesign Attributes map to HTML markup and tag attributes
§ 

§ 

Ex: page-break-before, table headers & footers

Ex: Object width/height/transform, Table row height/column width, J Frame Grids

Should we map everything we can…and literally?
§ 

Ex: Paragraph Text Color, Pixrels vs Ems
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
CSS: Export Tagging Emit CSS

§ 

Emit CSS
§ 

Controls if we should create a CSS Class from the InDesign Style Attributes
Independent of the markup

§ 

Allows you to have two Styles map to one CSS Class

§ 

Style: “Red”
Class: “Blue”
Emit CSS: NO

Style: “Blue”
Class: “Blue”
Emit CSS: Yes
div.Blue { color: blue; }
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
CSS: Export Dialog CSS Options

§ 

Generate CSS – OFF
§ 

We will not create any CSS file
§ 

§ 

§ 

Expert users only…

We will not embed any fonts

Additional CSS
§ 

We just add your file to the package and link to every HTML file…after ours

§ 

Useful for customization
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
CSS: Special Topics

§ 

Objects
Text

§ 

Book

§ 

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
CSS: Special Topics/Objects
§ 

No Graphic Attribute Support yet…
§ 

§ 

Stroke, fill, rounded corners are up next

Width & Height & Transform are not InDesign Attributes
§ 
§ 

§ 

By default width-in-points is mapped to width-in-pixels
Mapped to _idGenPageItem-# Classes

CSS Specific Layout Controls
§ 

Gives more control over reflowable composition and positioning

§ 

Float/Alignment/Space Before & After/Page Break

§ 

Mapped to _idGenObjectLayout-# Classes

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
CSS: Special Topics/Text
§ 

Fonts
§ 

§ 
§ 

font-family:"Minion Pro", serif;

Paragraph Left/Right/First Indent and Space Before/After are in px
Some reasons for _idGen Classes
§ 

Text size in em @12pt = 1 em
§ 

Paragraph Style says 24 pts => font-size:2em;

§ 

Character Style says 24 pts => font-size:2em;

§ 

Oops: CSS font-size is inherited!
§ 

span._idGenCharOverride-1 {font-size:1em; }

§ 

Convert Lists To Text
Drop Caps

§ 

Nested Style order

§ 

§ 

Table & Cell CSS remains incomplete
§ 

Cell Strokes, Alternating Row & Column Strokes, Vertical Alignment

§ 

Table Style CSS not being generated
© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
CSS: Special Topics/Book
§ 

Books are just a simple collection of independent InDesign documents
§ 

§ 

An InDesign documents does not know that it is part of a particular Book

The Style Source defines the Styles which will become the CSS Classes
§ 

Make sure you Style Sync your documents and are thus all will be consistent

§ 

The first Style we see by a particular name “wins”

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
A Peek Behind The Curtain:
Packaging	


© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
A Peek Behind The Curtain: Packaging
§ 
§ 
§ 
§ 

Metadata
Font Embedding
Navigation Table Of Contents (aka TOC)
Splitting Document

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Packaging: Metadata
§ 

Where is this so called
Document Metadata?
§ 
§ 
§ 

§ 

Document XMP Data
File/File Info…/Description
For a Book export, the Style
Source document.

Here is the mapping:

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Packaging: Font Embedding
§ 
§ 

Adobe Legal
Subsetting
§ 

§ 

Obfuscation
§ 

§ 

Only put in code points for what was used
IDPF defined, uses the dc:identifier unique ID metadata

Compression
§ 

umh, make it smaller

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Packaging: Navigation Table of Contents (aka TOC)

§ 
§ 

Navigation TOC vs Document TOC
By “File Name”
§ 
§ 

§ 

Based on the names of the XHTML files we put in the package
Really only useful for Book

TOC Style
§ 

This is how to build a multi-level TOC
Can be different than the TOC Style used for the Print version

§ 

To create a single-level TOC, only put in one Paragraph Style in the TOC Style

§ 

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Packaging: Splitting Document

§ 

Why
§ 

Do Not Split
Based on Paragraph Style Export Tags

§ 

{ Paragraph Style }

§ 

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Questions?	

	

douglas.waterfall@adobe.com	


© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Más contenido relacionado

La actualidad más candente

Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Erin M. Kidwell
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)
Thinkful
 
The Art of WordPress
The Art of WordPressThe Art of WordPress
The Art of WordPress
COLAB
 

La actualidad más candente (10)

Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
 
Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3
 
SPA Editor - Adobe Experience Manager Sites
SPA Editor - Adobe Experience Manager SitesSPA Editor - Adobe Experience Manager Sites
SPA Editor - Adobe Experience Manager Sites
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)
 
Structuring Content in WordPress using Advanced Custom Fields
Structuring Content in WordPress using Advanced Custom FieldsStructuring Content in WordPress using Advanced Custom Fields
Structuring Content in WordPress using Advanced Custom Fields
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSS
 
CSS Designer Certification
CSS Designer CertificationCSS Designer Certification
CSS Designer Certification
 
The Art of WordPress
The Art of WordPressThe Art of WordPress
The Art of WordPress
 
Responsive Design
Responsive DesignResponsive Design
Responsive Design
 
CSS3 Media Queries
CSS3 Media QueriesCSS3 Media Queries
CSS3 Media Queries
 

Similar a Advanced EPUB creation for iPad with Adobe InDesign CC - Digital Book World 2014

CSS Methodology
CSS MethodologyCSS Methodology
CSS Methodology
Zohar Arad
 
Display Suite: A Themers Perspective
Display Suite: A Themers PerspectiveDisplay Suite: A Themers Perspective
Display Suite: A Themers Perspective
Mediacurrent
 
Content Management That Won't Rot Your Brain
Content Management That Won't Rot Your BrainContent Management That Won't Rot Your Brain
Content Management That Won't Rot Your Brain
Sean Cribbs
 
9 a0 056
9 a0 0569 a0 056
9 a0 056
Almo56
 

Similar a Advanced EPUB creation for iPad with Adobe InDesign CC - Digital Book World 2014 (20)

How else does Adobe help in HTML5 development?
How else does Adobe help in HTML5 development?How else does Adobe help in HTML5 development?
How else does Adobe help in HTML5 development?
 
Building a Custom Theme in Drupal 8
Building a Custom Theme in Drupal 8Building a Custom Theme in Drupal 8
Building a Custom Theme in Drupal 8
 
Scaling CQ5
Scaling CQ5Scaling CQ5
Scaling CQ5
 
Html & CSS - Best practices 2-hour-workshop
Html & CSS - Best practices 2-hour-workshopHtml & CSS - Best practices 2-hour-workshop
Html & CSS - Best practices 2-hour-workshop
 
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
 
CSS Methodology
CSS MethodologyCSS Methodology
CSS Methodology
 
OSGi Feature Model - Where Art Thou - David Bosschaert (Adobe)
OSGi Feature Model - Where Art Thou - David Bosschaert (Adobe)OSGi Feature Model - Where Art Thou - David Bosschaert (Adobe)
OSGi Feature Model - Where Art Thou - David Bosschaert (Adobe)
 
Display Suite: A Themers Perspective
Display Suite: A Themers PerspectiveDisplay Suite: A Themers Perspective
Display Suite: A Themers Perspective
 
Open Architecture in the Adobe Marketing Cloud - Summit 2014
Open Architecture in the Adobe Marketing Cloud - Summit 2014Open Architecture in the Adobe Marketing Cloud - Summit 2014
Open Architecture in the Adobe Marketing Cloud - Summit 2014
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
 
Let's Build a Custom Theme
Let's Build a Custom ThemeLet's Build a Custom Theme
Let's Build a Custom Theme
 
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty gritty
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
Write your Helm charts as a professional. Design templates and inheritance. B...
Write your Helm charts as a professional. Design templates and inheritance. B...Write your Helm charts as a professional. Design templates and inheritance. B...
Write your Helm charts as a professional. Design templates and inheritance. B...
 
Content Management That Won't Rot Your Brain
Content Management That Won't Rot Your BrainContent Management That Won't Rot Your Brain
Content Management That Won't Rot Your Brain
 
Designing True Cross-Platform Apps
Designing True Cross-Platform AppsDesigning True Cross-Platform Apps
Designing True Cross-Platform Apps
 
9 a0 056
9 a0 0569 a0 056
9 a0 056
 
Spectrum 2015 going online with style - an intro to css
Spectrum 2015   going online with style - an intro to cssSpectrum 2015   going online with style - an intro to css
Spectrum 2015 going online with style - an intro to css
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Último (20)

Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

Advanced EPUB creation for iPad with Adobe InDesign CC - Digital Book World 2014

  • 1. Advanced EPUB creation for iPad with Adobe InDesign CC Douglas Waterfall | Architect, InDesign Engineering (douglas.waterfall@adobe.com) © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 2. The Perils Of Asking An Engineer To Explain How It Works… © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 3. How To Find The List Of EPUB Changes In CC helpx.adobe.com/pdf/InDesign_EPUB_Changes_from-CS6-to-CC.pdf helpx.adobe.com/pdf/InDesign_EPUB_Changes_CC_9.0_to_9.2.pdf Soon! © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 4. Mapping InDesign To EPUB §  The history of EPUB within InDesign §  Our Mapping Philosophy §  A Peek Behind the Curtain: §  §  CSS §  §  HTML Markup Packaging Questions © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 5. The history of EPUB within InDesign © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 6. Continuing to build on more than seven years of EPUB creation… InDesign CS3 InDesign CS4 2007 2008 Initial support for EPUB export via script ‘Export for Digital Editions’ InDesign CS5 2010 InDesign CS5.5 2011 Complete rewrite of EPUB export to now be native feature of InDesign InDesign CS6 2012 First EPUB3 support InDesign CC (9.1) InDesign CC (9.2) 2013 2014 More than 30 new and enhanced EPUB features More Good Stuff © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 7. Our Mapping Philosophy © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 8. Our Mapping Philosophy (cont) §  Be realistic about what we can and cannot control §  Prefer vanilla EPUB over device specific versions §  Semantic markup is more important than making it look like InDesign §  Prefer 1:1 mapping of attributes to CSS properties §  Map as much of InDesign’s document paradigm as we can §  Add EPUB specific controls over our markup & CSS & packaging §  Continue to reduce the number of reasons you have edit the EPUB © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 9. A Peek Behind The Curtain: HTML Markup © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 10. HTML Markup §  <body> tag §  Objects & Groups §  Object Content © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 11. Markup: <body> tag <body id=”myINDDFileName" xml:lang="en-US”> §  What is up with the id? §  §  §  Based on the filename of the INDD file Why is it there? Language calculation © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 12. Markup: Objects & Groups: These Are All Objects © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 13. Markup: Objects & Groups <div class=“myObjectClass myExtraClass”> some content </div> §  Tag and Class come from Object Style Export Tagging Tab §  Multiple classes allowed, only first will be be used to Emit CSS © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 14. Markup: Object Content Graphics Audio & Video Text © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 15. Markup: Graphics <div class=“myObjectClass myExtraClass”> <div class=“myClass <img src="image/dog.jpg" alt=”Rover”/> </div> §  Alt Text comes from the Object Export Options Dialog §  The Image is created from the Graphic to be EPUB compatible and with the desired resolution. © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 16. Markup: Graphic Conversion §  §  §  Controlled by Export Dialog Image Tab Rotation and Scaling flatten into the new image But happened to the blue stroke? © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 17. Markup: Graphics - Preserve Appearance From Layout §  Object and Content are different both in InDesign and HTML §  §  The blue stroke was on the Object not the Graphic To make the generated image include the Object Graphic Attribute use Preserve Appearance From Layout in the Export Dialog Image Tab. §  In some cases InDesign will do this automatically – ex: Text On Path on Image © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 18. Markup: Graphics – (More) Preserve Appearance From Layout §  What happens if the Object is Rotated? §  Few EPUB2 Reading Systems support CSS transforms Converted image (the red box) “burns in” the rotation §  Next update no longer forces this automatically §  © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 19. Markup: Graphics – Why So Complicated? §  §  §  §  InDesign supports more Graphic formats than EPUB Graphics can be transformed and cropped in InDesign Objects can be transformed and contain fill Choices and Tradeoffs §  Some advantages to having CSS handle stroke and fill on the Object §  §  …though we currently don’t emit CSS for this Next update will have an additional control to Use Existing Image © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 20. Markup: Audio & Video <div class=“myObjectClass myExtraClass”> <video id="AUD_MW_E.264.mp4” poster="image/243.jpg” autoplay="autoplay" controls="controls"> <source src="video/AUD_MW_E.264.mp4” type="video/mp4" /> </video> </div> •  Poster and autoplay come from the Media Palette <div class=“myObjectClass myExtraClass”> <audio id="bear.mp3” autoplay="autoplay" loop="loop” controls="controls"> <source src="audio/bear.mp3" type="audio/mpeg" /> </audio> </div> •  Autoplay and loop also come from the Media Palette •  Poster appears NOT to be emitted – something wrong there © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 21. Markup: Text §  §  Character Styles and Overrides Paragraphs, Paragraph Styles and Overrides §  Nested Styles Lists §  Anchored Objects §  §  §  Tables Other… © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 22. Markup: Character Styles and Overrides Hello, World! <span class=“cRed” {xml:lang=}> H <span class=“CharOverride-1”>e</span> llo </span> World! §  §  §  Tag and class come from Character Style Export Tagging Tab User applied overrides are named CharOverride-# xml:lang is applied as tag attribute as needed © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 23. Markup: Paragraphs, Paragraph Styles and Overrides Hello, World! <p class=“myParaStyle ParaOverride-1” {xml:lang=} {dir=}> Hello, World! </p> §  Tag and class come from Paragraph Style Export Tagging Tab §  §  §  If no Class specified, the Style Name is used. User applied overrides are named ParaOverride-# xml:lang and dir are applied as tag attributes as needed © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 24. Markup: Paragraph/Nested Styles Hello, World! <p class=“myParaStyle”> <span class=“cRed cItalic”>Hello</span>, World! </p> §  Nested Styles create the opportunity for more than one Character Style to be applied on the same span. §  Nested Style applies Character Style “cRed” to first word User applies Character Style “cItalic” to same word §  User Character Overrides could have been applied too §  §  Which wins if both Character Styles specified a color…? © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 25. Markup: Paragraph/Lists •  Bullet 1 o  Nested Bullet •  Bullet 2 <ul> <li class=“bl”>Bullet 1 <ul> <li class=“nbl”>Nested Bullet</li> </ul> </li> <li class=“bl”>Bullet 2</li> </ul> §  InDesign Lists are controlled by a set of Paragraph Attributes §  §  There is no internal hierarchy/level tracking mechanism We calculate the hierarchy with a heuristic based on the Left Indent and the List Attributes – do not use Tabs! © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 26. Markup: Paragraph/Anchored Objects §  Three types of Anchored Objects – Inline, Above Line and Custom §  §  (Red <> shows the position of the anchor) HTML markup rules constrain what we can do - no <div> in the middle of paragraphs only <img> §  Above Line and Custom have to be moved outside of the Paragraph §  §  An example where we cannot maintain sematic mapping Inline Objects must be rasterized as if Preserve Appearance From Layout – including Text Frames! §  What the difference between an Inline Glyph and Inline Graphic? §  Be nice to have a control to deal with this ambiguity © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 27. Markup: Tables §  Tables cannot be a child of a <p> tag, same problem as <div>s §  §  No Export Tagging support for Tables yet §  §  §  §  Have to be moved outside of the Paragraph thus we cannot maintain sematic mapping No tag control needed anyway Class named based on Table/Cell Style name Table Styles can apply Cell Styles based on Regions, here we have left column (red), right column (blue) and body rows (yellow) User can also apply a Cell Style too – here it is green. §  So more than one Cell Style/Class is possible, plus Cell Overrides too © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 28. Markup: Other Text Markup §  §  §  Hyperlinks Cross References Japanese Specific §  §  Ruby Tate-chu-yoko (TCY) © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 29. A Peek Behind The Curtain: CSS © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 30. A Peek Behind The Curtain: CSS CSS creates the visual styling within the framework of our markup We create CSS by mapping InDesign Attributes to CSS Properties §  §  Challenges Style To Class Mapping Controls §  §  §  Export Tagging Emit CSS Export Dialog CSS Options Special Topics © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 31. CSS: Challenges §  CSS Properties are mere shadow of what InDesign Attributes can do §  Over 255 InDesign Paragraph and Character Attributes alone! Object Graphic Attributes, Media Attributes, Table Attributes…oh! my! §  Those you think will behave the same do not – ex: Cell Strokes §  §  Inconsistent CSS Property support by Reading Systems §  §  Some CSS Properties are controlled by the Reading System §  §  §  Ex: Lists, Ruby, TCY, Language, Direction Not all Attributes are held by InDesign Styles §  §  Font, color, text size, image size (ex: iBooks) CSS Class Priority Order not the same as InDesign Style/Override Order Some InDesign Attributes map to HTML markup and tag attributes §  §  Ex: page-break-before, table headers & footers Ex: Object width/height/transform, Table row height/column width, J Frame Grids Should we map everything we can…and literally? §  Ex: Paragraph Text Color, Pixrels vs Ems © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 32. CSS: Export Tagging Emit CSS §  Emit CSS §  Controls if we should create a CSS Class from the InDesign Style Attributes Independent of the markup §  Allows you to have two Styles map to one CSS Class §  Style: “Red” Class: “Blue” Emit CSS: NO Style: “Blue” Class: “Blue” Emit CSS: Yes div.Blue { color: blue; } © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 33. CSS: Export Dialog CSS Options §  Generate CSS – OFF §  We will not create any CSS file §  §  §  Expert users only… We will not embed any fonts Additional CSS §  We just add your file to the package and link to every HTML file…after ours §  Useful for customization © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 34. CSS: Special Topics §  Objects Text §  Book §  © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 35. CSS: Special Topics/Objects §  No Graphic Attribute Support yet… §  §  Stroke, fill, rounded corners are up next Width & Height & Transform are not InDesign Attributes §  §  §  By default width-in-points is mapped to width-in-pixels Mapped to _idGenPageItem-# Classes CSS Specific Layout Controls §  Gives more control over reflowable composition and positioning §  Float/Alignment/Space Before & After/Page Break §  Mapped to _idGenObjectLayout-# Classes © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 36. CSS: Special Topics/Text §  Fonts §  §  §  font-family:"Minion Pro", serif; Paragraph Left/Right/First Indent and Space Before/After are in px Some reasons for _idGen Classes §  Text size in em @12pt = 1 em §  Paragraph Style says 24 pts => font-size:2em; §  Character Style says 24 pts => font-size:2em; §  Oops: CSS font-size is inherited! §  span._idGenCharOverride-1 {font-size:1em; } §  Convert Lists To Text Drop Caps §  Nested Style order §  §  Table & Cell CSS remains incomplete §  Cell Strokes, Alternating Row & Column Strokes, Vertical Alignment §  Table Style CSS not being generated © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 37. CSS: Special Topics/Book §  Books are just a simple collection of independent InDesign documents §  §  An InDesign documents does not know that it is part of a particular Book The Style Source defines the Styles which will become the CSS Classes §  Make sure you Style Sync your documents and are thus all will be consistent §  The first Style we see by a particular name “wins” © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 38. A Peek Behind The Curtain: Packaging © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 39. A Peek Behind The Curtain: Packaging §  §  §  §  Metadata Font Embedding Navigation Table Of Contents (aka TOC) Splitting Document © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 40. Packaging: Metadata §  Where is this so called Document Metadata? §  §  §  §  Document XMP Data File/File Info…/Description For a Book export, the Style Source document. Here is the mapping: © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 41. Packaging: Font Embedding §  §  Adobe Legal Subsetting §  §  Obfuscation §  §  Only put in code points for what was used IDPF defined, uses the dc:identifier unique ID metadata Compression §  umh, make it smaller © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 42. Packaging: Navigation Table of Contents (aka TOC) §  §  Navigation TOC vs Document TOC By “File Name” §  §  §  Based on the names of the XHTML files we put in the package Really only useful for Book TOC Style §  This is how to build a multi-level TOC Can be different than the TOC Style used for the Print version §  To create a single-level TOC, only put in one Paragraph Style in the TOC Style §  © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 43. Packaging: Splitting Document §  Why §  Do Not Split Based on Paragraph Style Export Tags §  { Paragraph Style } §  © 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 44. Questions? douglas.waterfall@adobe.com © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
  • 45. © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.