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

Split Script Event Description out as a separate object #181

Merged
merged 4 commits into from
Oct 11, 2023

Conversation

nigelmegitt
Copy link
Contributor

@nigelmegitt nigelmegitt commented Aug 1, 2023

Closes #174.

Clarifies the cardinality of Script Event Description.

Updates the data model diagram (in a way that is non-ideal but hard to fix automatically: it may be worth replacing the PlantUML-generated diagram with a more manually constructed one prior to final publication), and defines Description Type more explicitly.

Also clarify that there is no uniqueness constraint for daptm:descType and that xml:lang can be used to label the language of the contents of a ttm:desc.


Preview | Diff

Closes #174.

Clarifies the cardinality of Script Event Description.

Updates the data model diagram (in a way that is non-ideal but hard to fix automatically: it may be worth replacing the PlantUML-generated diagram with a more manually constructed one prior to final publication), and defines Description Type more explicitly.

Also clarify that there is no uniqueness constraint for `daptm:descType` and that `xml:lang` can be used to label the language of the contents of a `ttm:desc`.
@nigelmegitt
Copy link
Contributor Author

Raised #182 regarding cleaning up the PlantUML-generated SVG diagrams.

@nigelmegitt
Copy link
Contributor Author

pinging @cconcolato @andreastai for a review please

Copy link
Contributor

@cconcolato cconcolato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the model be explicit about the language property?

@nigelmegitt
Copy link
Contributor Author

Should the model be explicit about the language property?

Not sure I understand - are you suggesting that we should require the presence of xml:lang on ttm:desc elements?

@nigelmegitt
Copy link
Contributor Author

Assuming we merge #185 the PlantUML diagram will need to change again to accommodate this. Or we could merge this first and then rebase #185. Either way, some redesign will be needed, which I can pick up.

@cconcolato
Copy link
Contributor

Not sure I understand - are you suggesting that we should require the presence of xml:lang on ttm:desc elements?

I wasn't clear. When I read the sentence https://github.com/w3c/dapt/pull/181/files#diff-0eb547304658805aad788d320f10bf1f292797b5e6d745a3bf617584da017051R984, I thought maybe we should have an (optional) language line in the UML diagram.

@nigelmegitt
Copy link
Contributor Author

Oh sure, makes sense.

Also pre-emptively remove the Style assuming that #185 is approved too. If not, will need to re-instate Style.
@nigelmegitt
Copy link
Contributor Author

Have added optional Language to the script description in the UML model. The model in this PR originally looked pretty bad, and the one in #185 is much better, from a layout perspective, but omits Style. To save editorial time, I've slightly naughtily assumed that we will approve and merge #185, and gone ahead with the UML model from that pull request, omitting Style, and added the ScriptDescription object in to that one.

If we don't merge #185 then we'll need to put the Style back.

Copy link

@andreastai andreastai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @nigelmegitt Overall the changes look good to me. Some observations:

The information about the Description Type is now represented two times in the Document:

The Description Type is represented in a DAPT Document by a daptm:descType attribute on the ttm:desc element.

and

The ttm:desc element MAY have a daptm:descType attribute specified to indicate the Description Type.

In any case, the info about the Description Type should go after Example 20.

The information that the attribute @xml:lang is used to represent the optional language of the Event Description should be in the normative text with a MAY keyword rather than in a note.

A note may also be added if the language of the Event Description is the Primary Language of the DAPT script in case @xml:lang is omited on <ttm:desc>.

@nigelmegitt
Copy link
Contributor Author

Thank you @andreastai for the great review feedback. I've reworked the section to address the points. Just one thing I disagree with: if xml:lang is omitted it inherits its language from the Script Event, which in principle might not be the Primary Language of the document.

Hopefully the order is now clearer and there is no unnecessary duplication.

@andreastai
Copy link

Thank you @andreastai for the great review feedback. I've reworked the section to address the points.

Yes, thanks @nigelmegitt! The edits look good to me.

Just one thing I disagree with: if xml:lang is omitted it inherits its language from the Script Event, which in principle might not be the Primary Language of the document.

As I understand the Script Event object does not have a language property and the language is always specified on the Text object.

@nigelmegitt
Copy link
Contributor Author

As I understand the Script Event object does not have a language property and the language is always specified on the Text object.

Oh I see. Formally, Script Events do have a computed language regardless of whether they have an xml:lang attribute, and that might be inherited from the document level.

My view here is that we should go with the text in this pull request and if anyone asks about this subtlety we can consider amending or adding extra explanation.

@nigelmegitt nigelmegitt merged commit 04b0b5d into main Oct 11, 2023
1 check passed
@cconcolato cconcolato deleted the issue-0174-script-event-description-as-object branch October 11, 2023 16:54
@andreastai
Copy link

Oh I see. Formally, Script Events do have a computed language regardless of whether they have an xml:lang attribute, and that might be inherited from the document level.

My view here is that we should go with the text in this pull request and if anyone asks about this subtlety we can consider amending or adding extra explanation.

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.

@nigelmegitt
Copy link
Contributor Author

I think we should be clear about how language information is applied and inherited.

Raised as #192.

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

Successfully merging this pull request may close these issues.

Script Event Description should be an object
3 participants