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

Consider adding a check for fixed, language-specific values of alt texts, aria-labels, etc. #544

Open
martinpub opened this issue Jan 19, 2023 · 0 comments

Comments

@martinpub
Copy link
Collaborator

martinpub commented Jan 19, 2023

Section 5.2 of the 2020-1 guidelines lists some fixed values to be used for alt texts, aria-labels, schema.org metadata, nav.xhtml headings, etc.

For att least some of them, it would be nice to check the values of these against the main language of the book. Such a check would avoid e.g. having a note backlink in a Swedish book labelled "Gå til notereferansen." (the given value for Norwegian).

As some of labels mentioned are not always strictly required to have a controlled value (e.g. an epigraph might be labelled with a heading, etc.), and as sometimes Editing Instructions give specific instructions on a custom alt text, etc., the implementation of the check must be aware of which values will always be controlled and which will not be, and it should probably be a warning rather than an error.

Let me know what you think. The example above is a real-world example from MTM, and we just started thinking about if there are validation scenarios we could add to improve the quality in this regard.

@martinpub martinpub changed the title Check fixed, language-specific values of alt texts, aria-labels, etc. Consider adding a check for fixed, language-specific values of alt texts, aria-labels, etc. Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant