@readium/guided-navigation 1.2.0 → 1.2.2
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/fixtures/ROLES_COVERAGE.md +3 -3
- package/fixtures/glossref-sole-content/gnd.json +70 -0
- package/fixtures/glossref-sole-content/input.html +5 -0
- package/fixtures/glossref-sole-content/meta.json +14 -0
- package/fixtures/manifest.json +30 -0
- package/fixtures/table-cell-abbreviation/gnd.json +32 -0
- package/fixtures/table-cell-abbreviation/input.html +3 -0
- package/fixtures/table-cell-abbreviation/meta.json +14 -0
- package/fixtures/table-cell-noteref/gnd.json +45 -0
- package/fixtures/table-cell-noteref/input.html +4 -0
- package/fixtures/table-cell-noteref/meta.json +14 -0
- package/package.json +1 -1
|
@@ -40,7 +40,7 @@ renaming, or removing a fixture.
|
|
|
40
40
|
| `footnote` | `footnote-epub-type`, `footnote-role-aria`, `noteref-target-in-endnotes-epub-type`, `noteref-target-in-endnotes-role-aria` |
|
|
41
41
|
| `foreword` | `foreword-epub-type`, `foreword-role-aria` |
|
|
42
42
|
| `glossary` | `glossary-epub-type`, `glossary-role-aria` |
|
|
43
|
-
| `glossref` | `glossref-epub-type`, `glossref-role-aria`, `glossref-role-aria-mid-sentence`, `glossref-target-in-glossary-role-aria`, `glossref-target-percent-encoded` |
|
|
43
|
+
| `glossref` | `glossref-epub-type`, `glossref-role-aria`, `glossref-role-aria-mid-sentence`, `glossref-sole-content`, `glossref-target-in-glossary-role-aria`, `glossref-target-percent-encoded` |
|
|
44
44
|
| `header` | `header-html-native` |
|
|
45
45
|
| `heading` | `heading-html-native`, `heading-role-aria` |
|
|
46
46
|
| `image` | `image-alt-html-native`, `image-no-description`, `image-role-aria` |
|
|
@@ -73,10 +73,10 @@ renaming, or removing a fixture.
|
|
|
73
73
|
| `separator` | `separator-html-native`, `separator-role-aria`, `separator-with-glyphs` |
|
|
74
74
|
| `subtitle` | `subtitle-epub-type`, `subtitle-role-aria` |
|
|
75
75
|
| `summary` | `summary-html-native` |
|
|
76
|
-
| `table` | `table-caption`, `table-caption-element-html-native`, `table-caption-role-aria`, `table-colspan-html-native`, `table-colspan-role-aria`, `table-epub-type`, `table-html-native`, `table-in-role-none-wrapper`, `table-nested-html-native`, `table-nested-role-aria`, `table-no-headers`, `table-role-aria`, `table-rowgroup-role-aria`, `table-rowspan-html-native`, `table-rowspan-role-aria`, `table-sectioning`, `table-th-no-scope` |
|
|
76
|
+
| `table` | `table-caption`, `table-caption-element-html-native`, `table-caption-role-aria`, `table-cell-abbreviation`, `table-cell-noteref`, `table-colspan-html-native`, `table-colspan-role-aria`, `table-epub-type`, `table-html-native`, `table-in-role-none-wrapper`, `table-nested-html-native`, `table-nested-role-aria`, `table-no-headers`, `table-role-aria`, `table-rowgroup-role-aria`, `table-rowspan-html-native`, `table-rowspan-role-aria`, `table-sectioning`, `table-th-no-scope` |
|
|
77
77
|
| `term` | `term-epub-type`, `term-html-native`, `term-role-aria` |
|
|
78
78
|
| `tip` | `tip-epub-type`, `tip-role-aria` |
|
|
79
79
|
| `toc` | `toc-epub-type`, `toc-role-aria` |
|
|
80
80
|
| `video` | `video-html-native`, `video-no-description` |
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
216 fixtures across 71 roles.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"children": [
|
|
3
|
+
{
|
|
4
|
+
"children": [
|
|
5
|
+
{
|
|
6
|
+
"children": [
|
|
7
|
+
{
|
|
8
|
+
"children": [
|
|
9
|
+
{
|
|
10
|
+
"role": [
|
|
11
|
+
"term"
|
|
12
|
+
],
|
|
13
|
+
"text": {
|
|
14
|
+
"plain": "Fresnel lens"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"role": [
|
|
21
|
+
"definition"
|
|
22
|
+
],
|
|
23
|
+
"text": {
|
|
24
|
+
"plain": "A compact lens for focusing light."
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"role": [
|
|
29
|
+
"glossref"
|
|
30
|
+
],
|
|
31
|
+
"text": {
|
|
32
|
+
"plain": "Fresnel lens"
|
|
33
|
+
},
|
|
34
|
+
"textref": "#fresnel-lens"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"role": [
|
|
38
|
+
"paragraph"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"children": [
|
|
43
|
+
{
|
|
44
|
+
"id": "fresnel-lens",
|
|
45
|
+
"children": [
|
|
46
|
+
{
|
|
47
|
+
"role": [
|
|
48
|
+
"term"
|
|
49
|
+
],
|
|
50
|
+
"text": {
|
|
51
|
+
"plain": "Fresnel lens"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"role": [
|
|
58
|
+
"definition"
|
|
59
|
+
],
|
|
60
|
+
"text": {
|
|
61
|
+
"plain": "A compact lens for focusing light."
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"role": [
|
|
66
|
+
"glossary"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "glossref-sole-content",
|
|
3
|
+
"description": "A glossref that is its block's whole content, with its glossary entry embedded",
|
|
4
|
+
"role": "glossref",
|
|
5
|
+
"rolesCovered": [
|
|
6
|
+
"glossref",
|
|
7
|
+
"glossary",
|
|
8
|
+
"term",
|
|
9
|
+
"definition",
|
|
10
|
+
"paragraph"
|
|
11
|
+
],
|
|
12
|
+
"sourceRef": "https://github.com/readium/guided-navigation/blob/main/roles.md",
|
|
13
|
+
"inputKind": "fragment"
|
|
14
|
+
}
|
package/fixtures/manifest.json
CHANGED
|
@@ -929,6 +929,16 @@
|
|
|
929
929
|
"gnd": "gnd.json"
|
|
930
930
|
}
|
|
931
931
|
},
|
|
932
|
+
{
|
|
933
|
+
"id": "glossref-sole-content",
|
|
934
|
+
"dir": "glossref-sole-content",
|
|
935
|
+
"role": "glossref",
|
|
936
|
+
"description": "A glossref that is its block's whole content, with its glossary entry embedded",
|
|
937
|
+
"files": {
|
|
938
|
+
"input": "input.html",
|
|
939
|
+
"gnd": "gnd.json"
|
|
940
|
+
}
|
|
941
|
+
},
|
|
932
942
|
{
|
|
933
943
|
"id": "glossref-target-in-glossary-role-aria",
|
|
934
944
|
"dir": "glossref-target-in-glossary-role-aria",
|
|
@@ -1859,6 +1869,26 @@
|
|
|
1859
1869
|
"gnd": "gnd.json"
|
|
1860
1870
|
}
|
|
1861
1871
|
},
|
|
1872
|
+
{
|
|
1873
|
+
"id": "table-cell-abbreviation",
|
|
1874
|
+
"dir": "table-cell-abbreviation",
|
|
1875
|
+
"role": "table",
|
|
1876
|
+
"description": "An abbr inside a row header and a data cell stays a sub in that cell's own text",
|
|
1877
|
+
"files": {
|
|
1878
|
+
"input": "input.html",
|
|
1879
|
+
"gnd": "gnd.json"
|
|
1880
|
+
}
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
"id": "table-cell-noteref",
|
|
1884
|
+
"dir": "table-cell-noteref",
|
|
1885
|
+
"role": "table",
|
|
1886
|
+
"description": "A noteref inside a data cell becomes a placeholder in that cell's own text, its footnote embedded",
|
|
1887
|
+
"files": {
|
|
1888
|
+
"input": "input.html",
|
|
1889
|
+
"gnd": "gnd.json"
|
|
1890
|
+
}
|
|
1891
|
+
},
|
|
1862
1892
|
{
|
|
1863
1893
|
"id": "table-colspan-html-native",
|
|
1864
1894
|
"dir": "table-colspan-html-native",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"children": [
|
|
3
|
+
{
|
|
4
|
+
"children": [
|
|
5
|
+
{
|
|
6
|
+
"role": [
|
|
7
|
+
"rowheader"
|
|
8
|
+
],
|
|
9
|
+
"text": {
|
|
10
|
+
"ssml": "<sub alias=\"World Health Organization\">WHO</sub>",
|
|
11
|
+
"language": "en"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"role": [
|
|
16
|
+
"cell"
|
|
17
|
+
],
|
|
18
|
+
"text": {
|
|
19
|
+
"ssml": "Leads the <sub alias=\"International Health Regulations\">IHR</sub> work",
|
|
20
|
+
"language": "en"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"role": [
|
|
25
|
+
"row"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"role": [
|
|
30
|
+
"table"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "table-cell-abbreviation",
|
|
3
|
+
"description": "An abbr inside a row header and a data cell stays a sub in that cell's own text",
|
|
4
|
+
"role": "table",
|
|
5
|
+
"rolesCovered": [
|
|
6
|
+
"table",
|
|
7
|
+
"row",
|
|
8
|
+
"rowheader",
|
|
9
|
+
"cell",
|
|
10
|
+
"abbreviation"
|
|
11
|
+
],
|
|
12
|
+
"sourceRef": "https://github.com/readium/guided-navigation/blob/main/roles.md",
|
|
13
|
+
"inputKind": "fragment"
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"children": [
|
|
3
|
+
{
|
|
4
|
+
"children": [
|
|
5
|
+
{
|
|
6
|
+
"children": [
|
|
7
|
+
{
|
|
8
|
+
"id": "n1",
|
|
9
|
+
"children": [
|
|
10
|
+
{
|
|
11
|
+
"role": [
|
|
12
|
+
"footnote"
|
|
13
|
+
],
|
|
14
|
+
"text": {
|
|
15
|
+
"plain": "First published in 1843."
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"role": [
|
|
20
|
+
"noteref"
|
|
21
|
+
],
|
|
22
|
+
"text": {
|
|
23
|
+
"plain": "1"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"role": [
|
|
28
|
+
"cell"
|
|
29
|
+
],
|
|
30
|
+
"text": {
|
|
31
|
+
"plain": "Engineer and writer",
|
|
32
|
+
"ssml": "Engineer<readium:noteref id=\"n1\" /> and writer",
|
|
33
|
+
"language": "en"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"role": [
|
|
38
|
+
"row"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"role": [
|
|
43
|
+
"table"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "table-cell-noteref",
|
|
3
|
+
"description": "A noteref inside a data cell becomes a placeholder in that cell's own text, its footnote embedded",
|
|
4
|
+
"role": "table",
|
|
5
|
+
"rolesCovered": [
|
|
6
|
+
"table",
|
|
7
|
+
"row",
|
|
8
|
+
"cell",
|
|
9
|
+
"noteref",
|
|
10
|
+
"footnote"
|
|
11
|
+
],
|
|
12
|
+
"sourceRef": "https://github.com/readium/guided-navigation/blob/main/roles.md",
|
|
13
|
+
"inputKind": "fragment"
|
|
14
|
+
}
|