Open nigelmegitt opened 1 year ago
Just reviewed this issue to see if I could work out what change might be needed. @andreastai am I right in thinking that you're suggesting an informative section specifically about how language is specified in a document instance, or do you think normative text is needed now?
Reading the latest text, I wonder if the issue is still relevant. I find that the language property and inheritance are clear now.
@andreastai would you be able to re-visit this and see if you agree with https://github.com/w3c/dapt/issues/192#issuecomment-1934522335 also?
In the latest editor draft it says:
In the absence of an xml:lang attribute the language of the Script Event Description is inherited from the parent Script Event object.
Correct me if I am wrong: Because language can not be specified on a script event object (or in TTML Syntax on the div
element), In the absence of an xml:lang attribute the language of an Script Event Description is always the value of the default language that is specified on the <tt>
element. So from a practical perspective, it is more helpful that this relationship is highlighted.
Or is xml:lang
allowed on a div?
I think we may need to clarify or explain better what the implications of the specification are in terms of what is normatively permitted in a DAPT document, compared with what the data model suggests is permitted.
In my view it is permitted to put xml:lang
on a <div>
, because we have not excluded it using an extension feature. And doing so would not be helpful.
Even if it is currently the case that the Script Event always inherits its language from some other parent, it is not wrong to say that it is the immediate source of inheritance for the Script Event Description. Wording it this way allows us flexibility in case we ever think of a use case for setting language directly on a Script Event, and adding this to the data model.
@nigelmegitt
I think we may need to clarify or explain better what the implications of the specification are in terms of what is normatively permitted in a DAPT document, compared with what the data model suggests is permitted.
+1
In my view it is permitted to put xml:lang on a
, because we have not excluded it using an extension feature. And doing so would not be helpful.OK. It may need to be discussed how to make this transparent....
Even if it is currently the case that the Script Event always inherits its language from some other parent, it is not wrong to say that it is the immediate source of inheritance for the Script Event Description. Wording it this way allows us flexibility in case we ever think of a use case for setting language directly on a Script Event, and adding this to the data model.
Formally this is correct. But from a practical view it would help to mention that you have to look out for the default language on the root element.
The Timed Text Working Group just discussed Clarify language application and inheritance model w3c/dapt#192
, and agreed to the following:
SUMMARY: Add Language to Script Event as an optional property
Thanks, @nigelmegitt I think we should be clear about how language information is applied and inherited. From the class model (at least from what I can see) there is no other way to inherit the language information other than from the document level.
Originally posted by @andreastai in https://github.com/w3c/dapt/issues/181#issuecomment-1759172634