Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking features instead of access modes for non visual content #564

Closed
mattgarrish opened this issue Jan 3, 2025 · 1 comment
Closed
Labels
a11y-display-techniques-epub Issue with the epub accessibility metadata display techniques

Comments

@mattgarrish
Copy link
Member

mattgarrish commented Jan 3, 2025

In the epub techniques, the variable setup for non_textual_content_images in 4.2.2 is checking the wrong metadata property for the visual content indicators:

/package/metadata/meta[@property="schema:accessibilityFeature" and (text()="chartOnVisual" ...

It should be checking schema:accessMode not schema:accessibilityFeature. The value tests could also be shortened to avoid all the "or" connectors:

/package/metadata/meta[@property="schema:accessMode" and text() = ("chartOnVisual", "chemOnVisual", "diagramOnVisual", "mathOnVisual", "musicOnVisual", "textOnVisual")]

@mattgarrish mattgarrish added the a11y-display-techniques-epub Issue with the epub accessibility metadata display techniques label Jan 3, 2025
@mattgarrish
Copy link
Member Author

mattgarrish commented Jan 3, 2025

Related to testing for one of a possible set of values, the textual_alternative_images variable could similarly be shortened to:

/opf:package/opf:metadata/opf:meta[@property="schema:accessibilityFeature" and text() = ("longDescription", "alternativeText", "describedMath")]

(Using text() for these, but see #562 for why it might be better to change them.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y-display-techniques-epub Issue with the epub accessibility metadata display techniques
Projects
None yet
Development

No branches or pull requests

1 participant