4.4 HTML Cleanup

Making Ebooks with InDesign: Module 4, Step 4

  • Subject(s):

    InDesign to EPUB

  • Resource Type(s):

    Step-by-Step

  • Audience:

    Technical

Suggested Prerequisite

Before reading this, you might want to read:

HTML Cleanup

No matter how cleanly styled an InDesign file is, InDesign has an inexplicable tendency to apply overrides at the paragraph, character and object style level. These should definitely be cleaned up. Whatever text editor you use will have some version of regular expressions search (aka RegEx). Leverage that to clear out overrides with a quick find/replace. To do that find an override in your document, copy it and the space before, then search for that string globally. In oXygen, a right click on the HTML files will enable global search and replace. Replace the number with a backslash-lower case-d so that the software finds all instances of that string with any digit. 

Sidebar: a little RegEx knowledge goes a long way. If you’ve never spent time using it, consider doing a tutorial. It’s the same thing as InDesign’s GREP find/replace.Fix up the HTML. Nest <figcaption> tags in the <figure> tags. Migrate any remaining <div> tags to more meaningful HTML.

Next Steps

1

Module 4, Step 5

4.5 Context Breaks

Making Ebooks with InDesign: Module 4, Step 5

Subject(s): InDesign to EPUB
Resource Type(s): Step-by-Step
Audience:
Technical
2

Module 4, Step 6

4.6 Navigation Cleanup

Making Ebooks with InDesign: Module 4, Step 6

Subject(s): InDesign to EPUB
Resource Type(s): Step-by-Step
Audience:
Technical
3

Module 4, Step 7

4.7 Building a Pagelist

Making Ebooks with InDesign: Module 4, Step 7

Subject(s): InDesign to EPUB
Resource Type(s): Step-by-Step
Audience:
Technical
4

Module 4, Step 8

4.8 Language Declaration Issues

Making Ebooks with InDesign: Module 4, Step 8

Subject(s): InDesign to EPUB
Resource Type(s): Step-by-Step
Audience:
Technical
5

Module 4, Step 9

4.9 Semantics and DPUB ARIA

Making Ebooks with InDesign: Module 4, Step 9

Subject(s): InDesign to EPUB
Resource Type(s): Step-by-Step
Audience:
Technical
6

Module 4, Step 10

4.10 Accessibility Metadata

Making Ebooks with InDesign: Module 4, Step 10

Subject(s): InDesign to EPUB
Resource Type(s): Step-by-Step
Audience:
Technical

Want to discuss this resource?