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

lang attribute in metadata and nav doc #64

Open
gregoriopellegrino opened this issue Apr 27, 2023 · 5 comments
Open

lang attribute in metadata and nav doc #64

gregoriopellegrino opened this issue Apr 27, 2023 · 5 comments

Comments

@gregoriopellegrino
Copy link

Proposal to create a test to ensure that the lang and xml:lang attributes present in metadata (content.opf) and in the navigation file (TOC) digested by the reading application are respected and correctly passed to the AT.

Ensuring that the lang and xml:lang attributes are present and correctly passed on to users is essential for accessibility. These attributes specify the language of the content, which is crucial for users who are visually impaired or have reading disabilities. Screen readers use the lang and xml:lang attributes to determine the language to use when reading the content to the user. If these attributes are missing or incorrect, it can result in a poor user experience for the user, making the content difficult or impossible to understand.

@avneeshsingh
Copy link
Collaborator

Screen readers use lang attribute of HTML file.
I do not think that screen readers are effected by lang attribute of OPF file. It is mainly used by reading systems.

@gregoriopellegrino
Copy link
Author

I agree, to better explain the issue I present two cases we've seen in some reading applications:

  • title of the publication is in Italian (with xml:lang attribute in the OPF file set as Italian) displayed in an English User Interface (in the library view), it is read out with English voice by the screen-reader: it seems that the reading system doesn't pass the language information of the title string to the assistive technologie
  • the book is in English, but a chapter in the book as a French heading (is it correctly marked as French in the nav doc), in the TOC User Interface it is read out with English voice by the screen-reader: it seems that the reading system doesn't pass the language information of the nav element string to the assistive technology

@avneeshsingh
Copy link
Collaborator

OK, this issue is mainly about reading system not exposing lang attributes in its widgets.

@GeorgeKerscher
Copy link
Collaborator

Adding this to the 2023 milestones.

@ways2read
Copy link
Member

Moved to 2024 milestone in meeting 20/02/2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants