diff --git a/pkg/manifest/a11y.go b/pkg/manifest/a11y.go index d28a55d3..f8787507 100644 --- a/pkg/manifest/a11y.go +++ b/pkg/manifest/a11y.go @@ -283,9 +283,9 @@ const ( // The work includes an index to the content. A11yFeatureIndex A11yFeature = "index" - // The work includes equivalent print page numbers. This setting is most commonly used - // with ebooks for which there is a print equivalent. - A11yFeaturePrintPageNumbers A11yFeature = "printPageNumbers" + // The resource includes a means of navigating to static page break locations. + // The most common way of providing page navigation in digital publications is through a page list. + A11yFeaturePageNavigation A11yFeature = "pageNavigation" // The reading order of the content is clearly defined in the markup // (e.g., figures, sidebars and other secondary content has been marked up to allow it diff --git a/pkg/streamer/a11y_infer.go b/pkg/streamer/a11y_infer.go index b6da5d6e..690f8e99 100644 --- a/pkg/streamer/a11y_infer.go +++ b/pkg/streamer/a11y_infer.go @@ -114,13 +114,13 @@ func inferA11yMetadataFromManifest(mf manifest.Manifest) *manifest.A11y { } } - if mf.TableOfContents != nil && len(mf.TableOfContents) > 0 { + if len(mf.TableOfContents) > 0 { addFeature(manifest.A11yFeatureTableOfContents) } if mf.ConformsTo(manifest.ProfileEPUB) { if _, hasPageList := mf.Subcollections["pageList"]; hasPageList { - addFeature(manifest.A11yFeaturePrintPageNumbers) + addFeature(manifest.A11yFeaturePageNavigation) } for _, link := range allResources { diff --git a/pkg/streamer/a11y_infer_test.go b/pkg/streamer/a11y_infer_test.go index be20c5c5..13f9ab18 100644 --- a/pkg/streamer/a11y_infer_test.go +++ b/pkg/streamer/a11y_infer_test.go @@ -295,7 +295,7 @@ func TestInferFeaturePageList(t *testing.T) { }, ReadingOrder: []manifest.Link{newLink(mediatype.HTML, "html")}, } - assertFeature(t, m, manifest.A11yFeaturePrintPageNumbers) + assertFeature(t, m, manifest.A11yFeaturePageNavigation) } // If the publication contains any resource with MathML (check for the presence