-
Notifications
You must be signed in to change notification settings - Fork 60
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
Changed the RS section on i18n #2330
Conversation
I think we're still too underspecified. It's not clear what it means to process the values. IMO, it'd be helpful to expand the processing requirement(s) more like:
|
I would say:
To determine the language or direction of an element, a reading system MUST
use the last specification of an xml:lang or dir before the current element.
This in my opinion is easier to implement and actually does the same thing..
When you say "Reading systems SHOULD expose the direction and language..."
I think it is not clear enough how it should be exposed?
…--
Ori Idan CEO Helicon Books
http://www.heliconbooks.com
On Thu, Jun 9, 2022 at 2:39 PM Matt Garrish ***@***.***> wrote:
I think we're still too underspecified. It's not clear what it means to
process the values.
IMO, it'd be helpful to expand the processing requirement(s) more like:
To determine the language or direction of an element, a reading system
MUST find the nearest specification of an xml:lang or dir attribute,
starting from the element and working back through its ancestors. When a
language or direction attribute is not specified, no information is
available for the element (i.e., language and direction are not inferred
from other sources).
Reading systems SHOULD expose the direction and language of an element
when rendering its content (e.g., to improve text-to-speech playback in a
bookshelf).
—
Reply to this email directly, view it on GitHub
<#2330 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB43QEEZY66DRJSHAAYXWTVOHJVPANCNFSM5YJKQLHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
What is "before" in xml processing, though? Does that mean you can get it from a sibling element before the current one? The HTML spec has similar wording:
That's why it can only be a "should". I don't expect we can definitively say how to expose the information, or that it can be in all cases, but if the use allows for the information to be retained then it should be. |
We are only talking about This isn't true for the |
Sure, I was just trying to express it in a single way for both. But this is what also makes the current wording ambiguous. If the XML spec defines the processing we want, then what other processing is the MUST requiring? |
You are right. xml:lang falls under the same category as XHTML in this respect. (We do say that processing the package document must follow the XML rules, right?). I missed that one. In other words, the only one that we define is the (I have to run to handle some private stuff for the rest of the day, if you want to edit the text directly...) |
@mattgarrish I have re-edited the paragraph, removing |
The issue was discussed in a meeting on 2022-06-17 List of resolutions:
View the transcript4. Changed the RS section on i18n.See github pull request epub-specs#2330. Ivan Herman: this is a general problem. In the RS spec, we have a general statement of the sort 'RS MUST treat HTML or CSS etc. as conforming to those other specs'.
Ivan Herman: if we find additional similar things, then we should come up with a PR with all those changes. e.g. Including the one about the acid test. |
Co-authored-by: Matt Garrish <mattgarrish@users.noreply.github.com>
This comes from the discussion around testing the i18n features, see w3c/epub-tests#150. Based on that discussion thread, the PR removes the normative statements regarding the handling of the
dir
andlang
attributes in XHTML and SVG; listing these as normative statements is superfluous and makes it unclear what and how should be formally tested. The proposed section includes normative statements on EPUB specific files and features onlySee: