@likecoin/epubcheck-ts 0.2.3 → 0.2.4

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.
Files changed (66) hide show
  1. package/README.md +8 -8
  2. package/bin/epubcheck.js +4 -4
  3. package/bin/epubcheck.ts +4 -4
  4. package/dist/index.cjs +265 -14
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -0
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.js +265 -14
  9. package/dist/index.js.map +1 -1
  10. package/package.json +2 -2
  11. package/schemas/applications.rng +0 -429
  12. package/schemas/aria.rng +0 -3355
  13. package/schemas/block.rng +0 -488
  14. package/schemas/common.rng +0 -1076
  15. package/schemas/container.rng +0 -24
  16. package/schemas/core-scripting.rng +0 -950
  17. package/schemas/data.rng +0 -161
  18. package/schemas/datatypes.rng +0 -401
  19. package/schemas/embed.rng +0 -980
  20. package/schemas/epub-mathml3-inc.rng +0 -161
  21. package/schemas/epub-nav-30.rnc +0 -44
  22. package/schemas/epub-nav-30.rng +0 -19985
  23. package/schemas/epub-nav-30.sch +0 -87
  24. package/schemas/epub-prefix-attr.rng +0 -17
  25. package/schemas/epub-shared-inc.rng +0 -29
  26. package/schemas/epub-ssml-attrs.rng +0 -17
  27. package/schemas/epub-svg-30.rnc +0 -17
  28. package/schemas/epub-svg-30.rng +0 -19903
  29. package/schemas/epub-svg-30.sch +0 -7
  30. package/schemas/epub-svg-forgiving-inc.rng +0 -315
  31. package/schemas/epub-switch.rng +0 -121
  32. package/schemas/epub-trigger.rng +0 -90
  33. package/schemas/epub-type-attr.rng +0 -12
  34. package/schemas/epub-xhtml-30.rnc +0 -6
  35. package/schemas/epub-xhtml-30.rng +0 -19882
  36. package/schemas/epub-xhtml-30.sch +0 -409
  37. package/schemas/epub-xhtml-inc.rng +0 -151
  38. package/schemas/epub-xhtml-integration.rng +0 -565
  39. package/schemas/epub-xhtml-svg-mathml.rng +0 -17
  40. package/schemas/form-datatypes.rng +0 -54
  41. package/schemas/mathml3-common.rng +0 -336
  42. package/schemas/mathml3-content.rng +0 -1552
  43. package/schemas/mathml3-inc.rng +0 -30
  44. package/schemas/mathml3-presentation.rng +0 -2341
  45. package/schemas/mathml3-strict-content.rng +0 -205
  46. package/schemas/media.rng +0 -374
  47. package/schemas/meta.rng +0 -754
  48. package/schemas/microdata.rng +0 -192
  49. package/schemas/ncx.rng +0 -308
  50. package/schemas/ocf-container-30.rnc +0 -37
  51. package/schemas/ocf-container-30.rng +0 -568
  52. package/schemas/opf.rng +0 -15
  53. package/schemas/opf20.rng +0 -513
  54. package/schemas/package-30.rnc +0 -133
  55. package/schemas/package-30.rng +0 -1153
  56. package/schemas/package-30.sch +0 -444
  57. package/schemas/phrase.rng +0 -746
  58. package/schemas/rdfa.rng +0 -552
  59. package/schemas/revision.rng +0 -106
  60. package/schemas/ruby.rng +0 -141
  61. package/schemas/sectional.rng +0 -278
  62. package/schemas/structural.rng +0 -298
  63. package/schemas/tables.rng +0 -420
  64. package/schemas/web-components.rng +0 -184
  65. package/schemas/web-forms.rng +0 -975
  66. package/schemas/web-forms2.rng +0 -1236
@@ -1,336 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- This is the Mathematical Markup Language (MathML) 3.0, an XML
4
- application for describing mathematical notation and capturing
5
- both its structure and content.
6
-
7
- With additional changes for integration into the validator.nu
8
- service.
9
-
10
- With additional changes for integration into EPUBCheck.
11
-
12
- Copyright 1998-2010 W3C (MIT, ERCIM, Keio)
13
- Copyright 2012 Mozilla Foundation
14
- Copyright 2014-2019 W3C (MIT, ERCIM, Keio, Beihang)
15
-
16
- Use and distribution of this code are permitted under the terms
17
- W3C Software Notice and License
18
- http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
19
- -->
20
- <grammar ns="http://www.w3.org/1998/Math/MathML" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
21
- <define name="math">
22
- <element name="math">
23
- <ref name="math.attributes"/>
24
- <zeroOrMore>
25
- <ref name="MathExpression"/>
26
- </zeroOrMore>
27
- </element>
28
- </define>
29
- <define name="MathExpression">
30
- <ref name="semantics"/>
31
- </define>
32
- <define name="NonMathMLAtt">
33
- <attribute>
34
- <anyName>
35
- <except>
36
- <nsName ns=""/>
37
- <nsName/>
38
- </except>
39
- </anyName>
40
- <data type="string"/>
41
- </attribute>
42
- </define>
43
- <define name="CommonDeprecatedAtt">
44
- <optional>
45
- <attribute name="other"/>
46
- </optional>
47
- </define>
48
- <!-- changed datatype of id attr from ID to non-empty string -->
49
- <define name="CommonAtt">
50
- <optional>
51
- <attribute name="id">
52
- <data type="string">
53
- <param name="pattern">[^\s]+</param>
54
- </data>
55
- </attribute>
56
- </optional>
57
- <optional>
58
- <attribute name="xref"/>
59
- </optional>
60
- <optional>
61
- <attribute name="class">
62
- <data type="NMTOKENS"/>
63
- </attribute>
64
- </optional>
65
- <optional>
66
- <attribute name="style">
67
- <data type="string"/>
68
- </attribute>
69
- </optional>
70
- <optional>
71
- <attribute name="href">
72
- <data type="anyURI"/>
73
- </attribute>
74
- </optional>
75
- <ref name="CommonDeprecatedAtt"/>
76
- <zeroOrMore>
77
- <ref name="NonMathMLAtt"/>
78
- </zeroOrMore>
79
- </define>
80
- <define name="math.attributes">
81
- <ref name="CommonAtt"/>
82
- <optional>
83
- <attribute name="display">
84
- <choice>
85
- <value>block</value>
86
- <value>inline</value>
87
- </choice>
88
- </attribute>
89
- </optional>
90
- <optional>
91
- <attribute name="maxwidth">
92
- <ref name="length"/>
93
- </attribute>
94
- </optional>
95
- <optional>
96
- <attribute name="overflow">
97
- <choice>
98
- <value>linebreak</value>
99
- <value>scroll</value>
100
- <value>elide</value>
101
- <value>truncate</value>
102
- <value>scale</value>
103
- </choice>
104
- </attribute>
105
- </optional>
106
- <optional>
107
- <attribute name="altimg">
108
- <data type="anyURI"/>
109
- </attribute>
110
- </optional>
111
- <optional>
112
- <attribute name="altimg-width">
113
- <ref name="length"/>
114
- </attribute>
115
- </optional>
116
- <optional>
117
- <attribute name="altimg-height">
118
- <ref name="length"/>
119
- </attribute>
120
- </optional>
121
- <optional>
122
- <attribute name="altimg-valign">
123
- <choice>
124
- <ref name="length"/>
125
- <value>top</value>
126
- <value>middle</value>
127
- <value>bottom</value>
128
- </choice>
129
- </attribute>
130
- </optional>
131
- <optional>
132
- <attribute name="alttext"/>
133
- </optional>
134
- <optional>
135
- <attribute name="cdgroup">
136
- <data type="anyURI"/>
137
- </attribute>
138
- </optional>
139
- <ref name="math.deprecatedattributes"/>
140
- </define>
141
- <!--
142
- the mathml3-presentation schema adds additional attributes
143
- to the math element, all those valid on mstyle
144
- -->
145
- <define name="math.deprecatedattributes">
146
- <optional>
147
- <attribute name="mode">
148
- <data type="string"/>
149
- </attribute>
150
- </optional>
151
- <optional>
152
- <attribute name="macros">
153
- <data type="string"/>
154
- </attribute>
155
- </optional>
156
- </define>
157
- <define name="name">
158
- <attribute name="name">
159
- <data type="NCName"/>
160
- </attribute>
161
- </define>
162
- <define name="cd">
163
- <attribute name="cd">
164
- <data type="NCName"/>
165
- </attribute>
166
- </define>
167
- <define name="src">
168
- <optional>
169
- <attribute name="src">
170
- <data type="anyURI"/>
171
- </attribute>
172
- </optional>
173
- </define>
174
- <define name="annotation">
175
- <element name="annotation">
176
- <ref name="annotation.attributes"/>
177
- <text/>
178
- </element>
179
- </define>
180
- <!-- changed content model of annotation-xml - - mike -->
181
- <define name="annotation-xml">
182
- <choice>
183
- <ref name="annotation-xml.xhtml"/>
184
- <ref name="annotation-xml.svg"/>
185
- <ref name="annotation-xml.mathml"/>
186
- </choice>
187
- </define>
188
- <define name="annotation-xml.model">
189
- <zeroOrMore>
190
- <choice>
191
- <ref name="MathExpression"/>
192
- <ref name="anyElement"/>
193
- </choice>
194
- </zeroOrMore>
195
- </define>
196
- <define name="anyElement">
197
- <element>
198
- <anyName>
199
- <except>
200
- <nsName/>
201
- </except>
202
- </anyName>
203
- <zeroOrMore>
204
- <choice>
205
- <attribute>
206
- <anyName/>
207
- </attribute>
208
- <text/>
209
- <ref name="anyElement"/>
210
- </choice>
211
- </zeroOrMore>
212
- </element>
213
- </define>
214
- <define name="annotation-xml.xhtml">
215
- <element name="annotation-xml">
216
- <ref name="annotation-xml.model.xhtml"/>
217
- <ref name="annotation-xml.attributes"/>
218
- <optional>
219
- <ref name="att-encoding.xhtml"/>
220
- </optional>
221
- </element>
222
- </define>
223
- <define name="annotation-xml.model.xhtml">
224
- <notAllowed/>
225
- </define>
226
- <define name="att-encoding.xhtml">
227
- <attribute name="encoding">
228
- <choice>
229
- <value type="string" datatypeLibrary="">application/xhtml+xml</value>
230
- <value type="string" datatypeLibrary="">text/html</value>
231
- </choice>
232
- </attribute>
233
- </define>
234
- <define name="annotation-xml.svg">
235
- <element name="annotation-xml">
236
- <ref name="annotation-xml.model.svg"/>
237
- <ref name="annotation-xml.attributes"/>
238
- <optional>
239
- <ref name="att-encoding.svg"/>
240
- </optional>
241
- </element>
242
- </define>
243
- <define name="annotation-xml.model.svg">
244
- <notAllowed/>
245
- </define>
246
- <define name="att-encoding.svg">
247
- <attribute name="encoding">
248
- <value type="string" datatypeLibrary="">SVG1.1</value>
249
- </attribute>
250
- </define>
251
- <define name="annotation-xml.mathml">
252
- <element name="annotation-xml">
253
- <ref name="annotation-xml.model.mathml"/>
254
- <ref name="annotation-xml.attributes"/>
255
- <optional>
256
- <ref name="att-encoding.mathml"/>
257
- </optional>
258
- </element>
259
- </define>
260
- <define name="annotation-xml.model.mathml">
261
- <ref name="math"/>
262
- </define>
263
- <define name="att-encoding.mathml">
264
- <attribute name="encoding">
265
- <choice>
266
- <value type="string" datatypeLibrary="">MathML</value>
267
- <value type="string" datatypeLibrary="">MathML-Content</value>
268
- <value type="string" datatypeLibrary="">MathML-Presentation</value>
269
- </choice>
270
- </attribute>
271
- </define>
272
- <define name="annotation.attributes">
273
- <ref name="CommonAtt"/>
274
- <optional>
275
- <ref name="cd"/>
276
- </optional>
277
- <optional>
278
- <ref name="name"/>
279
- </optional>
280
- <ref name="DefEncAtt"/>
281
- <optional>
282
- <ref name="src"/>
283
- </optional>
284
- </define>
285
- <define name="annotation-xml.attributes">
286
- <ref name="CommonAtt"/>
287
- <optional>
288
- <ref name="cd"/>
289
- </optional>
290
- <optional>
291
- <ref name="name"/>
292
- </optional>
293
- <optional>
294
- <ref name="src"/>
295
- </optional>
296
- </define>
297
- <define name="DefEncAtt">
298
- <optional>
299
- <attribute name="encoding">
300
- <data type="string"/>
301
- </attribute>
302
- </optional>
303
- <optional>
304
- <attribute name="definitionURL">
305
- <data type="anyURI"/>
306
- </attribute>
307
- </optional>
308
- </define>
309
- <define name="semantics">
310
- <element name="semantics">
311
- <ref name="semantics.attributes"/>
312
- <ref name="MathExpression"/>
313
- <zeroOrMore>
314
- <choice>
315
- <ref name="annotation"/>
316
- <ref name="annotation-xml"/>
317
- </choice>
318
- </zeroOrMore>
319
- </element>
320
- </define>
321
- <define name="semantics.attributes">
322
- <ref name="CommonAtt"/>
323
- <ref name="DefEncAtt"/>
324
- <optional>
325
- <ref name="cd"/>
326
- </optional>
327
- <optional>
328
- <ref name="name"/>
329
- </optional>
330
- </define>
331
- <define name="length">
332
- <data type="string">
333
- <param name="pattern">\s*((-?[0-9]*([0-9]\.?|\.[0-9])[0-9]*(e[mx]|in|cm|mm|p[xtc]|%)?)|(negative)?((very){0,2}thi(n|ck)|medium)mathspace)\s*</param>
334
- </data>
335
- </define>
336
- </grammar>