@readium/guided-navigation 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/a11y.js +1 -1
- package/dist/converter.js +1 -1
- package/dist/elementHandlers.js +1 -1
- package/dist/emptyPairs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/object.js +1 -1
- package/dist/textrefFragment.js +1 -1
- package/fixtures/README.md +4 -4
- package/fixtures/ROLES_COVERAGE.md +3 -3
- package/fixtures/abbreviation-acronym-html-native/gnd.json +3 -5
- package/fixtures/abbreviation-before-formatting/gnd.json +3 -5
- package/fixtures/abbreviation-before-image/gnd.json +10 -14
- package/fixtures/abbreviation-html-native/gnd.json +3 -5
- package/fixtures/abbreviation-language/gnd.json +3 -5
- package/fixtures/abbreviation-line-break/gnd.json +3 -5
- package/fixtures/abbreviation-nested/gnd.json +3 -5
- package/fixtures/abbreviation-nested-emphasis/gnd.json +3 -5
- package/fixtures/abbreviation-nested-term/gnd.json +4 -8
- package/fixtures/abbreviation-nested-term-punctuation/gnd.json +4 -8
- package/fixtures/abbreviation-no-title/gnd.json +1 -3
- package/fixtures/abbreviation-period-mid-sentence/gnd.json +3 -5
- package/fixtures/abbreviation-period-sentence-end/gnd.json +3 -5
- package/fixtures/abbreviation-spanning-terms/gnd.json +3 -9
- package/fixtures/abbreviation-with-image/gnd.json +10 -14
- package/fixtures/abbreviation-with-svg-and-math/gnd.json +15 -21
- package/fixtures/abstract-epub-type/gnd.json +3 -7
- package/fixtures/abstract-role-aria/gnd.json +1 -3
- package/fixtures/accessible-name-labelledby-aria-hidden/gnd.json +2 -7
- package/fixtures/accessible-name-labelledby-hidden-attribute/gnd.json +2 -7
- package/fixtures/acknowledgments-epub-type/gnd.json +3 -7
- package/fixtures/acknowledgments-role-aria/gnd.json +1 -3
- package/fixtures/afterword-epub-type/gnd.json +3 -7
- package/fixtures/afterword-role-aria/gnd.json +1 -3
- package/fixtures/appendix-epub-type/gnd.json +3 -8
- package/fixtures/appendix-role-aria/gnd.json +1 -3
- package/fixtures/article-html-native/gnd.json +1 -3
- package/fixtures/article-role-aria/gnd.json +2 -4
- package/fixtures/aside-epub-type/gnd.json +3 -7
- package/fixtures/aside-html-native/gnd.json +1 -3
- package/fixtures/audio-html-native/gnd.json +3 -5
- package/fixtures/audio-no-description/gnd.json +2 -4
- package/fixtures/backlink-epub-type/gnd.json +3 -8
- package/fixtures/backlink-role-aria/gnd.json +2 -5
- package/fixtures/bibliography-epub-type/gnd.json +7 -18
- package/fixtures/bibliography-role-aria/gnd.json +4 -12
- package/fixtures/biblioref-epub-type/gnd.json +3 -8
- package/fixtures/biblioref-role-aria/gnd.json +2 -5
- package/fixtures/biblioref-target-descendant-ids/gnd.json +31 -49
- package/fixtures/biblioref-target-in-bibliography-role-aria/gnd.json +16 -29
- package/fixtures/biblioref-target-mixed-content/gnd.json +27 -36
- package/fixtures/blockquote-html-native/gnd.json +1 -3
- package/fixtures/blockquote-role-aria/gnd.json +2 -4
- package/fixtures/body-html-native/gnd.json +1 -3
- package/fixtures/chapter-epub-type/gnd.json +4 -11
- package/fixtures/chapter-role-aria/gnd.json +2 -7
- package/fixtures/colophon-epub-type/gnd.json +3 -7
- package/fixtures/colophon-role-aria/gnd.json +1 -3
- package/fixtures/complementary-role-aria/gnd.json +1 -3
- package/fixtures/conclusion-epub-type/gnd.json +3 -7
- package/fixtures/conclusion-role-aria/gnd.json +1 -3
- package/fixtures/cover-epub-type/gnd.json +5 -12
- package/fixtures/cover-role-aria/gnd.json +3 -6
- package/fixtures/credit-epub-type/gnd.json +4 -10
- package/fixtures/credit-role-aria/gnd.json +1 -3
- package/fixtures/credits-epub-type/gnd.json +9 -23
- package/fixtures/credits-role-aria/gnd.json +4 -14
- package/fixtures/dedication-epub-type/gnd.json +3 -7
- package/fixtures/dedication-role-aria/gnd.json +1 -3
- package/fixtures/definition-epub-type/gnd.json +4 -10
- package/fixtures/definition-html-native/gnd.json +1 -3
- package/fixtures/definition-role-aria/gnd.json +1 -3
- package/fixtures/description-roleless-lone-child/gnd.json +5 -9
- package/fixtures/description-roleless-wrapper/gnd.json +8 -12
- package/fixtures/details-html-native/gnd.json +1 -3
- package/fixtures/details-summary-html-native/gnd.json +2 -6
- package/fixtures/endnotes-epub-type/gnd.json +9 -26
- package/fixtures/endnotes-role-aria/gnd.json +4 -14
- package/fixtures/epigraph-epub-type/gnd.json +3 -7
- package/fixtures/epigraph-role-aria/gnd.json +1 -3
- package/fixtures/epilogue-epub-type/gnd.json +3 -7
- package/fixtures/epilogue-role-aria/gnd.json +1 -3
- package/fixtures/errata-epub-type/gnd.json +3 -7
- package/fixtures/errata-role-aria/gnd.json +1 -3
- package/fixtures/example-epub-type/gnd.json +5 -14
- package/fixtures/example-role-aria/gnd.json +1 -3
- package/fixtures/figure-aria-label-caption/gnd.json +19 -0
- package/fixtures/figure-aria-label-caption/input.html +1 -0
- package/fixtures/figure-aria-label-caption/meta.json +12 -0
- package/fixtures/figure-basic-html-native/gnd.json +4 -8
- package/fixtures/figure-basic-role-aria/gnd.json +4 -8
- package/fixtures/figure-caption-block-content/gnd.json +33 -0
- package/fixtures/figure-caption-block-content/input.html +7 -0
- package/fixtures/figure-caption-block-content/meta.json +14 -0
- package/fixtures/figure-caption-element-html-native/gnd.json +14 -8
- package/fixtures/figure-caption-element-html-native/meta.json +1 -1
- package/fixtures/figure-caption-element-role-aria/gnd.json +14 -8
- package/fixtures/figure-caption-element-role-aria/meta.json +1 -1
- package/fixtures/figure-caption-html-native/gnd.json +3 -5
- package/fixtures/figure-caption-role-aria/gnd.json +3 -5
- package/fixtures/figure-credit-nested-in-aria-labelledby-caption/gnd.json +13 -21
- package/fixtures/figure-credit-nested-in-caption/gnd.json +13 -21
- package/fixtures/figure-credit-nested-in-caption/meta.json +1 -1
- package/fixtures/figure-credit-role-aria/gnd.json +12 -18
- package/fixtures/figure-credit-role-aria/meta.json +1 -1
- package/fixtures/figure-describedby/gnd.json +4 -8
- package/fixtures/figure-epub-type/gnd.json +5 -11
- package/fixtures/figure-no-description/gnd.json +3 -7
- package/fixtures/footnote-epub-type/gnd.json +5 -14
- package/fixtures/footnote-role-aria/gnd.json +17 -31
- package/fixtures/foreword-epub-type/gnd.json +3 -7
- package/fixtures/foreword-role-aria/gnd.json +1 -3
- package/fixtures/glossary-epub-type/gnd.json +10 -22
- package/fixtures/glossary-role-aria/gnd.json +5 -15
- package/fixtures/glossref-epub-type/gnd.json +3 -8
- package/fixtures/glossref-role-aria/gnd.json +2 -5
- package/fixtures/glossref-role-aria-mid-sentence/gnd.json +5 -13
- package/fixtures/glossref-sole-content/gnd.json +11 -26
- package/fixtures/glossref-target-in-glossary-role-aria/gnd.json +17 -32
- package/fixtures/glossref-target-percent-encoded/gnd.json +17 -32
- package/fixtures/glossref-target-percent-encoded/meta.json +1 -1
- package/fixtures/header-html-native/gnd.json +1 -3
- package/fixtures/heading-html-native/gnd.json +6 -18
- package/fixtures/heading-role-aria/gnd.json +6 -18
- package/fixtures/heading-role-presentation/gnd.json +6 -12
- package/fixtures/hidden-aria-hidden-html-native/gnd.json +2 -6
- package/fixtures/hidden-attribute-html-native/gnd.json +2 -6
- package/fixtures/image-alt-html-native/gnd.json +3 -5
- package/fixtures/image-decorative-empty-alt/gnd.json +2 -6
- package/fixtures/image-decorative-role-presentation/gnd.json +2 -6
- package/fixtures/image-decorative-whitespace-alt/gnd.json +4 -8
- package/fixtures/image-no-description/gnd.json +2 -4
- package/fixtures/image-role-aria/gnd.json +3 -5
- package/fixtures/index-epub-type/gnd.json +11 -32
- package/fixtures/index-role-aria/gnd.json +10 -28
- package/fixtures/introduction-epub-type/gnd.json +3 -7
- package/fixtures/introduction-role-aria/gnd.json +1 -3
- package/fixtures/landmarks-epub-type/gnd.json +15 -43
- package/fixtures/language-alt-inherited/gnd.json +8 -12
- package/fixtures/language-alt-own-lang/gnd.json +8 -12
- package/fixtures/language-block/gnd.json +5 -11
- package/fixtures/language-block-empty-lang/gnd.json +1 -3
- package/fixtures/language-describedby-shared/gnd.json +19 -27
- package/fixtures/language-document/gnd.json +3 -7
- package/fixtures/language-empty-lang-stops-inheritance/gnd.json +6 -10
- package/fixtures/language-figcaption/gnd.json +13 -16
- package/fixtures/language-figcaption/meta.json +1 -1
- package/fixtures/language-figcaption-credit/gnd.json +17 -25
- package/fixtures/language-figcaption-credit/meta.json +1 -1
- package/fixtures/language-figcaption-switches/gnd.json +13 -15
- package/fixtures/language-figcaption-switches/meta.json +1 -1
- package/fixtures/language-figcaption-switches-throughout/gnd.json +13 -16
- package/fixtures/language-figcaption-switches-throughout/meta.json +1 -1
- package/fixtures/language-inline-case-insensitive/gnd.json +3 -5
- package/fixtures/language-inline-case-insensitive-ssml/gnd.json +3 -5
- package/fixtures/language-inline-empty-lang/gnd.json +3 -5
- package/fixtures/language-inline-empty-lang-formatted/gnd.json +1 -3
- package/fixtures/language-inline-empty-lang-only/gnd.json +1 -3
- package/fixtures/language-inline-empty-lang-undeclared/gnd.json +3 -5
- package/fixtures/language-inline-lang-attribute/gnd.json +3 -5
- package/fixtures/language-inline-nested/gnd.json +3 -5
- package/fixtures/language-inline-repeated/gnd.json +3 -5
- package/fixtures/language-inline-two-languages/gnd.json +3 -5
- package/fixtures/language-labelledby-target/gnd.json +8 -12
- package/fixtures/language-labelledby-target-aria-label/gnd.json +12 -16
- package/fixtures/language-labelledby-target-switches/gnd.json +6 -10
- package/fixtures/language-labelledby-targets-case/gnd.json +11 -17
- package/fixtures/language-labelledby-targets-differ/gnd.json +9 -15
- package/fixtures/language-link-switches/gnd.json +10 -13
- package/fixtures/language-pagebreak-label/gnd.json +10 -14
- package/fixtures/language-undeclared-description/gnd.json +4 -8
- package/fixtures/language-xml-lang-empty-html-inherits/gnd.json +8 -12
- package/fixtures/language-xml-lang-empty-html-lang-applies/gnd.json +8 -12
- package/fixtures/language-xml-lang-empty-xhtml/gnd.json +6 -10
- package/fixtures/language-xml-lang-over-lang/gnd.json +8 -12
- package/fixtures/link-containing-image/gnd.json +12 -17
- package/fixtures/link-containing-pagebreak/gnd.json +12 -17
- package/fixtures/link-content-conversion/gnd.json +14 -20
- package/fixtures/link-content-identity/gnd.json +7 -8
- package/fixtures/link-content-words/gnd.json +9 -14
- package/fixtures/list-aria-posinset-setsize/gnd.json +3 -7
- package/fixtures/list-epub-type/gnd.json +6 -14
- package/fixtures/list-html-native/gnd.json +4 -12
- package/fixtures/list-item-posinset-override/gnd.json +7 -15
- package/fixtures/list-item-value-override/gnd.json +7 -15
- package/fixtures/list-ordered-html-native/gnd.json +7 -15
- package/fixtures/list-ordered-reversed/gnd.json +7 -15
- package/fixtures/list-ordered-start/gnd.json +7 -15
- package/fixtures/list-role-aria/gnd.json +4 -12
- package/fixtures/listitem-role-presentation/gnd.json +5 -11
- package/fixtures/loa-epub-type/gnd.json +11 -32
- package/fixtures/loi-epub-type/gnd.json +11 -32
- package/fixtures/lot-epub-type/gnd.json +11 -32
- package/fixtures/lov-epub-type/gnd.json +11 -32
- package/fixtures/main-html-native/gnd.json +1 -3
- package/fixtures/main-role-aria/gnd.json +1 -3
- package/fixtures/manifest.json +51 -11
- package/fixtures/math-html-native/gnd.json +5 -7
- package/fixtures/math-inline/gnd.json +10 -14
- package/fixtures/math-no-description/gnd.json +3 -5
- package/fixtures/math-role-aria/gnd.json +5 -7
- package/fixtures/navigation-html-native/gnd.json +1 -3
- package/fixtures/navigation-role-aria/gnd.json +1 -3
- package/fixtures/nested-blockquote/gnd.json +3 -9
- package/fixtures/nested-section/gnd.json +3 -9
- package/fixtures/noteref-after-closing-straight-quote/gnd.json +13 -20
- package/fixtures/noteref-after-closing-straight-quote-split/gnd.json +12 -17
- package/fixtures/noteref-enclosed-across-formatting/gnd.json +13 -20
- package/fixtures/noteref-enclosed-adjacent-pairs/gnd.json +38 -62
- package/fixtures/noteref-enclosed-adjacent-text/gnd.json +16 -23
- package/fixtures/noteref-enclosed-before-formatting/gnd.json +16 -23
- package/fixtures/noteref-enclosed-guillemets-french/gnd.json +42 -63
- package/fixtures/noteref-enclosed-quotes-chinese/gnd.json +15 -25
- package/fixtures/noteref-enclosed-quotes-german/gnd.json +49 -75
- package/fixtures/noteref-enclosed-quotes-swedish/gnd.json +28 -42
- package/fixtures/noteref-enclosed-straight-quotes/gnd.json +13 -20
- package/fixtures/noteref-in-lone-block/gnd.json +12 -17
- package/fixtures/noteref-role-aria/gnd.json +1 -3
- package/fixtures/noteref-target-in-endnotes-epub-type/gnd.json +10 -29
- package/fixtures/noteref-target-in-endnotes-role-aria/gnd.json +9 -26
- package/fixtures/noteref-target-malformed-escape/gnd.json +13 -20
- package/fixtures/noteref-target-percent-encoded/gnd.json +13 -20
- package/fixtures/notice-epub-type/gnd.json +3 -7
- package/fixtures/notice-role-aria/gnd.json +1 -3
- package/fixtures/pagebreak-epub-type/gnd.json +6 -14
- package/fixtures/pagebreak-role-aria/gnd.json +5 -11
- package/fixtures/pagelist-epub-type/gnd.json +15 -43
- package/fixtures/pagelist-role-aria/gnd.json +14 -40
- package/fixtures/paragraph-basic/gnd.json +1 -3
- package/fixtures/part-epub-type/gnd.json +4 -11
- package/fixtures/part-role-aria/gnd.json +2 -7
- package/fixtures/preface-epub-type/gnd.json +3 -7
- package/fixtures/preface-role-aria/gnd.json +1 -3
- package/fixtures/preformatted-html-native/gnd.json +1 -3
- package/fixtures/presentation-role-aria/gnd.json +1 -3
- package/fixtures/prologue-epub-type/gnd.json +3 -7
- package/fixtures/prologue-role-aria/gnd.json +1 -3
- package/fixtures/pullquote-epub-type/gnd.json +3 -8
- package/fixtures/pullquote-role-aria/gnd.json +1 -3
- package/fixtures/qna-epub-type/gnd.json +3 -8
- package/fixtures/qna-role-aria/gnd.json +1 -3
- package/fixtures/redundant-role-body-chapter/gnd.json +3 -10
- package/fixtures/redundant-role-nested-chapter/gnd.json +4 -13
- package/fixtures/region-role-aria/gnd.json +1 -3
- package/fixtures/section-html-native/gnd.json +1 -3
- package/fixtures/separator-html-native/gnd.json +3 -9
- package/fixtures/separator-role-aria/gnd.json +3 -9
- package/fixtures/separator-with-glyphs/gnd.json +3 -9
- package/fixtures/subtitle-epub-type/gnd.json +3 -7
- package/fixtures/subtitle-role-aria/gnd.json +1 -3
- package/fixtures/summary-html-native/gnd.json +1 -3
- package/fixtures/table-aria-label-caption/gnd.json +27 -0
- package/fixtures/table-aria-label-caption/input.html +1 -0
- package/fixtures/table-aria-label-caption/meta.json +13 -0
- package/fixtures/table-caption/gnd.json +22 -42
- package/fixtures/table-caption/meta.json +1 -1
- package/fixtures/table-caption-aria-labelledby/gnd.json +28 -0
- package/fixtures/table-caption-aria-labelledby/input.html +1 -0
- package/fixtures/table-caption-aria-labelledby/meta.json +13 -0
- package/fixtures/table-caption-element-html-native/gnd.json +13 -22
- package/fixtures/table-caption-element-html-native/meta.json +1 -1
- package/fixtures/table-caption-role-aria/gnd.json +10 -15
- package/fixtures/table-cell-abbreviation/gnd.json +8 -16
- package/fixtures/table-cell-link/gnd.json +8 -19
- package/fixtures/table-cell-noteref/gnd.json +15 -25
- package/fixtures/table-colspan-html-native/gnd.json +9 -21
- package/fixtures/table-colspan-role-aria/gnd.json +9 -21
- package/fixtures/table-epub-type/gnd.json +7 -17
- package/fixtures/table-html-native/gnd.json +10 -30
- package/fixtures/table-in-role-none-wrapper/gnd.json +6 -18
- package/fixtures/table-nested-html-native/gnd.json +7 -19
- package/fixtures/table-nested-in-presentation-table/gnd.json +8 -24
- package/fixtures/table-nested-role-aria/gnd.json +7 -19
- package/fixtures/table-no-headers/gnd.json +11 -25
- package/fixtures/table-role-aria/gnd.json +10 -30
- package/fixtures/table-role-presentation-explicit-cell/gnd.json +4 -12
- package/fixtures/table-role-presentation-html-native/gnd.json +7 -17
- package/fixtures/table-role-presentation-role-aria/gnd.json +7 -17
- package/fixtures/table-rowgroup-role-aria/gnd.json +4 -10
- package/fixtures/table-rowspan-html-native/gnd.json +9 -21
- package/fixtures/table-rowspan-role-aria/gnd.json +9 -21
- package/fixtures/table-sectioning/gnd.json +10 -24
- package/fixtures/table-th-no-scope/gnd.json +11 -25
- package/fixtures/term-epub-type/gnd.json +4 -10
- package/fixtures/term-html-native/gnd.json +1 -3
- package/fixtures/term-role-aria/gnd.json +1 -3
- package/fixtures/term-span-in-dt/gnd.json +3 -9
- package/fixtures/tip-epub-type/gnd.json +3 -8
- package/fixtures/tip-role-aria/gnd.json +1 -3
- package/fixtures/toc-epub-type/gnd.json +15 -43
- package/fixtures/toc-role-aria/gnd.json +14 -40
- package/fixtures/video-html-native/gnd.json +3 -5
- package/fixtures/video-no-description/gnd.json +2 -4
- package/package.json +6 -2
- package/src/a11y.ts +3 -12
- package/src/converter.ts +10 -45
- package/src/elementHandlers.ts +3 -12
- package/src/emptyPairs.ts +35 -15
- package/src/index.ts +2 -1
- package/src/object.ts +4 -10
- package/src/textrefFragment.ts +7 -16
- package/types/src/a11y.d.ts +0 -2
- package/types/src/converter.d.ts +0 -2
- package/types/src/emptyPairs.d.ts +3 -0
- package/types/src/index.d.ts +2 -1
- package/types/src/textrefFragment.d.ts +0 -4
|
@@ -1,44 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"body"
|
|
4
|
-
],
|
|
2
|
+
"role": ["body"],
|
|
5
3
|
"children": [
|
|
6
4
|
{
|
|
7
|
-
"role": [
|
|
8
|
-
"navigation",
|
|
9
|
-
"loi"
|
|
10
|
-
],
|
|
5
|
+
"role": ["navigation", "loi"],
|
|
11
6
|
"children": [
|
|
12
7
|
{
|
|
13
|
-
"role": [
|
|
14
|
-
"list"
|
|
15
|
-
],
|
|
8
|
+
"role": ["list"],
|
|
16
9
|
"children": [
|
|
17
10
|
{
|
|
18
|
-
"role": [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
"textref": "chapter1.xhtml#fig1",
|
|
24
|
-
"text": {
|
|
25
|
-
"plain": "Figure 1. Lighthouse cross-section"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
]
|
|
11
|
+
"role": ["listItem"],
|
|
12
|
+
"text": {
|
|
13
|
+
"plain": "Figure 1. Lighthouse cross-section"
|
|
14
|
+
}
|
|
29
15
|
},
|
|
30
16
|
{
|
|
31
|
-
"role": [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
"textref": "chapter2.xhtml#fig2",
|
|
37
|
-
"text": {
|
|
38
|
-
"plain": "Figure 2. Fresnel lens diagram"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
]
|
|
17
|
+
"role": ["listItem"],
|
|
18
|
+
"text": {
|
|
19
|
+
"plain": "Figure 2. Fresnel lens diagram"
|
|
20
|
+
}
|
|
42
21
|
}
|
|
43
22
|
]
|
|
44
23
|
}
|
|
@@ -1,44 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"body"
|
|
4
|
-
],
|
|
2
|
+
"role": ["body"],
|
|
5
3
|
"children": [
|
|
6
4
|
{
|
|
7
|
-
"role": [
|
|
8
|
-
"navigation",
|
|
9
|
-
"lot"
|
|
10
|
-
],
|
|
5
|
+
"role": ["navigation", "lot"],
|
|
11
6
|
"children": [
|
|
12
7
|
{
|
|
13
|
-
"role": [
|
|
14
|
-
"list"
|
|
15
|
-
],
|
|
8
|
+
"role": ["list"],
|
|
16
9
|
"children": [
|
|
17
10
|
{
|
|
18
|
-
"role": [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
"textref": "appendix.xhtml#table1",
|
|
24
|
-
"text": {
|
|
25
|
-
"plain": "Table 1. Lighthouse construction dates"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
]
|
|
11
|
+
"role": ["listItem"],
|
|
12
|
+
"text": {
|
|
13
|
+
"plain": "Table 1. Lighthouse construction dates"
|
|
14
|
+
}
|
|
29
15
|
},
|
|
30
16
|
{
|
|
31
|
-
"role": [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
"textref": "appendix.xhtml#table2",
|
|
37
|
-
"text": {
|
|
38
|
-
"plain": "Table 2. Keeper staffing by decade"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
]
|
|
17
|
+
"role": ["listItem"],
|
|
18
|
+
"text": {
|
|
19
|
+
"plain": "Table 2. Keeper staffing by decade"
|
|
20
|
+
}
|
|
42
21
|
}
|
|
43
22
|
]
|
|
44
23
|
}
|
|
@@ -1,44 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"body"
|
|
4
|
-
],
|
|
2
|
+
"role": ["body"],
|
|
5
3
|
"children": [
|
|
6
4
|
{
|
|
7
|
-
"role": [
|
|
8
|
-
"navigation",
|
|
9
|
-
"lov"
|
|
10
|
-
],
|
|
5
|
+
"role": ["navigation", "lov"],
|
|
11
6
|
"children": [
|
|
12
7
|
{
|
|
13
|
-
"role": [
|
|
14
|
-
"list"
|
|
15
|
-
],
|
|
8
|
+
"role": ["list"],
|
|
16
9
|
"children": [
|
|
17
10
|
{
|
|
18
|
-
"role": [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
"textref": "chapter1.xhtml#video1",
|
|
24
|
-
"text": {
|
|
25
|
-
"plain": "Video 1. Lamp mechanism in motion"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
]
|
|
11
|
+
"role": ["listItem"],
|
|
12
|
+
"text": {
|
|
13
|
+
"plain": "Video 1. Lamp mechanism in motion"
|
|
14
|
+
}
|
|
29
15
|
},
|
|
30
16
|
{
|
|
31
|
-
"role": [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
"textref": "chapter3.xhtml#video2",
|
|
37
|
-
"text": {
|
|
38
|
-
"plain": "Video 2. Automation retrofit"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
]
|
|
17
|
+
"role": ["listItem"],
|
|
18
|
+
"text": {
|
|
19
|
+
"plain": "Video 2. Automation retrofit"
|
|
20
|
+
}
|
|
42
21
|
}
|
|
43
22
|
]
|
|
44
23
|
}
|
package/fixtures/manifest.json
CHANGED
|
@@ -759,6 +759,16 @@
|
|
|
759
759
|
"gnd": "gnd.json"
|
|
760
760
|
}
|
|
761
761
|
},
|
|
762
|
+
{
|
|
763
|
+
"id": "figure-aria-label-caption",
|
|
764
|
+
"dir": "figure-aria-label-caption",
|
|
765
|
+
"role": "figure",
|
|
766
|
+
"description": "A figure with an aria-label and a figcaption — the label becomes the figure's description and replaces its content, figcaption included",
|
|
767
|
+
"files": {
|
|
768
|
+
"input": "input.html",
|
|
769
|
+
"gnd": "gnd.json"
|
|
770
|
+
}
|
|
771
|
+
},
|
|
762
772
|
{
|
|
763
773
|
"id": "figure-basic-html-native",
|
|
764
774
|
"dir": "figure-basic-html-native",
|
|
@@ -779,11 +789,21 @@
|
|
|
779
789
|
"gnd": "gnd.json"
|
|
780
790
|
}
|
|
781
791
|
},
|
|
792
|
+
{
|
|
793
|
+
"id": "figure-caption-block-content",
|
|
794
|
+
"dir": "figure-caption-block-content",
|
|
795
|
+
"role": "figure",
|
|
796
|
+
"description": "A figure whose figcaption holds a heading and a paragraph. The figcaption stays a caption child whose blocks keep their own text, and the figure gets no description",
|
|
797
|
+
"files": {
|
|
798
|
+
"input": "input.html",
|
|
799
|
+
"gnd": "gnd.json"
|
|
800
|
+
}
|
|
801
|
+
},
|
|
782
802
|
{
|
|
783
803
|
"id": "figure-caption-element-html-native",
|
|
784
804
|
"dir": "figure-caption-element-html-native",
|
|
785
805
|
"role": "figure",
|
|
786
|
-
"description": "A native <figure><figcaption> with no explicit aria-labelledby — the figcaption
|
|
806
|
+
"description": "A native <figure><figcaption> with no explicit aria-labelledby — the figcaption stays a separate child with role \"caption\", and the figure gets no description. Contrast with figure-caption-html-native, which has an explicit aria-labelledby pointing at the same figcaption.",
|
|
787
807
|
"files": {
|
|
788
808
|
"input": "input.html",
|
|
789
809
|
"gnd": "gnd.json"
|
|
@@ -793,7 +813,7 @@
|
|
|
793
813
|
"id": "figure-caption-element-role-aria",
|
|
794
814
|
"dir": "figure-caption-element-role-aria",
|
|
795
815
|
"role": "figure",
|
|
796
|
-
"description": "A role=\"figure\" with a role=\"caption\" child and no explicit aria-labelledby — the caption
|
|
816
|
+
"description": "A role=\"figure\" with a role=\"caption\" child and no explicit aria-labelledby — the caption stays a separate child with role \"caption\", same as the native <figcaption> case.",
|
|
797
817
|
"files": {
|
|
798
818
|
"input": "input.html",
|
|
799
819
|
"gnd": "gnd.json"
|
|
@@ -833,7 +853,7 @@
|
|
|
833
853
|
"id": "figure-credit-nested-in-caption",
|
|
834
854
|
"dir": "figure-credit-nested-in-caption",
|
|
835
855
|
"role": "figure",
|
|
836
|
-
"description": "A figure with
|
|
856
|
+
"description": "A figure with a figcaption and no aria-labelledby, whose credit is nested inside the figcaption as a role=\"doc-credit\" span, rather than a sibling",
|
|
837
857
|
"files": {
|
|
838
858
|
"input": "input.html",
|
|
839
859
|
"gnd": "gnd.json"
|
|
@@ -843,7 +863,7 @@
|
|
|
843
863
|
"id": "figure-credit-role-aria",
|
|
844
864
|
"dir": "figure-credit-role-aria",
|
|
845
865
|
"role": "figure",
|
|
846
|
-
"description": "A figure with
|
|
866
|
+
"description": "A figure with a figcaption and no aria-labelledby, and a sibling credit line, via explicit ARIA role=\"doc-credit\" on a <p>",
|
|
847
867
|
"files": {
|
|
848
868
|
"input": "input.html",
|
|
849
869
|
"gnd": "gnd.json"
|
|
@@ -993,7 +1013,7 @@
|
|
|
993
1013
|
"id": "glossref-target-percent-encoded",
|
|
994
1014
|
"dir": "glossref-target-percent-encoded",
|
|
995
1015
|
"role": "glossref",
|
|
996
|
-
"description": "A glossref whose href is percent-encoded still finds its target
|
|
1016
|
+
"description": "A glossref whose href is percent-encoded still finds its target",
|
|
997
1017
|
"files": {
|
|
998
1018
|
"input": "input.html",
|
|
999
1019
|
"gnd": "gnd.json"
|
|
@@ -1243,7 +1263,7 @@
|
|
|
1243
1263
|
"id": "language-figcaption",
|
|
1244
1264
|
"dir": "language-figcaption",
|
|
1245
1265
|
"role": "figure",
|
|
1246
|
-
"description": "A figure's
|
|
1266
|
+
"description": "A figure's caption is in the caption's language",
|
|
1247
1267
|
"files": {
|
|
1248
1268
|
"input": "input.html",
|
|
1249
1269
|
"gnd": "gnd.json"
|
|
@@ -1253,7 +1273,7 @@
|
|
|
1253
1273
|
"id": "language-figcaption-credit",
|
|
1254
1274
|
"dir": "language-figcaption-credit",
|
|
1255
1275
|
"role": "figure",
|
|
1256
|
-
"description": "A figure's caption
|
|
1276
|
+
"description": "A figure's caption text and its nested credit each keep their own language",
|
|
1257
1277
|
"files": {
|
|
1258
1278
|
"input": "input.html",
|
|
1259
1279
|
"gnd": "gnd.json"
|
|
@@ -1263,7 +1283,7 @@
|
|
|
1263
1283
|
"id": "language-figcaption-switches",
|
|
1264
1284
|
"dir": "language-figcaption-switches",
|
|
1265
1285
|
"role": "figure",
|
|
1266
|
-
"description": "A figure's caption
|
|
1286
|
+
"description": "A figure's caption marks its language switch in SSML",
|
|
1267
1287
|
"files": {
|
|
1268
1288
|
"input": "input.html",
|
|
1269
1289
|
"gnd": "gnd.json"
|
|
@@ -1273,7 +1293,7 @@
|
|
|
1273
1293
|
"id": "language-figcaption-switches-throughout",
|
|
1274
1294
|
"dir": "language-figcaption-switches-throughout",
|
|
1275
1295
|
"role": "figure",
|
|
1276
|
-
"description": "A figure's caption
|
|
1296
|
+
"description": "A figure's caption is in the language its text switches to throughout",
|
|
1277
1297
|
"files": {
|
|
1278
1298
|
"input": "input.html",
|
|
1279
1299
|
"gnd": "gnd.json"
|
|
@@ -2249,11 +2269,31 @@
|
|
|
2249
2269
|
"gnd": "gnd.json"
|
|
2250
2270
|
}
|
|
2251
2271
|
},
|
|
2272
|
+
{
|
|
2273
|
+
"id": "table-aria-label-caption",
|
|
2274
|
+
"dir": "table-aria-label-caption",
|
|
2275
|
+
"role": "table",
|
|
2276
|
+
"description": "A table with an aria-label and a <caption> — the label becomes the table's description and the caption stays a caption child",
|
|
2277
|
+
"files": {
|
|
2278
|
+
"input": "input.html",
|
|
2279
|
+
"gnd": "gnd.json"
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2252
2282
|
{
|
|
2253
2283
|
"id": "table-caption",
|
|
2254
2284
|
"dir": "table-caption",
|
|
2255
2285
|
"role": "table",
|
|
2256
|
-
"description": "A table with an accessible name via aria-label — the {description} branch of table's own announcement template.
|
|
2286
|
+
"description": "A table with an accessible name via aria-label — the {description} branch of table's own announcement template. A native <caption> stays a caption child instead (see table-caption-element-html-native)",
|
|
2287
|
+
"files": {
|
|
2288
|
+
"input": "input.html",
|
|
2289
|
+
"gnd": "gnd.json"
|
|
2290
|
+
}
|
|
2291
|
+
},
|
|
2292
|
+
{
|
|
2293
|
+
"id": "table-caption-aria-labelledby",
|
|
2294
|
+
"dir": "table-caption-aria-labelledby",
|
|
2295
|
+
"role": "table",
|
|
2296
|
+
"description": "A table labelled via aria-labelledby by its own <caption> — the caption text becomes the table's description, and the caption is still read as a caption child",
|
|
2257
2297
|
"files": {
|
|
2258
2298
|
"input": "input.html",
|
|
2259
2299
|
"gnd": "gnd.json"
|
|
@@ -2263,7 +2303,7 @@
|
|
|
2263
2303
|
"id": "table-caption-element-html-native",
|
|
2264
2304
|
"dir": "table-caption-element-html-native",
|
|
2265
2305
|
"role": "table",
|
|
2266
|
-
"description": "A native <table><caption> with no explicit aria-labelledby — the caption becomes a separate child node with role \"caption\", not folded into the table's own description
|
|
2306
|
+
"description": "A native <table><caption> with no explicit aria-labelledby — the caption becomes a separate child node with role \"caption\", not folded into the table's own description. Contrast with table-caption (explicit aria-label, which populates description) and table-caption-role-aria (the same via role=\"caption\")",
|
|
2267
2307
|
"files": {
|
|
2268
2308
|
"input": "input.html",
|
|
2269
2309
|
"gnd": "gnd.json"
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"math"
|
|
4
|
-
],
|
|
5
|
-
"text": {
|
|
6
|
-
"ssml": "<math xmlns=\"http://www.w3.org/1998/Math/MathML\" alttext=\"x squared plus y squared equals z squared\">\n <msup><mi>x</mi><mn>2</mn></msup>\n <mo>+</mo>\n <msup><mi>y</mi><mn>2</mn></msup>\n <mo>=</mo>\n <msup><mi>z</mi><mn>2</mn></msup>\n</math>"
|
|
7
|
-
},
|
|
8
|
-
"textref": "#css(math)",
|
|
2
|
+
"role": ["math"],
|
|
9
3
|
"description": {
|
|
10
4
|
"text": {
|
|
11
5
|
"plain": "x squared plus y squared equals z squared"
|
|
12
6
|
}
|
|
7
|
+
},
|
|
8
|
+
"textref": "#css(math)",
|
|
9
|
+
"text": {
|
|
10
|
+
"ssml": "<math xmlns=\"http://www.w3.org/1998/Math/MathML\" alttext=\"x squared plus y squared equals z squared\">\n <msup><mi>x</mi><mn>2</mn></msup>\n <mo>+</mo>\n <msup><mi>y</mi><mn>2</mn></msup>\n <mo>=</mo>\n <msup><mi>z</mi><mn>2</mn></msup>\n</math>"
|
|
13
11
|
}
|
|
14
12
|
}
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
+
"role": ["paragraph"],
|
|
3
|
+
"text": {
|
|
4
|
+
"language": "en",
|
|
5
|
+
"plain": "Since holds.",
|
|
6
|
+
"ssml": "Since <readium:math id=\"math1\" /> holds."
|
|
7
|
+
},
|
|
2
8
|
"children": [
|
|
3
9
|
{
|
|
10
|
+
"role": ["math"],
|
|
4
11
|
"id": "math1",
|
|
5
|
-
"
|
|
6
|
-
"math"
|
|
7
|
-
],
|
|
12
|
+
"textref": "#css(math)",
|
|
8
13
|
"text": {
|
|
9
14
|
"ssml": "<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><mi>x</mi></math>"
|
|
10
|
-
}
|
|
11
|
-
"textref": "#css(math)"
|
|
15
|
+
}
|
|
12
16
|
}
|
|
13
|
-
]
|
|
14
|
-
"role": [
|
|
15
|
-
"paragraph"
|
|
16
|
-
],
|
|
17
|
-
"text": {
|
|
18
|
-
"plain": "Since holds.",
|
|
19
|
-
"ssml": "Since <readium:math id=\"math1\" /> holds.",
|
|
20
|
-
"language": "en"
|
|
21
|
-
}
|
|
17
|
+
]
|
|
22
18
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
|
|
4
|
-
],
|
|
2
|
+
"role": ["math"],
|
|
3
|
+
"textref": "#css(math)",
|
|
5
4
|
"text": {
|
|
6
5
|
"ssml": "<math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n <msup><mi>x</mi><mn>2</mn></msup>\n <mo>+</mo>\n <msup><mi>y</mi><mn>2</mn></msup>\n <mo>=</mo>\n <msup><mi>z</mi><mn>2</mn></msup>\n</math>"
|
|
7
|
-
}
|
|
8
|
-
"textref": "#css(math)"
|
|
6
|
+
}
|
|
9
7
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"math"
|
|
4
|
-
],
|
|
5
|
-
"text": {
|
|
6
|
-
"plain": "x² + y² = z²"
|
|
7
|
-
},
|
|
8
|
-
"textref": "#css(span)",
|
|
2
|
+
"role": ["math"],
|
|
9
3
|
"description": {
|
|
10
4
|
"text": {
|
|
11
5
|
"plain": "x squared plus y squared equals z squared"
|
|
12
6
|
}
|
|
7
|
+
},
|
|
8
|
+
"textref": "#css(span)",
|
|
9
|
+
"text": {
|
|
10
|
+
"plain": "x² + y² = z²"
|
|
13
11
|
}
|
|
14
12
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"role": ["blockquote"],
|
|
2
3
|
"children": [
|
|
3
4
|
{
|
|
5
|
+
"role": ["blockquote"],
|
|
4
6
|
"children": [
|
|
5
7
|
{
|
|
6
|
-
"role": [
|
|
7
|
-
"paragraph"
|
|
8
|
-
],
|
|
8
|
+
"role": ["paragraph"],
|
|
9
9
|
"text": {
|
|
10
10
|
"plain": "The light must never go out."
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
],
|
|
14
|
-
"role": [
|
|
15
|
-
"blockquote"
|
|
16
13
|
]
|
|
17
14
|
}
|
|
18
|
-
],
|
|
19
|
-
"role": [
|
|
20
|
-
"blockquote"
|
|
21
15
|
]
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"role": ["section"],
|
|
2
3
|
"children": [
|
|
3
4
|
{
|
|
5
|
+
"role": ["section"],
|
|
4
6
|
"children": [
|
|
5
7
|
{
|
|
6
|
-
"role": [
|
|
7
|
-
"paragraph"
|
|
8
|
-
],
|
|
8
|
+
"role": ["paragraph"],
|
|
9
9
|
"text": {
|
|
10
10
|
"plain": "The keeper climbed the stairs."
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
],
|
|
14
|
-
"role": [
|
|
15
|
-
"section"
|
|
16
13
|
]
|
|
17
14
|
}
|
|
18
|
-
],
|
|
19
|
-
"role": [
|
|
20
|
-
"section"
|
|
21
15
|
]
|
|
22
16
|
}
|
|
@@ -1,32 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
+
"role": ["paragraph"],
|
|
3
|
+
"text": {
|
|
4
|
+
"language": "en",
|
|
5
|
+
"plain": "He said \"hello\" \"next\"",
|
|
6
|
+
"ssml": "He said \"hello\"<readium:noteref id=\"n\" /> \"next\""
|
|
7
|
+
},
|
|
2
8
|
"children": [
|
|
3
9
|
{
|
|
10
|
+
"role": ["noteref"],
|
|
4
11
|
"id": "n",
|
|
12
|
+
"text": {
|
|
13
|
+
"plain": "1"
|
|
14
|
+
},
|
|
5
15
|
"children": [
|
|
6
16
|
{
|
|
7
|
-
"role": [
|
|
8
|
-
"aside",
|
|
9
|
-
"footnote"
|
|
10
|
-
],
|
|
17
|
+
"role": ["aside", "footnote"],
|
|
11
18
|
"text": {
|
|
12
19
|
"plain": "Note."
|
|
13
20
|
}
|
|
14
21
|
}
|
|
15
|
-
]
|
|
16
|
-
"role": [
|
|
17
|
-
"noteref"
|
|
18
|
-
],
|
|
19
|
-
"text": {
|
|
20
|
-
"plain": "1"
|
|
21
|
-
}
|
|
22
|
+
]
|
|
22
23
|
}
|
|
23
|
-
]
|
|
24
|
-
"role": [
|
|
25
|
-
"paragraph"
|
|
26
|
-
],
|
|
27
|
-
"text": {
|
|
28
|
-
"plain": "He said \"hello\" \"next\"",
|
|
29
|
-
"ssml": "He said \"hello\"<readium:noteref id=\"n\" /> \"next\"",
|
|
30
|
-
"language": "en"
|
|
31
|
-
}
|
|
24
|
+
]
|
|
32
25
|
}
|
|
@@ -6,33 +6,28 @@
|
|
|
6
6
|
}
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
|
+
"text": {
|
|
10
|
+
"language": "en",
|
|
11
|
+
"plain": "world\" \"next\"",
|
|
12
|
+
"ssml": "world\"<readium:noteref id=\"n\" /> \"next\""
|
|
13
|
+
},
|
|
9
14
|
"children": [
|
|
10
15
|
{
|
|
16
|
+
"role": ["noteref"],
|
|
11
17
|
"id": "n",
|
|
18
|
+
"text": {
|
|
19
|
+
"plain": "1"
|
|
20
|
+
},
|
|
12
21
|
"children": [
|
|
13
22
|
{
|
|
14
|
-
"role": [
|
|
15
|
-
"aside",
|
|
16
|
-
"footnote"
|
|
17
|
-
],
|
|
23
|
+
"role": ["aside", "footnote"],
|
|
18
24
|
"text": {
|
|
19
25
|
"plain": "Note."
|
|
20
26
|
}
|
|
21
27
|
}
|
|
22
|
-
]
|
|
23
|
-
"role": [
|
|
24
|
-
"noteref"
|
|
25
|
-
],
|
|
26
|
-
"text": {
|
|
27
|
-
"plain": "1"
|
|
28
|
-
}
|
|
28
|
+
]
|
|
29
29
|
}
|
|
30
|
-
]
|
|
31
|
-
"text": {
|
|
32
|
-
"plain": "world\" \"next\"",
|
|
33
|
-
"ssml": "world\"<readium:noteref id=\"n\" /> \"next\"",
|
|
34
|
-
"language": "en"
|
|
35
|
-
}
|
|
30
|
+
]
|
|
36
31
|
}
|
|
37
32
|
]
|
|
38
33
|
}
|
|
@@ -1,32 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
+
"role": ["paragraph"],
|
|
3
|
+
"text": {
|
|
4
|
+
"language": "en",
|
|
5
|
+
"plain": "Text after.",
|
|
6
|
+
"ssml": "Text (<readium:noteref id=\"n\" /> <emphasis>)</emphasis> after."
|
|
7
|
+
},
|
|
2
8
|
"children": [
|
|
3
9
|
{
|
|
10
|
+
"role": ["noteref"],
|
|
4
11
|
"id": "n",
|
|
12
|
+
"text": {
|
|
13
|
+
"plain": "1"
|
|
14
|
+
},
|
|
5
15
|
"children": [
|
|
6
16
|
{
|
|
7
|
-
"role": [
|
|
8
|
-
"aside",
|
|
9
|
-
"footnote"
|
|
10
|
-
],
|
|
17
|
+
"role": ["aside", "footnote"],
|
|
11
18
|
"text": {
|
|
12
19
|
"plain": "Note."
|
|
13
20
|
}
|
|
14
21
|
}
|
|
15
|
-
]
|
|
16
|
-
"role": [
|
|
17
|
-
"noteref"
|
|
18
|
-
],
|
|
19
|
-
"text": {
|
|
20
|
-
"plain": "1"
|
|
21
|
-
}
|
|
22
|
+
]
|
|
22
23
|
}
|
|
23
|
-
]
|
|
24
|
-
"role": [
|
|
25
|
-
"paragraph"
|
|
26
|
-
],
|
|
27
|
-
"text": {
|
|
28
|
-
"plain": "Text after.",
|
|
29
|
-
"ssml": "Text (<readium:noteref id=\"n\" /> <emphasis>)</emphasis> after.",
|
|
30
|
-
"language": "en"
|
|
31
|
-
}
|
|
24
|
+
]
|
|
32
25
|
}
|