@likecoin/epubcheck-ts 0.1.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/LICENSE +674 -0
- package/README.md +339 -0
- package/dist/index.cjs +1904 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +523 -0
- package/dist/index.d.ts +523 -0
- package/dist/index.js +1895 -0
- package/dist/index.js.map +1 -0
- package/package.json +69 -0
- package/schemas/applications.rng +429 -0
- package/schemas/aria.rng +3355 -0
- package/schemas/block.rng +488 -0
- package/schemas/common.rng +1076 -0
- package/schemas/container.rng +24 -0
- package/schemas/core-scripting.rng +950 -0
- package/schemas/data.rng +161 -0
- package/schemas/datatypes.rng +401 -0
- package/schemas/embed.rng +980 -0
- package/schemas/epub-mathml3-inc.rng +161 -0
- package/schemas/epub-nav-30.rnc +44 -0
- package/schemas/epub-nav-30.rng +19985 -0
- package/schemas/epub-nav-30.sch +87 -0
- package/schemas/epub-prefix-attr.rng +17 -0
- package/schemas/epub-shared-inc.rng +29 -0
- package/schemas/epub-ssml-attrs.rng +17 -0
- package/schemas/epub-svg-30.rnc +17 -0
- package/schemas/epub-svg-30.rng +19903 -0
- package/schemas/epub-svg-30.sch +7 -0
- package/schemas/epub-svg-forgiving-inc.rng +315 -0
- package/schemas/epub-switch.rng +121 -0
- package/schemas/epub-trigger.rng +90 -0
- package/schemas/epub-type-attr.rng +12 -0
- package/schemas/epub-xhtml-30.rnc +6 -0
- package/schemas/epub-xhtml-30.rng +19882 -0
- package/schemas/epub-xhtml-30.sch +409 -0
- package/schemas/epub-xhtml-inc.rng +151 -0
- package/schemas/epub-xhtml-integration.rng +565 -0
- package/schemas/epub-xhtml-svg-mathml.rng +17 -0
- package/schemas/form-datatypes.rng +54 -0
- package/schemas/mathml3-common.rng +336 -0
- package/schemas/mathml3-content.rng +1552 -0
- package/schemas/mathml3-inc.rng +30 -0
- package/schemas/mathml3-presentation.rng +2341 -0
- package/schemas/mathml3-strict-content.rng +205 -0
- package/schemas/media.rng +374 -0
- package/schemas/meta.rng +754 -0
- package/schemas/microdata.rng +192 -0
- package/schemas/ncx.rng +308 -0
- package/schemas/ocf-container-30.rnc +37 -0
- package/schemas/ocf-container-30.rng +568 -0
- package/schemas/opf.rng +15 -0
- package/schemas/opf20.rng +513 -0
- package/schemas/package-30.rnc +133 -0
- package/schemas/package-30.rng +1153 -0
- package/schemas/package-30.sch +444 -0
- package/schemas/phrase.rng +746 -0
- package/schemas/rdfa.rng +552 -0
- package/schemas/revision.rng +106 -0
- package/schemas/ruby.rng +141 -0
- package/schemas/sectional.rng +278 -0
- package/schemas/structural.rng +298 -0
- package/schemas/tables.rng +420 -0
- package/schemas/web-components.rng +184 -0
- package/schemas/web-forms.rng +975 -0
- package/schemas/web-forms2.rng +1236 -0
|
@@ -0,0 +1,336 @@
|
|
|
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>
|