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

Suggested Prerequisite

Before reading this, you might want to read:

Context Breaks

Add an <hr /> tag to denote an editorial space or context break. Often in ebooks that I encounter in the wild, an editorial break is marked only by space created in CSS — that is, some kind of no-indent-space-above style sheet that creates the desired space but doesn’t communicate the semantic meaning of the context break. Sometimes there is a dingbat of some sort, maybe marked as decorative maybe not. 

In order to communicate to assistive technologies that this is a break worthy of a pause, you will need to add <hr /> to those breaks. You can regex this into place: find <p class=”noindent”> replace it with <hr /><p class=”noindent”>, for example. 

If you want that editorial space to have a dingbat of some sort, you can give that field a class: <hr class=”dbat”/>. And then add some CSS to the style that break. 

hr.dbat {

  height: 1em;

  background: transparent url(“../image/dbat.png”) no-repeat center;

  background-size: 2.5em 1.25em;

  overflow: hidden;

  page-break-inside: avoid;

  break-inside: avoid;

  border:none;

}

It’s also possible to have a fake asterism, as seen in this snippet. In this case the text — that is the asterisks — are live but are buried in a <div> with the appropriate semantics applied. 

<div class=”asterism” role=”separator” aria-label=”Interlude”>

  * * *

</div>

Adjust as necessary to suit your content. I generally recommend JPEGs for images in ebooks, but using a PNG for a dingbat with a transparent background will work better here. 

Next Steps

1

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
2

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
3

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
4

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
5

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
6

Module 4, Step 11

4.11 CSS Cleanup

Making Ebooks with InDesign: Module 4, Step 11

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

Want to discuss this resource?