Skip to content

Commit

Permalink
Imported DPUB-ARIA roles into our schema
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienGardeur committed Jul 11, 2024
1 parent 7df80f9 commit c229691
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ A publication <strong class="rfc">must</strong> include a [`duration`](https://r
> As a starting point, we'll use [Digital Publishing WAI-ARIA Module 1.0]() along with HTML semantics.
> For comics, we'll look into [EPUB Structural Semantics Vocabulary](https://www.w3.org/TR/epub-ssv-11/) as well, but it feels oddly too specific and not enough at the same time.
*For now this is a work in progress in a separate document: [List of roles](role.md)*
*For now this is a work in progress in a separate document: [List of roles](roles.md)*

## Appendix A - Examples

Expand Down
4 changes: 3 additions & 1 deletion schema/object.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
},
"role": {
"type": ["string", "array"],
"$ref": "roles.schema.json",
"items": {
"type": "string"
"type": "string",
"$ref": "roles.schema.json"
}
},
"children": {
Expand Down
46 changes: 46 additions & 0 deletions schema/roles.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://readium.org/guided-navigation/schema/roles.schema.json",
"title": "Readium Guided Navigation Roles",
"enum": [
"abstract",
"acknowledgments",
"afterword",
"appendix",
"backlink",
"biblioentry",
"bibliography",
"biblioref",
"chapter",
"colophon",
"conclusion",
"cover",
"credit",
"credits",
"dedication",
"endnote",
"endnotes",
"epigraph",
"epilogue",
"errata",
"example",
"footnote",
"foreword",
"glossary",
"glossref",
"index",
"introduction",
"noteref",
"notice",
"pagebreak",
"pagelist",
"part",
"preface",
"prologue",
"pullquote",
"qna",
"subtitle",
"tip",
"toc"
]
}

0 comments on commit c229691

Please sign in to comment.