-
Notifications
You must be signed in to change notification settings - Fork 3
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
Interaction between "represents" and "script event type" #227
Comments
Reproducing and rephrasing the options we discussed here for ease of access:
|
I've looked at this and my conclusions are:
I wonder if it's worth putting an extra field into the registry to say "is a sub-type of", which would point to another row in the registry. For example:
|
#241 opened to resolve this issue - as it stands in that pull request there's no formal linkage between values and sub-types as proposed in #227 (comment) - I just put the linkage informally into the description. It would be an easy incremental fix to change that. |
See #241 (comment) for the IRC log of what I scribed during a discussion of the related pull request during yesterday's TTWG call. I'm not sure I did all that well at scribing, so while it's relatively fresh, here are some notes and additional thoughts: Initial proposal in #241 at 3681360The initial proposal is a single In each case, the attribute describes what the object represents, and is a whitespace separated list of terms in the registry defined for
This is very open, and there is no implication of inheritance or any enforcement of constraints about what is on the document level vs the script event level. It is the simplest design I could think of, as a first step. Summary of comments and discussion
Inheritance model (my thoughts)At the document level the content descriptors can be mutually exclusive ("this document represents both dialogue and on screen text") but at the script event level that makes no sense. For that reason, a blanket top-down inheritance model would not work in a large number of cases. Some attributes, like There's no subtractive inheritance model that I'm aware of, though a syntax and semantic could be created, e.g. It's not common for there to be an inheritance blocking point in the tree, in XML, but this is another potential approach. For example, setting Another way to permit inheritance but resolve this document-vs-event issue is to have the document level metadata apply to the Overall, I'm not against inheritance here, but I don't think it's very useful, and it could increase implementation complexity. It seems simpler to specify that it is not inherited, and be done. That would be a small specification change. If we make Represents a mandatory property of a Script Event, then inheritance ceases to be useful anyway. This approach could be used to distinguish Script Event ConstraintsThe point was made that in a document that claims that it represents only visual content, say, it would be some kind of error if a script event in that document claims that it represents audio content. The idea is that a validator would be able to check that the document level summary does not conflict with the more granular contents. I also noted that it may be reasonable to claim that the document represents both non-dialogue sounds and dialogue, but for there to be no actual script events that represent non-dialogue sounds. My example was a transcript of a video of a single speaker talking in a quiet room. All the non-dialogue sounds are represented, but it's truly an empty set. So the constraint seems to be that no Script Event should represent something that isn't in the Document-level represents list. However, this returns me to the question about sub-typing in the Next steps
|
Just had an idea that will help with the sub-typing complexity issue that I raised earlier, and validity checking that Script Events are okay within the Document, in terms of what they represent. The idea is: if we make
This allows us to maintain a flat registry structure, without implementations having to worry about what the registry values actually mean. It also helps for conversion from legacy formats or workflows that don't capture this data in a granular way, in that really generic top level terms can be used everywhere. |
A note on the inheritance part. You discuss the additive model (e.g. ttm:role, which is very awkward to me ...) and a hypothetical subtractive model. I don't think we should consider the subtractive model. You did not mention the replacement model (e.g. xml:lang) My suggestion would be to use that model. If the attribute is present at a Script Event level (no matter how many values it has), it replaces the value(s) inherited from the document level. |
Yes, that seems reasonable to me. |
Some more thoughts on the registry. The idea of having hierarchical values with the I also wondered how would we allow proprietary values. Would we allow values like I also think we need better guidance around use of descType vs eventType/represents. They are both registry based. When you have a value to register (e.g. some TTAL values), should you use the former or the latter? For example, if one uses a desc element without text content, just a descType attribute, the usage seems similar to adding that value in the eventType . Should we mandate that when a desc element is used with a descType attribute, text content must be present and non-empty, otherwise the descType value should be registered with the eventType registry? |
Just for the record, I did, and used |
I'm happy to introduce a replacement-style inheritance model, and not make presence of This would also mean we have another decision to make. Do we either:
I think I'm leaning towards the first of these, because that also allows us more easily to specify different syntax requirements, i.e. a list of |
Sorry. Missed that. |
Good point, I think we could do that, yes. Are you suggesting that we make The URN question makes me wonder what scenarios we have to consider when choosing a token delimiter. Do we need to allow multiple alternative delimiters? Are there any that would cause problems? Some possibilities (there are more!):
|
Maybe. I'm not sure. It could get very verbose if you have to set that URN on every event... |
I think |
Further to the above, in XML, |
I think If it would help we can add that |
I've updated #241. |
As discussed in the TTWG call on April 11, 2024, during the review of #217, we wonder what the interactions between the new
daptm:represents
anddaptm:eventType
. Both attributes are registry-based.The text was updated successfully, but these errors were encountered: