@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,46 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
+
"role": ["paragraph"],
|
|
3
|
+
"text": {
|
|
4
|
+
"language": "en",
|
|
5
|
+
"plain": "This text has a footnote in the middle of a sentence.",
|
|
6
|
+
"ssml": "This text has a footnote <readium:noteref id=\"noteref1\" /> in the middle of a sentence."
|
|
7
|
+
},
|
|
2
8
|
"children": [
|
|
3
9
|
{
|
|
4
|
-
"role": [
|
|
5
|
-
|
|
6
|
-
],
|
|
10
|
+
"role": ["noteref"],
|
|
11
|
+
"id": "noteref1",
|
|
7
12
|
"text": {
|
|
8
|
-
"plain": "
|
|
9
|
-
"ssml": "This text has a footnote <readium:noteref id=\"noteref1\" /> in the middle of a sentence.",
|
|
10
|
-
"language": "en"
|
|
13
|
+
"plain": "[1]"
|
|
11
14
|
},
|
|
12
15
|
"children": [
|
|
13
16
|
{
|
|
14
|
-
"role": [
|
|
15
|
-
"noteref"
|
|
16
|
-
],
|
|
17
|
-
"id": "noteref1",
|
|
17
|
+
"role": ["aside", "footnote"],
|
|
18
18
|
"text": {
|
|
19
|
-
"
|
|
19
|
+
"language": "en",
|
|
20
|
+
"plain": "Text of the footnote.",
|
|
21
|
+
"ssml": "<readium:backlink id=\"backlink1\" /> Text of the footnote."
|
|
20
22
|
},
|
|
21
23
|
"children": [
|
|
22
24
|
{
|
|
23
|
-
"role": [
|
|
24
|
-
|
|
25
|
-
"footnote"
|
|
26
|
-
],
|
|
25
|
+
"role": ["backlink"],
|
|
26
|
+
"id": "backlink1",
|
|
27
27
|
"text": {
|
|
28
|
-
"plain": "
|
|
29
|
-
|
|
30
|
-
"language": "en"
|
|
31
|
-
},
|
|
32
|
-
"children": [
|
|
33
|
-
{
|
|
34
|
-
"id": "backlink1",
|
|
35
|
-
"role": [
|
|
36
|
-
"backlink"
|
|
37
|
-
],
|
|
38
|
-
"text": {
|
|
39
|
-
"plain": "1."
|
|
40
|
-
},
|
|
41
|
-
"textref": "#noteref1"
|
|
42
|
-
}
|
|
43
|
-
]
|
|
28
|
+
"plain": "1."
|
|
29
|
+
}
|
|
44
30
|
}
|
|
45
31
|
]
|
|
46
32
|
}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"body"
|
|
4
|
-
],
|
|
2
|
+
"role": ["body"],
|
|
5
3
|
"children": [
|
|
6
4
|
{
|
|
5
|
+
"role": ["foreword"],
|
|
7
6
|
"text": {
|
|
8
7
|
"plain": "A respected maritime historian introduces this account of the coastline's lighthouses."
|
|
9
|
-
}
|
|
10
|
-
"role": [
|
|
11
|
-
"foreword"
|
|
12
|
-
]
|
|
8
|
+
}
|
|
13
9
|
}
|
|
14
10
|
]
|
|
15
11
|
}
|
|
@@ -1,44 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"body"
|
|
4
|
-
],
|
|
2
|
+
"role": ["body"],
|
|
5
3
|
"children": [
|
|
6
4
|
{
|
|
7
|
-
"role": [
|
|
8
|
-
"glossary"
|
|
9
|
-
],
|
|
5
|
+
"role": ["glossary"],
|
|
10
6
|
"children": [
|
|
11
7
|
{
|
|
8
|
+
"role": ["term"],
|
|
12
9
|
"text": {
|
|
13
10
|
"plain": "Fresnel lens"
|
|
14
|
-
}
|
|
15
|
-
"role": [
|
|
16
|
-
"term"
|
|
17
|
-
]
|
|
11
|
+
}
|
|
18
12
|
},
|
|
19
13
|
{
|
|
14
|
+
"role": ["definition"],
|
|
20
15
|
"text": {
|
|
21
16
|
"plain": "A compact lens for focusing light."
|
|
22
|
-
}
|
|
23
|
-
"role": [
|
|
24
|
-
"definition"
|
|
25
|
-
]
|
|
17
|
+
}
|
|
26
18
|
},
|
|
27
19
|
{
|
|
20
|
+
"role": ["term"],
|
|
28
21
|
"text": {
|
|
29
22
|
"plain": "Keeper"
|
|
30
|
-
}
|
|
31
|
-
"role": [
|
|
32
|
-
"term"
|
|
33
|
-
]
|
|
23
|
+
}
|
|
34
24
|
},
|
|
35
25
|
{
|
|
26
|
+
"role": ["definition"],
|
|
36
27
|
"text": {
|
|
37
28
|
"plain": "A person responsible for maintaining a lighthouse."
|
|
38
|
-
}
|
|
39
|
-
"role": [
|
|
40
|
-
"definition"
|
|
41
|
-
]
|
|
29
|
+
}
|
|
42
30
|
}
|
|
43
31
|
]
|
|
44
32
|
}
|
|
@@ -1,41 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
+
"role": ["glossary"],
|
|
2
3
|
"children": [
|
|
3
4
|
{
|
|
5
|
+
"role": ["term"],
|
|
4
6
|
"id": "fresnel-lens",
|
|
5
|
-
"role": [
|
|
6
|
-
"term"
|
|
7
|
-
],
|
|
8
7
|
"text": {
|
|
9
8
|
"plain": "Fresnel lens"
|
|
10
9
|
}
|
|
11
10
|
},
|
|
12
11
|
{
|
|
13
|
-
"role": [
|
|
14
|
-
"definition"
|
|
15
|
-
],
|
|
12
|
+
"role": ["definition"],
|
|
16
13
|
"text": {
|
|
17
14
|
"plain": "A compact lens for focusing light."
|
|
18
15
|
}
|
|
19
16
|
},
|
|
20
17
|
{
|
|
18
|
+
"role": ["term"],
|
|
21
19
|
"id": "keeper",
|
|
22
|
-
"role": [
|
|
23
|
-
"term"
|
|
24
|
-
],
|
|
25
20
|
"text": {
|
|
26
21
|
"plain": "Keeper"
|
|
27
22
|
}
|
|
28
23
|
},
|
|
29
24
|
{
|
|
30
|
-
"role": [
|
|
31
|
-
"definition"
|
|
32
|
-
],
|
|
25
|
+
"role": ["definition"],
|
|
33
26
|
"text": {
|
|
34
27
|
"plain": "A person responsible for maintaining a lighthouse."
|
|
35
28
|
}
|
|
36
29
|
}
|
|
37
|
-
],
|
|
38
|
-
"role": [
|
|
39
|
-
"glossary"
|
|
40
30
|
]
|
|
41
31
|
}
|
|
@@ -1,32 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
+
"role": ["paragraph"],
|
|
2
3
|
"text": {
|
|
3
4
|
"language": "en",
|
|
4
5
|
"plain": "A text-to-speech system is composed of two parts: a front-end and a back-end.",
|
|
5
6
|
"ssml": "A text-to-speech system is composed of two parts: a <readium:glossref id=\"glossref1\" /> and a <readium:glossref id=\"glossref2\" />."
|
|
6
7
|
},
|
|
7
|
-
"role": [
|
|
8
|
-
"paragraph"
|
|
9
|
-
],
|
|
10
8
|
"children": [
|
|
11
9
|
{
|
|
10
|
+
"role": ["glossref"],
|
|
12
11
|
"id": "glossref1",
|
|
13
|
-
"textref": "#gloss-front-end",
|
|
14
12
|
"text": {
|
|
15
13
|
"plain": "front-end"
|
|
16
|
-
}
|
|
17
|
-
"role": [
|
|
18
|
-
"glossref"
|
|
19
|
-
]
|
|
14
|
+
}
|
|
20
15
|
},
|
|
21
16
|
{
|
|
17
|
+
"role": ["glossref"],
|
|
22
18
|
"id": "glossref2",
|
|
23
|
-
"textref": "#gloss-back-end",
|
|
24
19
|
"text": {
|
|
25
20
|
"plain": "back-end"
|
|
26
|
-
}
|
|
27
|
-
"role": [
|
|
28
|
-
"glossref"
|
|
29
|
-
]
|
|
21
|
+
}
|
|
30
22
|
}
|
|
31
23
|
]
|
|
32
24
|
}
|
|
@@ -1,61 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"children": [
|
|
3
3
|
{
|
|
4
|
+
"role": ["paragraph"],
|
|
4
5
|
"children": [
|
|
5
6
|
{
|
|
7
|
+
"role": ["glossref"],
|
|
8
|
+
"text": {
|
|
9
|
+
"plain": "Fresnel lens"
|
|
10
|
+
},
|
|
6
11
|
"children": [
|
|
7
12
|
{
|
|
8
|
-
"role": [
|
|
9
|
-
"term"
|
|
10
|
-
],
|
|
13
|
+
"role": ["term"],
|
|
11
14
|
"text": {
|
|
12
15
|
"plain": "Fresnel lens"
|
|
13
16
|
}
|
|
14
17
|
},
|
|
15
18
|
{
|
|
16
|
-
"role": [
|
|
17
|
-
"definition"
|
|
18
|
-
],
|
|
19
|
+
"role": ["definition"],
|
|
19
20
|
"text": {
|
|
20
21
|
"plain": "A compact lens for focusing light."
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
|
-
]
|
|
24
|
-
"role": [
|
|
25
|
-
"glossref"
|
|
26
|
-
],
|
|
27
|
-
"text": {
|
|
28
|
-
"plain": "Fresnel lens"
|
|
29
|
-
},
|
|
30
|
-
"textref": "#fresnel-lens"
|
|
24
|
+
]
|
|
31
25
|
}
|
|
32
|
-
],
|
|
33
|
-
"role": [
|
|
34
|
-
"paragraph"
|
|
35
26
|
]
|
|
36
27
|
},
|
|
37
28
|
{
|
|
29
|
+
"role": ["glossary"],
|
|
38
30
|
"children": [
|
|
39
31
|
{
|
|
32
|
+
"role": ["term"],
|
|
40
33
|
"id": "fresnel-lens",
|
|
41
|
-
"role": [
|
|
42
|
-
"term"
|
|
43
|
-
],
|
|
44
34
|
"text": {
|
|
45
35
|
"plain": "Fresnel lens"
|
|
46
36
|
}
|
|
47
37
|
},
|
|
48
38
|
{
|
|
49
|
-
"role": [
|
|
50
|
-
"definition"
|
|
51
|
-
],
|
|
39
|
+
"role": ["definition"],
|
|
52
40
|
"text": {
|
|
53
41
|
"plain": "A compact lens for focusing light."
|
|
54
42
|
}
|
|
55
43
|
}
|
|
56
|
-
],
|
|
57
|
-
"role": [
|
|
58
|
-
"glossary"
|
|
59
44
|
]
|
|
60
45
|
}
|
|
61
46
|
]
|
|
@@ -1,67 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"children": [
|
|
3
3
|
{
|
|
4
|
+
"role": ["paragraph"],
|
|
5
|
+
"text": {
|
|
6
|
+
"language": "en",
|
|
7
|
+
"plain": "The light passes through a Fresnel lens at the top.",
|
|
8
|
+
"ssml": "The light passes through a <readium:glossref id=\"glossref1\" /> at the top."
|
|
9
|
+
},
|
|
4
10
|
"children": [
|
|
5
11
|
{
|
|
12
|
+
"role": ["glossref"],
|
|
6
13
|
"id": "glossref1",
|
|
14
|
+
"text": {
|
|
15
|
+
"plain": "Fresnel lens"
|
|
16
|
+
},
|
|
7
17
|
"children": [
|
|
8
18
|
{
|
|
9
|
-
"role": [
|
|
10
|
-
"term"
|
|
11
|
-
],
|
|
19
|
+
"role": ["term"],
|
|
12
20
|
"text": {
|
|
13
21
|
"plain": "Fresnel lens"
|
|
14
22
|
}
|
|
15
23
|
},
|
|
16
24
|
{
|
|
17
|
-
"role": [
|
|
18
|
-
"definition"
|
|
19
|
-
],
|
|
25
|
+
"role": ["definition"],
|
|
20
26
|
"text": {
|
|
21
27
|
"plain": "A compact lens for focusing light."
|
|
22
28
|
}
|
|
23
29
|
}
|
|
24
|
-
]
|
|
25
|
-
"role": [
|
|
26
|
-
"glossref"
|
|
27
|
-
],
|
|
28
|
-
"text": {
|
|
29
|
-
"plain": "Fresnel lens"
|
|
30
|
-
},
|
|
31
|
-
"textref": "#fresnel-lens"
|
|
30
|
+
]
|
|
32
31
|
}
|
|
33
|
-
]
|
|
34
|
-
"role": [
|
|
35
|
-
"paragraph"
|
|
36
|
-
],
|
|
37
|
-
"text": {
|
|
38
|
-
"plain": "The light passes through a Fresnel lens at the top.",
|
|
39
|
-
"ssml": "The light passes through a <readium:glossref id=\"glossref1\" /> at the top.",
|
|
40
|
-
"language": "en"
|
|
41
|
-
}
|
|
32
|
+
]
|
|
42
33
|
},
|
|
43
34
|
{
|
|
35
|
+
"role": ["glossary"],
|
|
44
36
|
"children": [
|
|
45
37
|
{
|
|
38
|
+
"role": ["term"],
|
|
46
39
|
"id": "fresnel-lens",
|
|
47
|
-
"role": [
|
|
48
|
-
"term"
|
|
49
|
-
],
|
|
50
40
|
"text": {
|
|
51
41
|
"plain": "Fresnel lens"
|
|
52
42
|
}
|
|
53
43
|
},
|
|
54
44
|
{
|
|
55
|
-
"role": [
|
|
56
|
-
"definition"
|
|
57
|
-
],
|
|
45
|
+
"role": ["definition"],
|
|
58
46
|
"text": {
|
|
59
47
|
"plain": "A compact lens for focusing light."
|
|
60
48
|
}
|
|
61
49
|
}
|
|
62
|
-
],
|
|
63
|
-
"role": [
|
|
64
|
-
"glossary"
|
|
65
50
|
]
|
|
66
51
|
}
|
|
67
52
|
]
|
|
@@ -1,67 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"children": [
|
|
3
3
|
{
|
|
4
|
+
"role": ["paragraph"],
|
|
5
|
+
"text": {
|
|
6
|
+
"language": "en",
|
|
7
|
+
"plain": "A café nearby.",
|
|
8
|
+
"ssml": "A <readium:glossref id=\"glossref1\" /> nearby."
|
|
9
|
+
},
|
|
4
10
|
"children": [
|
|
5
11
|
{
|
|
12
|
+
"role": ["glossref"],
|
|
6
13
|
"id": "glossref1",
|
|
14
|
+
"text": {
|
|
15
|
+
"plain": "café"
|
|
16
|
+
},
|
|
7
17
|
"children": [
|
|
8
18
|
{
|
|
9
|
-
"role": [
|
|
10
|
-
"term"
|
|
11
|
-
],
|
|
19
|
+
"role": ["term"],
|
|
12
20
|
"text": {
|
|
13
21
|
"plain": "café"
|
|
14
22
|
}
|
|
15
23
|
},
|
|
16
24
|
{
|
|
17
|
-
"role": [
|
|
18
|
-
"definition"
|
|
19
|
-
],
|
|
25
|
+
"role": ["definition"],
|
|
20
26
|
"text": {
|
|
21
27
|
"plain": "A coffee shop."
|
|
22
28
|
}
|
|
23
29
|
}
|
|
24
|
-
]
|
|
25
|
-
"role": [
|
|
26
|
-
"glossref"
|
|
27
|
-
],
|
|
28
|
-
"text": {
|
|
29
|
-
"plain": "café"
|
|
30
|
-
},
|
|
31
|
-
"textref": "#caf%C3%A9"
|
|
30
|
+
]
|
|
32
31
|
}
|
|
33
|
-
]
|
|
34
|
-
"role": [
|
|
35
|
-
"paragraph"
|
|
36
|
-
],
|
|
37
|
-
"text": {
|
|
38
|
-
"plain": "A café nearby.",
|
|
39
|
-
"ssml": "A <readium:glossref id=\"glossref1\" /> nearby.",
|
|
40
|
-
"language": "en"
|
|
41
|
-
}
|
|
32
|
+
]
|
|
42
33
|
},
|
|
43
34
|
{
|
|
35
|
+
"role": ["glossary"],
|
|
44
36
|
"children": [
|
|
45
37
|
{
|
|
38
|
+
"role": ["term"],
|
|
46
39
|
"id": "café",
|
|
47
|
-
"role": [
|
|
48
|
-
"term"
|
|
49
|
-
],
|
|
50
40
|
"text": {
|
|
51
41
|
"plain": "café"
|
|
52
42
|
}
|
|
53
43
|
},
|
|
54
44
|
{
|
|
55
|
-
"role": [
|
|
56
|
-
"definition"
|
|
57
|
-
],
|
|
45
|
+
"role": ["definition"],
|
|
58
46
|
"text": {
|
|
59
47
|
"plain": "A coffee shop."
|
|
60
48
|
}
|
|
61
49
|
}
|
|
62
|
-
],
|
|
63
|
-
"role": [
|
|
64
|
-
"glossary"
|
|
65
50
|
]
|
|
66
51
|
}
|
|
67
52
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "glossref-target-percent-encoded",
|
|
3
|
-
"description": "A glossref whose href is percent-encoded still finds its target
|
|
3
|
+
"description": "A glossref whose href is percent-encoded still finds its target",
|
|
4
4
|
"role": "glossref",
|
|
5
5
|
"rolesCovered": [
|
|
6
6
|
"glossref",
|
|
@@ -1,49 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"children": [
|
|
3
3
|
{
|
|
4
|
-
"role": [
|
|
5
|
-
"heading1"
|
|
6
|
-
],
|
|
4
|
+
"role": ["heading1"],
|
|
7
5
|
"text": {
|
|
8
6
|
"plain": "Chapter One"
|
|
9
7
|
}
|
|
10
8
|
},
|
|
11
9
|
{
|
|
12
|
-
"role": [
|
|
13
|
-
"heading2"
|
|
14
|
-
],
|
|
10
|
+
"role": ["heading2"],
|
|
15
11
|
"text": {
|
|
16
12
|
"plain": "Section A"
|
|
17
13
|
}
|
|
18
14
|
},
|
|
19
15
|
{
|
|
20
|
-
"role": [
|
|
21
|
-
"heading3"
|
|
22
|
-
],
|
|
16
|
+
"role": ["heading3"],
|
|
23
17
|
"text": {
|
|
24
18
|
"plain": "Subsection i"
|
|
25
19
|
}
|
|
26
20
|
},
|
|
27
21
|
{
|
|
28
|
-
"role": [
|
|
29
|
-
"heading4"
|
|
30
|
-
],
|
|
22
|
+
"role": ["heading4"],
|
|
31
23
|
"text": {
|
|
32
24
|
"plain": "Detail heading"
|
|
33
25
|
}
|
|
34
26
|
},
|
|
35
27
|
{
|
|
36
|
-
"role": [
|
|
37
|
-
"heading5"
|
|
38
|
-
],
|
|
28
|
+
"role": ["heading5"],
|
|
39
29
|
"text": {
|
|
40
30
|
"plain": "Note heading"
|
|
41
31
|
}
|
|
42
32
|
},
|
|
43
33
|
{
|
|
44
|
-
"role": [
|
|
45
|
-
"heading6"
|
|
46
|
-
],
|
|
34
|
+
"role": ["heading6"],
|
|
47
35
|
"text": {
|
|
48
36
|
"plain": "Aside heading"
|
|
49
37
|
}
|
|
@@ -1,49 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"children": [
|
|
3
3
|
{
|
|
4
|
-
"role": [
|
|
5
|
-
"heading1"
|
|
6
|
-
],
|
|
4
|
+
"role": ["heading1"],
|
|
7
5
|
"text": {
|
|
8
6
|
"plain": "Chapter One"
|
|
9
7
|
}
|
|
10
8
|
},
|
|
11
9
|
{
|
|
12
|
-
"role": [
|
|
13
|
-
"heading2"
|
|
14
|
-
],
|
|
10
|
+
"role": ["heading2"],
|
|
15
11
|
"text": {
|
|
16
12
|
"plain": "Section A"
|
|
17
13
|
}
|
|
18
14
|
},
|
|
19
15
|
{
|
|
20
|
-
"role": [
|
|
21
|
-
"heading3"
|
|
22
|
-
],
|
|
16
|
+
"role": ["heading3"],
|
|
23
17
|
"text": {
|
|
24
18
|
"plain": "Subsection i"
|
|
25
19
|
}
|
|
26
20
|
},
|
|
27
21
|
{
|
|
28
|
-
"role": [
|
|
29
|
-
"heading4"
|
|
30
|
-
],
|
|
22
|
+
"role": ["heading4"],
|
|
31
23
|
"text": {
|
|
32
24
|
"plain": "Detail heading"
|
|
33
25
|
}
|
|
34
26
|
},
|
|
35
27
|
{
|
|
36
|
-
"role": [
|
|
37
|
-
"heading5"
|
|
38
|
-
],
|
|
28
|
+
"role": ["heading5"],
|
|
39
29
|
"text": {
|
|
40
30
|
"plain": "Note heading"
|
|
41
31
|
}
|
|
42
32
|
},
|
|
43
33
|
{
|
|
44
|
-
"role": [
|
|
45
|
-
"heading6"
|
|
46
|
-
],
|
|
34
|
+
"role": ["heading6"],
|
|
47
35
|
"text": {
|
|
48
36
|
"plain": "Aside heading"
|
|
49
37
|
}
|
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"children": [
|
|
3
3
|
{
|
|
4
|
+
"role": ["paragraph"],
|
|
4
5
|
"text": {
|
|
5
6
|
"plain": "Before."
|
|
6
|
-
}
|
|
7
|
-
"role": [
|
|
8
|
-
"paragraph"
|
|
9
|
-
]
|
|
7
|
+
}
|
|
10
8
|
},
|
|
11
9
|
{
|
|
10
|
+
"role": ["presentation"],
|
|
12
11
|
"text": {
|
|
13
12
|
"plain": "Not really a heading"
|
|
14
|
-
}
|
|
15
|
-
"role": [
|
|
16
|
-
"presentation"
|
|
17
|
-
]
|
|
13
|
+
}
|
|
18
14
|
},
|
|
19
15
|
{
|
|
16
|
+
"role": ["paragraph"],
|
|
20
17
|
"text": {
|
|
21
18
|
"plain": "After."
|
|
22
|
-
}
|
|
23
|
-
"role": [
|
|
24
|
-
"paragraph"
|
|
25
|
-
]
|
|
19
|
+
}
|
|
26
20
|
}
|
|
27
21
|
]
|
|
28
22
|
}
|