You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aren't we still missing an important piece about what to do when language information isn't provided in the resource? I was expecting something like this at the end of the section:
In the absence of this information in a Publication Resource, Reading Systems MUST NOT assume either language or direction from information expressed in the Package Document (i.e., in xml:lang and dir attributes, in hreflang attributes on link elements, or from dc:language elements). The handling of documents without explicit language or direction is defined in their respective specifications.
HTML, for example, has this to say:
In the absence of any such language information, and in cases where the higher-level protocol reports multiple languages, the language of the node is unknown, and the corresponding language tag is the empty string.
SVG isn't quite as clear, but nodes don't have a language if one isn't set.
The statement about using language for display seems to suggest that's the only use, but a reading system can also use dc:language for any internal needs it may require. The usual example that comes to mind is there's a reading system that uses these languages to pre-load TTS languages so they're available as soon as the user begins to read rather than having to delay playback for each document to see what it requires. It could also be used to categorize books by language in a bookshelf. And so on.
It might help to make the intended uses a little more open-ended and non-normative:
The language(s) of the EPUB Publication specified in language elements are informational. Some uses of this information include:
exposing it to the user through the Reading System specific user interface
using it to enhance functionality in a bookshelf (e.g., sorting by language)
using it to optimize the reading interface (e.g., to preload text-to-speech languages)
And possibly end with a note that refers back to the internationalization section for how to determine the language of resources.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #1601
See: