Skip to content

Conversation

@nigelmegitt
Copy link
Contributor

@nigelmegitt nigelmegitt commented Oct 7, 2025

Use Respec's data-oninclude mechanism to write the table header and table body rows, using functions added for the purpose. This allows the table caption to be specified locally without being in the data file.

Add registries/ directory and the two registry data files as JSON. Add a README.md file to explain the JSON structure.

Move the <content-descriptor> and daptm:descType registry entries into JSON files and describe their location in the specification so that implementers can find them.

Closes #325.


Preview | Diff

Use Respec's `data-oninclude` mechanism to write the table header and table body rows, using functions added for the purpose. This allows the table caption to be specified locally without being in the data file.

Add registries/ directory and the two registry data files as JSON. Add a README.md file to explain the JSON structure.

Move the `<content-descriptor>` and `daptm:descType` registry entries into JSON files.
@nigelmegitt nigelmegitt added the agenda Issue flagged for in-meeting discussion label Oct 7, 2025
@nigelmegitt nigelmegitt changed the title Issue 0325 registry data files Include registry data from external files Oct 7, 2025
@css-meeting-bot
Copy link
Member

The Timed Text Working Group just discussed Include registry data from external files w3c/dapt#326, and agreed to the following:

  • SUMMARY: Review to continue, early merge okay, further comments or suggestions welcome
The full IRC log of that discussion <nigel> Subtopic: Include registry data from external files #326
<nigel> github: https://github.com//pull/326
<nigel> Nigel: I was implementing validation code and noticed that the registry data was only in HTML
<nigel> .. in the spec, not useful for using programmatically elsewhere.
<nigel> .. [shows the pull request data]
<nigel> .. Any issues with this?
<nigel> .. Different format for example?
<nigel> Cyril: Thank you for this, it's good to isolate the data from the spec HTML
<nigel> .. Regarding the format, GitHub renders CSV as a table, and makes it easy to edit.
<nigel> Nigel: Interesting, I haven't thought about CSV.
<nigel> Cyril: It's good as it is, but it would be easier to prepare pull requests if you can
<nigel> .. see the proposed changes formatted nicely in GitHub. It's minor.
<nigel> .. It's already great to separate the registry from the main spec.
<nigel> Nigel: In the spirit of agility and iteration we could merge this now and change it in the future
<nigel> .. if we need to.
<nigel> Cyril: I like that idea.
<nigel> Nigel: Thank you, any other points?
<nigel> Atsushi: I somehow wonder about these functions and whether a single JSON file will be dynamically loaded two times.
<nigel> .. Also if we want to include the registry table we may want to include the caption within the JSON
<nigel> .. data. For content using table might it be better to be generic from the JSON file?
<nigel> .. I'm actually not totally sure about this JSON file being used, but having some caption or title
<nigel> .. could have a benefit for the users of the JSON file by itself.
<nigel> Nigel: That is interesting. At the moment the caption text includes links to other places in the
<nigel> .. specification, and they would not make sense in isolation.
<nigel> .. I'm not worried about loading the data twice. Even if the browser doesn't cache it, the files
<nigel> .. are small, and when we publish to TR the scripts are run in advance to produce the final
<nigel> .. HTML so it's not an issue on /TR.
<nigel> SUMMARY: Review to continue, early merge okay, further comments or suggestions welcome

@nigelmegitt nigelmegitt merged commit 2c89027 into main Oct 10, 2025
2 checks passed
@nigelmegitt nigelmegitt deleted the issue-0325-registry-data-files branch October 10, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agenda Issue flagged for in-meeting discussion editorial

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate importing registry data from an external file

4 participants