Skip to content

Commit f3dc16e

Browse files
authoredFeb 1, 2025··
printPageNumbers --> pageNavigation (#183)
1 parent 35b2fd9 commit f3dc16e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
 

‎pkg/manifest/a11y.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ const (
283283
// The work includes an index to the content.
284284
A11yFeatureIndex A11yFeature = "index"
285285

286-
// The work includes equivalent print page numbers. This setting is most commonly used
287-
// with ebooks for which there is a print equivalent.
288-
A11yFeaturePrintPageNumbers A11yFeature = "printPageNumbers"
286+
// The resource includes a means of navigating to static page break locations.
287+
// The most common way of providing page navigation in digital publications is through a page list.
288+
A11yFeaturePageNavigation A11yFeature = "pageNavigation"
289289

290290
// The reading order of the content is clearly defined in the markup
291291
// (e.g., figures, sidebars and other secondary content has been marked up to allow it

‎pkg/streamer/a11y_infer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ func inferA11yMetadataFromManifest(mf manifest.Manifest) *manifest.A11y {
114114
}
115115
}
116116

117-
if mf.TableOfContents != nil && len(mf.TableOfContents) > 0 {
117+
if len(mf.TableOfContents) > 0 {
118118
addFeature(manifest.A11yFeatureTableOfContents)
119119
}
120120

121121
if mf.ConformsTo(manifest.ProfileEPUB) {
122122
if _, hasPageList := mf.Subcollections["pageList"]; hasPageList {
123-
addFeature(manifest.A11yFeaturePrintPageNumbers)
123+
addFeature(manifest.A11yFeaturePageNavigation)
124124
}
125125

126126
for _, link := range allResources {

‎pkg/streamer/a11y_infer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func TestInferFeaturePageList(t *testing.T) {
295295
},
296296
ReadingOrder: []manifest.Link{newLink(mediatype.HTML, "html")},
297297
}
298-
assertFeature(t, m, manifest.A11yFeaturePrintPageNumbers)
298+
assertFeature(t, m, manifest.A11yFeaturePageNavigation)
299299
}
300300

301301
// If the publication contains any resource with MathML (check for the presence

0 commit comments

Comments
 (0)
Please sign in to comment.