Repository navigation
Comics roles - #304
Merged
Merged
Comics roles#304
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Caption handling still duplicates descriptions for nested formatted captions and can remove wrappers containing semantic credit content, causing photo credits to disappear entirely.
2 open issues
What changed in this PR
This PR adds comics semantics to guided-navigation conversion and updates how figures and tables named by their captions are represented.
Changes:
- Maps EPUB comics types to
bubble,panel,panelGroup, andsound, preserving content inside panels withrole="img". - Deduplicates plain naming captions while retaining captions with formatted content.
- Adds seven fixtures and updates coverage documentation and the changelog.
| File | Description |
|---|---|
| guided-navigation/src/roles.ts | Adds comics role mappings and nesting rules. |
| guided-navigation/src/object.ts | Reconciles naming captions with descriptions. |
| guided-navigation/src/converter.ts | Tracks naming captions and preserves panel content. |
| guided-navigation/fixtures/table-caption-aria-labelledby/meta.json | Updates plain-caption expectations. |
| guided-navigation/fixtures/table-caption-aria-labelledby/gnd.json | Removes duplicate caption output. |
| guided-navigation/fixtures/table-caption-aria-labelledby-emphasis/meta.json | Describes emphasized-caption coverage. |
| guided-navigation/fixtures/table-caption-aria-labelledby-emphasis/input.html | Adds an emphasized table caption. |
| guided-navigation/fixtures/table-caption-aria-labelledby-emphasis/gnd.json | Expects formatted caption content. |
| guided-navigation/fixtures/sound-epub-type/meta.json | Describes sound-role coverage. |
| guided-navigation/fixtures/sound-epub-type/input.xhtml | Adds a sound-area example. |
| guided-navigation/fixtures/sound-epub-type/gnd.json | Expects the sound role. |
| guided-navigation/fixtures/ROLES_COVERAGE.md | Updates role coverage and fixture totals. |
| guided-navigation/fixtures/panel-role-img-labelled/meta.json | Describes image-role panel coverage. |
| guided-navigation/fixtures/panel-role-img-labelled/input.xhtml | Adds a labelled panel with a bubble. |
| guided-navigation/fixtures/panel-role-img-labelled/gnd.json | Expects preserved panel children. |
| guided-navigation/fixtures/panel-group-epub-type/meta.json | Describes panel-group coverage. |
| guided-navigation/fixtures/panel-group-epub-type/input.xhtml | Adds grouped panels. |
| guided-navigation/fixtures/panel-group-epub-type/gnd.json | Expects nested panel structure. |
| guided-navigation/fixtures/panel-epub-type/meta.json | Describes region-panel coverage. |
| guided-navigation/fixtures/panel-epub-type/input.xhtml | Adds a panel with narration and dialogue. |
| guided-navigation/fixtures/panel-epub-type/gnd.json | Expects panel and bubble semantics. |
| guided-navigation/fixtures/manifest.json | Registers fixtures and updates caption expectations. |
| guided-navigation/fixtures/figure-caption-aria-labelledby-language/meta.json | Describes multilingual-caption coverage. |
| guided-navigation/fixtures/figure-caption-aria-labelledby-language/input.html | Adds a caption language change. |
| guided-navigation/fixtures/figure-caption-aria-labelledby-language/gnd.json | Expects preserved language markup. |
| guided-navigation/fixtures/bubble-epub-type/meta.json | Describes bubble-role coverage. |
| guided-navigation/fixtures/bubble-epub-type/input.xhtml | Adds a balloon example. |
| guided-navigation/fixtures/bubble-epub-type/gnd.json | Expects the bubble role. |
| guided-navigation/CHANGELOG.MD | Documents comics support and breaking caption changes. |
Review effort: Balanced
Scope and impact of caption changes is too much to be merged into this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This implements roles for comics e.g.
panel,bubble, etc.