summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/schema/rnc/LaTeXML/svg-basic-filter.rnc
blob: 995c08e7daf998aa67bd5c3daeabe6aab37c0422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
default namespace = "http://www.w3.org/2000/svg"
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"


## 
##     SVG 1.1 Basic Filter Module
##     file: svg-basic-filter.rng
## 
##     This is SVG, a language for describing two-dimensional graphics in XML.
##     Copyright 2001, 2002 W3C (MIT, INRIA, Keio), All Rights Reserved.
## 
##     $Id: svg-basic-filter.rng,v 1.1 2003/07/15 07:11:10 dean Exp $
##   

## 
##     Basic Filter
## 
##         filter, feBlend, feColorMatrix, feComponentTransfer, feComposite,
##         feFlood, feGaussianBlur, feImage, feMerge, feMergeNode, feOffset,
##         feTile, feFuncR, feFuncG, feFuncB, feFuncA
## 
##     This module declares markup to provide support for filter effect.
##   

## 
##     Datatypes
##   
[ xml:lang = "en" ]
grammar {
  FilterValue.datatype = xsd:string
  NumberOptionalNumber.datatype = xsd:string
  a:documentation [ "\x{a}" ~ "    SVG.Filter.attrib\x{a}" ~ "  " ]
  SVG.Filter.extra.attrib = empty
  SVG.Filter.attrib &=
    attribute filter { FilterValue.datatype }?,
    SVG.Filter.extra.attrib
  a:documentation [ "\x{a}" ~ "    SVG.FilterColor.attrib\x{a}" ~ "  " ]
  SVG.FilterColor.extra.attrib = empty
  SVG.FilterColor.attrib &=
    attribute color-interpolation-filters {
      "auto" | "sRGB" | "linearRGB" | "inherit"
    }?,
    SVG.FilterColor.extra.attrib
  a:documentation [ "\x{a}" ~ "    SVG.Filter.class\x{a}" ~ "  " ]
  SVG.Filter.extra.class = notAllowed
  SVG.Filter.class |= filter | SVG.Filter.extra.class
  a:documentation [
    "\x{a}" ~
    "    SVG.FilterPrimitive.class\x{a}" ~
    "  "
  ]
  SVG.FilterPrimitive.extra.class = notAllowed
  SVG.FilterPrimitive.class =
    feBlend
    | feColorMatrix
    | feComponentTransfer
    | feComposite
    | feFlood
    | feGaussianBlur
    | feImage
    | feMerge
    | feOffset
    | feTile
    | SVG.FilterPrimitive.extra.class
  a:documentation [
    "\x{a}" ~
    "    SVG.FilterPrimitive.attrib\x{a}" ~
    "  "
  ]
  SVG.FilterPrimitive.extra.attrib = empty
  SVG.FilterPrimitive.attrib =
    attribute x { Coordinate.datatype }?,
    attribute y { Coordinate.datatype }?,
    attribute width { Length.datatype }?,
    attribute height { Length.datatype }?,
    attribute result { text }?,
    SVG.FilterPrimitive.extra.attrib
  a:documentation [
    "\x{a}" ~
    "    SVG.FilterPrimitiveWithIn.attrib\x{a}" ~
    "  "
  ]
  SVG.FilterPrimitiveWithIn.extra.attrib = empty
  SVG.FilterPrimitiveWithIn.attrib =
    SVG.FilterPrimitive.attrib,
    attribute in { text }?,
    SVG.FilterPrimitiveWithIn.extra.attrib
  a:documentation [ "\x{a}" ~ "    filter: Filter Element\x{a}" ~ "  " ]
  SVG.filter.content =
    SVG.Description.class*, (animate | set | SVG.FilterPrimitive.class)*
  filter = element filter { attlist.filter, SVG.filter.content }
  attlist.filter &=
    SVG.Core.attrib,
    SVG.Style.attrib,
    SVG.Presentation.attrib,
    SVG.XLink.attrib,
    SVG.External.attrib,
    attribute x { Coordinate.datatype }?,
    attribute y { Coordinate.datatype }?,
    attribute width { Length.datatype }?,
    attribute height { Length.datatype }?,
    attribute filterRes { NumberOptionalNumber.datatype }?,
    attribute filterUnits { "userSpaceOnUse" | "objectBoundingBox" }?,
    attribute primitiveUnits { "userSpaceOnUse" | "objectBoundingBox" }?
  a:documentation [
    "\x{a}" ~
    "    feBlend: Filter Effect Blend Element\x{a}" ~
    "  "
  ]
  SVG.feBlend.content = (animate | set)*
  feBlend = element feBlend { attlist.feBlend, SVG.feBlend.content }
  attlist.feBlend &=
    SVG.Core.attrib,
    SVG.FilterColor.attrib,
    SVG.FilterPrimitiveWithIn.attrib,
    attribute in2 { text },
    [ a:defaultValue = "normal" ]
    attribute mode {
      "normal" | "multiply" | "screen" | "darken" | "lighten"
    }?
  a:documentation [
    "\x{a}" ~
    "    feColorMatrix: Filter Effect Color Matrix Element\x{a}" ~
    "  "
  ]
  SVG.feColorMatrix.content = (animate | set)*
  feColorMatrix =
    element feColorMatrix {
      attlist.feColorMatrix, SVG.feColorMatrix.content
    }
  attlist.feColorMatrix &=
    SVG.Core.attrib,
    SVG.FilterColor.attrib,
    SVG.FilterPrimitiveWithIn.attrib,
    [ a:defaultValue = "matrix" ]
    attribute type {
      "matrix" | "saturate" | "hueRotate" | "luminanceToAlpha"
    }?,
    attribute values { text }?
  a:documentation [
    "\x{a}" ~
    "    feComponentTransfer: Filter Effect Component Transfer Element\x{a}" ~
    "  "
  ]
  SVG.feComponentTransfer.content =
    feFuncR?, feFuncG?, feFuncB?, feFuncA?
  feComponentTransfer =
    element feComponentTransfer {
      attlist.feComponentTransfer, SVG.feComponentTransfer.content
    }
  attlist.feComponentTransfer &=
    SVG.Core.attrib,
    SVG.FilterColor.attrib,
    SVG.FilterPrimitiveWithIn.attrib
  a:documentation [
    "\x{a}" ~
    "    feComposite: Filter Effect Composite Element\x{a}" ~
    "  "
  ]
  SVG.feComposite.content = (animate | set)*
  feComposite =
    element feComposite { attlist.feComposite, SVG.feComposite.content }
  attlist.feComposite &=
    SVG.Core.attrib,
    SVG.FilterColor.attrib,
    SVG.FilterPrimitiveWithIn.attrib,
    attribute in2 { text },
    [ a:defaultValue = "over" ]
    attribute operator {
      "over" | "in" | "out" | "atop" | "xor" | "arithmetic"
    }?,
    attribute k1 { Number.datatype }?,
    attribute k2 { Number.datatype }?,
    attribute k3 { Number.datatype }?,
    attribute k4 { Number.datatype }?
  a:documentation [
    "\x{a}" ~
    "    feFlood: Filter Effect Flood Element\x{a}" ~
    "  "
  ]
  SVG.feFlood.content = (animate | set | animateColor)*
  feFlood = element feFlood { attlist.feFlood, SVG.feFlood.content }
  attlist.feFlood &=
    SVG.Core.attrib,
    SVG.Style.attrib,
    SVG.Color.attrib,
    SVG.FilterColor.attrib,
    SVG.FilterPrimitiveWithIn.attrib,
    attribute flood-color { SVGColor.datatype }?,
    attribute flood-opacity { OpacityValue.datatype }?
  a:documentation [
    "\x{a}" ~
    "    feGaussianBlur: Filter Effect Gaussian Blur Element\x{a}" ~
    "  "
  ]
  SVG.feGaussianBlur.content = (animate | set)*
  feGaussianBlur =
    element feGaussianBlur {
      attlist.feGaussianBlur, SVG.feGaussianBlur.content
    }
  attlist.feGaussianBlur &=
    SVG.Core.attrib,
    SVG.FilterColor.attrib,
    SVG.FilterPrimitiveWithIn.attrib,
    attribute stdDeviation { NumberOptionalNumber.datatype }?
  a:documentation [
    "\x{a}" ~
    "    feImage: Filter Effect Image Element\x{a}" ~
    "  "
  ]
  SVG.feImage.content = (animate | set | animateTransform)*
  feImage = element feImage { attlist.feImage, SVG.feImage.content }
  attlist.feImage &=
    SVG.Core.attrib,
    SVG.Style.attrib,
    SVG.Presentation.attrib,
    SVG.FilterPrimitive.attrib,
    SVG.XLinkEmbed.attrib,
    SVG.External.attrib,
    [ a:defaultValue = "xMidYMid meet" ]
    attribute preserveAspectRatio { PreserveAspectRatioSpec.datatype }?
  a:documentation [
    "\x{a}" ~
    "    feMerge: Filter Effect Merge Element\x{a}" ~
    "  "
  ]
  SVG.feMerge.content = feMergeNode*
  feMerge = element feMerge { attlist.feMerge, SVG.feMerge.content }
  attlist.feMerge &=
    SVG.Core.attrib, SVG.FilterColor.attrib, SVG.FilterPrimitive.attrib
  a:documentation [
    "\x{a}" ~
    "    feMergeNode: Filter Effect Merge Node Element\x{a}" ~
    "  "
  ]
  SVG.feMergeNode.content = (animate | set)*
  feMergeNode =
    element feMergeNode { attlist.feMergeNode, SVG.feMergeNode.content }
  attlist.feMergeNode &=
    SVG.Core.attrib,
    attribute in { text }?
  a:documentation [
    "\x{a}" ~
    "    feOffset: Filter Effect Offset Element\x{a}" ~
    "  "
  ]
  SVG.feOffset.content = (animate | set)*
  feOffset = element feOffset { attlist.feOffset, SVG.feOffset.content }
  attlist.feOffset &=
    SVG.Core.attrib,
    SVG.FilterColor.attrib,
    SVG.FilterPrimitiveWithIn.attrib,
    attribute dx { Number.datatype }?,
    attribute dy { Number.datatype }?
  a:documentation [
    "\x{a}" ~
    "    feTile: Filter Effect Tile Element\x{a}" ~
    "  "
  ]
  SVG.feTile.content = (animate | set)*
  feTile = element feTile { attlist.feTile, SVG.feTile.content }
  attlist.feTile &=
    SVG.Core.attrib,
    SVG.FilterColor.attrib,
    SVG.FilterPrimitiveWithIn.attrib
  a:documentation [
    "\x{a}" ~
    "    feFuncR: Filter Effect Function Red Element\x{a}" ~
    "  "
  ]
  SVG.feFuncR.content = (animate | set)*
  feFuncR = element feFuncR { attlist.feFuncR, SVG.feFuncR.content }
  attlist.feFuncR &=
    SVG.Core.attrib,
    attribute type {
      "identity" | "table" | "discrete" | "linear" | "gamma"
    },
    attribute tableValues { text }?,
    attribute slope { Number.datatype }?,
    attribute intercept { Number.datatype }?,
    attribute amplitude { Number.datatype }?,
    attribute exponent { Number.datatype }?,
    attribute offset { Number.datatype }?
  a:documentation [
    "\x{a}" ~
    "    feFuncG: Filter Effect Function Green Element\x{a}" ~
    "  "
  ]
  SVG.feFuncG.content = (animate | set)*
  feFuncG = element feFuncG { attlist.feFuncG, SVG.feFuncG.content }
  attlist.feFuncG &=
    SVG.Core.attrib,
    attribute type {
      "identity" | "table" | "discrete" | "linear" | "gamma"
    },
    attribute tableValues { text }?,
    attribute slope { Number.datatype }?,
    attribute intercept { Number.datatype }?,
    attribute amplitude { Number.datatype }?,
    attribute exponent { Number.datatype }?,
    attribute offset { Number.datatype }?
  a:documentation [
    "\x{a}" ~
    "    feFuncB: Filter Effect Function Blue Element\x{a}" ~
    "  "
  ]
  SVG.feFuncB.content = (animate | set)*
  feFuncB = element feFuncB { attlist.feFuncB, SVG.feFuncB.content }
  attlist.feFuncB &=
    SVG.Core.attrib,
    attribute type {
      "identity" | "table" | "discrete" | "linear" | "gamma"
    },
    attribute tableValues { text }?,
    attribute slope { Number.datatype }?,
    attribute intercept { Number.datatype }?,
    attribute amplitude { Number.datatype }?,
    attribute exponent { Number.datatype }?,
    attribute offset { Number.datatype }?
  a:documentation [
    "\x{a}" ~
    "    feFuncA: Filter Effect Function Alpha Element\x{a}" ~
    "  "
  ]
  SVG.feFuncA.content = (animate | set)*
  feFuncA = element feFuncA { attlist.feFuncA, SVG.feFuncA.content }
  attlist.feFuncA &=
    SVG.Core.attrib,
    attribute type {
      "identity" | "table" | "discrete" | "linear" | "gamma"
    },
    attribute tableValues { text }?,
    attribute slope { Number.datatype }?,
    attribute intercept { Number.datatype }?,
    attribute amplitude { Number.datatype }?,
    attribute exponent { Number.datatype }?,
    attribute offset { Number.datatype }?
}