About

Synopsis Excerpt Contents Index Contact Me Buy Now

Index

A

accented characters 151

Adobe Digital Editions 14

cover icon in 114, 115, 117

metadata display 108

navigational TOC in 98

title display in 105

advanced formatting 129–186

adding video 183–186

alignment 172

backgrounds 169–170

borders 169–170

drop caps 159–162

fonts 138–153

hyphenation 171–172

images 173–178

wrapping text around 175–176

indents 164

inheritance 135–186

insisting on CSS 130

keeping elements together 155–158

links 179–180

orphans and widows 155–158

page breaks 155–158

short lines 165–168

sidebars

creating 169–170

wrapping text around 177–178

small caps 159–162

spacing 163

tables 181–182

a element, for links 179

alignment 154, 172

alternate fonts 140

Arabic font 151

arrows 151

author, entering in InDesign 81

B

backgrounds 169–170

Barebones Software 31

Barnes & Noble Nook. See Nook

BBEdit 31, 94

borders 169–170

bulleted lists 49, 132

C

caching on iPad, and title 120

captions, keeping with images 156–157

chapter breaks. See also page breaks

automatic in InDesign 89

character set. See language

Chinese font 151

closing slash, add to Word files 43

CMYK images in EPUB files 82

content.opf file 103–119

book title 104

contents of book 109

cover of ebook 115

date 106

graphic 118

guide section 111–112

language of book 106

manifest section 109–110

metadata section 104–119

order of book’s elements 110

spine section 110–111

unique id 105

copyright

adding metadata in InDesign 81

specifying in content.opf file 107

cover of ebook 113–118

adding with iTunes 113

size 113

cross-references, in InDesign 73–75

CSS

and EPUB 14

display: inline-block 155–158

ensuring ereaders use yours 130

first-letter pseudo selector 159–160

first-line pseudo selector 160–186

float property 175, 177

for borders and backgrounds 169–170

generated by InDesign 132–137

importing embedded fonts 153–186

inheritance 135–186

inside EPUB file 96–97

min-width property 182

moving to separate file in Word 33

orphans 155–158, 157

page break properties 155–158, 158

sibling selectors to control indents 164

small caps 162–186

text-indent property 165–168

widows 155–158, 157

width property 174, 176, 178

D

dashes. See hyphenation

date

in content.opf file 106

InDesign bug 81

dc:date element, in content.opf file 106

dc:identifier element, in content.opf file 105

dc:language element, in content.opf file 106

dc:title element, in content.opf file 104

dingbats 150–151

DRM (Digital Rights Management) 95

drop caps 159–162

in InDesign 57–60

dtb:uid meta element, in content.opf file 105

Dublin Core Metadata

elements 106–107

specification 104

E

ebook. See EPUB, iBooks

sales 7

vs print vs website 8–13

embedding fonts 152–155

in InDesign 84

in Word 34

encryption.xml, file 95

EpubCheck, for validation 126–128

EPUB file 91–128

advanced formatting 129–186

cleaning up from InDesign 131–137

content.opf file 103–119

copying to iPad 122–123

description 14

DRM 95

editing 124–125

encryption.xml 95

files that make up 94–112

Kindle, converting for 128

OEBPS folder (contents) 95–96

organizing contents 119–120

rezipping after edits 120–121

unzipping 92–93

validating 126–128

writing from scratch 91–128

XHTML and CSS 96–97

zipping and testing 119–128

ereaders. See also iBooks, Stanza, Adobe Digital Editions

description 14

Export Book for Digital Editions, option 83

Export Book to EPUB, option 87

exporting to EPUB

from InDesign CS4 83–86

from InDesign CS5 87–90

from Word (roughly) 28–44

F

Filtered HTML, option in Word 29

first-letter pseudo selector 159–160

first-line pseudo selector 160

Flash vs HTML5 183

float property, in CSS 175, 177

@font-face rule 153–154

fonts in ebooks 138–153

available for iPad 141–149

choosing 138–140

crippled in iBooks 140

workaround 140

embedding 152–155

generic 139

non-English 151–152

specify alternate 140

specify by name 138–139

specify by style 139

G

GREP 31, 41, 94

guide, in content.opf file 111–112

and cover of ebook 116

H

H.264 compression 183

headers, controlling position 156

Hebrew font 151

HTML. See also XHTML

and EPUB 14

cleaning up Word files 31

generating with Word 28–30

in ebooks vs websites 8

HTML5 vs Flash 183

HTML, XHTML, and CSS: Visual QuickStart Guide, 6th Edition 129

hyperlinks 71–73

creating 72–73

destination, creating 71–72

hyphenation 171–172

and Stanza 172

and tables 181

I

Ibis Reader 14

iBooks

alignment 172

anatomy of page 16–17

and iBookstore 13

borders and backgrounds 169

bugs

autoplay video 185

images shrunk in columns 182

styles in different rules 149

video 184

caching of EPUB files 120

cover icon 116

default font size 134

dictionary 106

dingbats 150

DRM 13

first page shown 111

fonts

crippled support for 140

embedded, no support for 17, 153

names for 134

non-English 151

workaround 140

guide in 116

hyphenation 171

justification 172

keeping elements together 155–157

link display 180

metadata display 108

opening book in 123

ornaments 150–152

page breaks 155–157

searching in 11

specifying author in 107

symbols 150

tables in 181–182

titles in 105

validating EPUB for 126

video in 183–185

width property in CSS 175

iBookstore 13

IDPF 7, 14

images 173–178

adding to InDesign 61–69

and captions 67–71

and file names 62

keeping caption with 156–157

placing in InDesign 62–64

wrapping text around 64–70, 175–176

Images options

in InDesign CS4 85

in InDesign CS5 88

!important, in CSS 130, 164, 166, 169

indents, controlling 164

InDesign

adding images 61–69

adding links 70–75

automatic chapter breaks 89

bugs

broken links 70, 82

date missing 81

erroneous em conversion 163

cleaning up EPUB files 131–137

creating EPUBs with 45–90

about 46–47

cross-references 73

CSS generated by 132–137

exporting EPUB 82–90

from CS4 83–86

from CS5 87–90

inheritance 135–186

metadata 80–81

one file or many 47

styles 48

XHTML generated by 131–132

inheritance, InDesign vs CSS 135–137

initial page of ebook 111

iPad. See also iBooks

page, anatomy of 16

resolution 17

ISBN

in content.opf file 105

in toc.ncx file 99

iTunes, copying EPUB files to iPad 122

J

Japanese font 151

justification forced by Apple in iBooks 1.1 172

workaround 154

K

keeping elements together 155–158

Kernest.com 153

Kindle 14

converting from EPUB 128

L

language

declared by InDesign 132

declaring in content.opf file 106

declaring in Word file 41

left text alignment 154

linked styles, in Word 36

links

creating by hand 179–180

in InDesign 70–75

styles for 70–71

lists 49, 132

local formatting

description 53

replacing in InDesign 53–57

M

magic images 173

manifest 109–110

and cover of ebook 115

mathematical symbols 151

max-width property 114

metadata

displayed by ereaders 108

in content.opf file 104–119

in InDesign 80–81

MIME types in manifest 109

min-width property, in CSS 182

Mozilla extensions 170

N

navigational TOC

creating InDesign style for 77–82

generated with InDesign 76–79

preparing InDesign book for 76–77

subentries 102

toc.ncx file for 98–103

navLabel element, in toc.ncx file 100

navMap element, in toc.ncx file 100

navPoint element, in toc.ncx file 100

nested styles, in InDesign 57

non-English fonts 151–152

Nook

and borders and backgrounds 169

and widows and orphans 155, 157

fonts offered 138

Notepad 94

Notepad++ 31, 94

numbered lists 49, 132

O

OEBPS folder 95–96

Open Packaging Format specification 104

OpenType fonts 153

ornaments 150–151

orphans. See keeping elements together

P

page breaks. See keeping elements together

page, initial 111

poetry, formatting 165–168

points, in Word files 33

print book vs ebook vs website 8–13

publisher, specifying in metadata 107

Q

QuickTime Player 184

quotation marks, in Word files 41

quotes, formatting 165–168

R

relative units, in Word files 38

RGB images in EPUB files 82

S

shapes 151

short lines, formatting 165–168

sidebars

creating 169–171

wrapping text around 177–183

size

of iBooks page 16

small caps 159–162

soft hyphens 171

spacing, controlling 163–168

spine, in content.opf file 110–128

Springy 93

Stanza 14

borders and backgrounds 169

hyphenation dictionaries 172

images 173

line breaks 167

sidebars 178

text wrap 176

styles. See also CSS

in InDesign 48

applying main 50–51

applying special 52–53

creating 49–50

drop caps and nested styles 57

for links 70–71

replacing local formatting 53–57

in Word

adding new 23–24

and CSS 27

applying 26–27

cleaning up 35, 37, 39–40

consolidating 36–37

loading from document 25–26

moving to separate file 33

relative units 38

setting up 21–26

using shortcuts 39

style source document 77

SVG (Scalable Vector Graphics) format 153

symbols 150–151

T

table of contents. See also navigational TOC

with cross references in InDesign 73

Table of Contents Style 77–82

tables, creating 181–182

text alignment 154

text-align property 154

TextEdit 94

text editor. See BBEdit, TextWrangler, Notepad++

for editing EPUB files 94

vs word processor 31

text-indent property 165–168

TextMate 31, 94

TextWrangler 31

text wrap

around images 175–176

around sidebars 177–178

for drop caps 159–162

in InDesign 64–70

Thai font 151

title of ebook

adding in InDesign 81

and caching 120

in content.opf file 104

language of 104

toc.ncx file 98–103

typefaces. See fonts in ebooks

Typekit 153

Typotheque 153

U

universally unique id. See user id

unzipping EPUB 92–93

URLs, and links 179

user id

in content.opf file 105

in toc.ncx file 99

utf-8 format

and non-English fonts 151

declaring in Word 32–33

in XHTML files 96

V

validating EPUB file 126–128

video, adding 183–186

W

Webkit extensions 170

website

for this book 18

vs print vs ebook 8–13

widows. See keeping elements together

width property, in CSS 174, 176, 178

for video 185

WOFF (Web Open Font Face) format 153

Word, Microsoft 19

adding closing slash 43

adding quotation marks 41

cleaning up 44

declaring language 41

saving files as HTML 28–30

styling your document 20–27

wrapping text

around images 175–176

around sidebars 177–183

X

XHTML

and EPUB 14

declaration 31, 96

generated by InDesign 131–132

inside EPUB file 96–97

XML, and content.opf file 103

xml:lang attribute

adding to Word 41

generated by InDesign 132

Z

Zapf Dingbats 150–151

zipping EPUB file 124–128

again after edits 120–121

commands for 121