Debian Codegraph @

mathmaps/en/rules/chromevox.json

raw
1 {
2 "locale": "en",
3 "domain": "chromevox",
4 "modality": "speech",
5 "rules": [
6 [
7 "Precondition",
8 "collapsed",
9 "default",
10 "self::*[@alternative]",
11 "not(contains(@grammar, \"collapsed\"))"
12 ],
13 [
14 "Precondition",
15 "stree",
16 "default",
17 "self::stree"
18 ],
19 [
20 "Precondition",
21 "factorial",
22 "default",
23 "self::punctuation",
24 "text()=\"!\"",
25 "name(preceding-sibling::*[1])!=\"text\""
26 ],
27 [
28 "Precondition",
29 "multrel",
30 "default",
31 "self::multirel"
32 ],
33 [
34 "Precondition",
35 "variable-equality",
36 "default",
37 "self::relseq[@role=\"equality\"]",
38 "count(./children/*)>2",
39 "./children/punctuation[@role=\"ellipsis\"]"
40 ],
41 [
42 "Precondition",
43 "multi-equality",
44 "default",
45 "self::relseq[@role=\"equality\"]",
46 "count(./children/*)>2"
47 ],
48 [
49 "Precondition",
50 "equality",
51 "default",
52 "self::relseq[@role=\"equality\"]",
53 "count(./children/*)=2"
54 ],
55 [
56 "Precondition",
57 "simple-equality",
58 "default",
59 "self::relseq[@role=\"equality\"]",
60 "count(./children/*)=2",
61 "./children/identifier or ./children/number"
62 ],
63 [
64 "Precondition",
65 "simple-equality2",
66 "default",
67 "self::relseq[@role=\"equality\"]",
68 "count(./children/*)=2",
69 "./children/function or ./children/appl"
70 ],
71 [
72 "Precondition",
73 "relseq",
74 "default",
75 "self::relseq"
76 ],
77 [
78 "Precondition",
79 "binary-operation",
80 "default",
81 "self::infixop"
82 ],
83 [
84 "Precondition",
85 "variable-addition",
86 "default",
87 "self::infixop[@role=\"addition\"]",
88 "count(children/*)>2",
89 "children/punctuation[@role=\"ellipsis\"]"
90 ],
91 [
92 "Precondition",
93 "multi-addition",
94 "default",
95 "self::infixop[@role=\"addition\"]",
96 "count(./children/*)>2"
97 ],
98 [
99 "Precondition",
100 "prefix",
101 "default",
102 "self::prefixop"
103 ],
104 [
105 "Precondition",
106 "negative",
107 "default",
108 "self::prefixop",
109 "self::prefixop[@role=\"negative\"]"
110 ],
111 [
112 "Precondition",
113 "postfix",
114 "default",
115 "self::postfixop"
116 ],
117 [
118 "Precondition",
119 "identifier",
120 "default",
121 "self::identifier"
122 ],
123 [
124 "Precondition",
125 "number",
126 "default",
127 "self::number"
128 ],
129 [
130 "Precondition",
131 "mixed-number",
132 "default",
133 "self::number",
134 "@role=\"mixed\""
135 ],
136 [
137 "Precondition",
138 "font",
139 "default",
140 "self::*[@font!=\"normal\"]",
141 "not(contains(@grammar, \"ignoreFont\"))"
142 ],
143 [
144 "Precondition",
145 "font-identifier-short",
146 "default",
147 "self::identifier",
148 "string-length(text())=1",
149 "@font",
150 "not(contains(@grammar, \"ignoreFont\"))",
151 "@font=\"normal\"",
152 "\"\"=translate(text(), \"abcdefghijklmnopqrstuvwxyzαβγδεζηθικλμνξοπρςστυφχψωABCDEFGHIJKLMNOPQRSTUVWXYZΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΣΤΥΦΧΨΩ\", \"\")",
153 "@role!=\"unit\""
154 ],
155 [
156 "Precondition",
157 "font-identifier",
158 "default",
159 "self::identifier",
160 "string-length(text())=1",
161 "@font",
162 "@font=\"normal\"",
163 "not(contains(@grammar, \"ignoreFont\"))",
164 "@role!=\"unit\""
165 ],
166 [
167 "Precondition",
168 "omit-font",
169 "default",
170 "self::identifier[@font=\"italic\"]",
171 "string-length(text())=1",
172 "not(contains(@grammar, \"ignoreFont\"))"
173 ],
174 [
175 "Precondition",
176 "fraction",
177 "default",
178 "self::fraction"
179 ],
180 [
181 "Precondition",
182 "superscript",
183 "default",
184 "self::superscript"
185 ],
186 [
187 "Precondition",
188 "subscript",
189 "default",
190 "self::subscript"
191 ],
192 [
193 "Precondition",
194 "ellipsis",
195 "default",
196 "self::punctuation",
197 "self::punctuation[@role=\"ellipsis\"]"
198 ],
199 [
200 "Precondition",
201 "fence-single",
202 "default",
203 "self::punctuation",
204 "self::punctuation[@role=\"openfence\"]"
205 ],
206 [
207 "Alias",
208 "fence-single",
209 "self::punctuation",
210 "self::punctuation[@role=\"closefence\"]"
211 ],
212 [
213 "Alias",
214 "fence-single",
215 "self::punctuation",
216 "self::punctuation[@role=\"vbar\"]"
217 ],
218 [
219 "Alias",
220 "fence-single",
221 "self::punctuation",
222 "self::punctuation[@role=\"application\"]"
223 ],
224 [
225 "Precondition",
226 "omit-empty",
227 "default",
228 "self::empty"
229 ],
230 [
231 "Precondition",
232 "fences-open-close",
233 "default",
234 "self::fenced",
235 "@role=\"leftright\""
236 ],
237 [
238 "Precondition",
239 "fences-open-close-in-appl",
240 "default",
241 "self::fenced[@role=\"leftright\"]",
242 "./parent::children/parent::appl"
243 ],
244 [
245 "Precondition",
246 "fences-neutral",
247 "default",
248 "self::fenced[@role=\"neutral\"]"
249 ],
250 [
251 "Precondition",
252 "omit-fences",
253 "default",
254 "self::fenced"
255 ],
256 [
257 "Precondition",
258 "matrix",
259 "default",
260 "self::matrix"
261 ],
262 [
263 "Precondition",
264 "matrix-row",
265 "default",
266 "self::row[@role=\"matrix\"]"
267 ],
268 [
269 "Precondition",
270 "matrix-cell",
271 "default",
272 "self::cell[@role=\"matrix\"]"
273 ],
274 [
275 "Precondition",
276 "vector",
277 "default",
278 "self::vector"
279 ],
280 [
281 "Precondition",
282 "cases",
283 "default",
284 "self::cases"
285 ],
286 [
287 "Precondition",
288 "cases-row",
289 "default",
290 "self::row[@role=\"cases\"]"
291 ],
292 [
293 "Precondition",
294 "cases-cell",
295 "default",
296 "self::cell[@role=\"cases\"]"
297 ],
298 [
299 "Precondition",
300 "row",
301 "default",
302 "self::row"
303 ],
304 [
305 "Precondition",
306 "cases-end",
307 "default",
308 "self::cases",
309 "following-sibling::*"
310 ],
311 [
312 "Precondition",
313 "multiline",
314 "default",
315 "self::multiline"
316 ],
317 [
318 "Precondition",
319 "multiline-ineq",
320 "default",
321 "self::multiline",
322 "@role=\"inequality\""
323 ],
324 [
325 "Precondition",
326 "line",
327 "default",
328 "self::line"
329 ],
330 [
331 "Precondition",
332 "table",
333 "default",
334 "self::table"
335 ],
336 [
337 "Precondition",
338 "table-ineq",
339 "default",
340 "self::table",
341 "@role=\"inequality\""
342 ],
343 [
344 "Precondition",
345 "table-row",
346 "default",
347 "self::row[@role=\"table\"]"
348 ],
349 [
350 "Alias",
351 "cases-cell",
352 "self::cell[@role=\"table\"]"
353 ],
354 [
355 "Precondition",
356 "empty-cell",
357 "default",
358 "self::cell",
359 "count(children/*)=0"
360 ],
361 [
362 "Precondition",
363 "end-punct",
364 "default",
365 "self::punctuated",
366 "@role=\"endpunct\""
367 ],
368 [
369 "Precondition",
370 "start-punct",
371 "default",
372 "self::punctuated",
373 "@role=\"startpunct\""
374 ],
375 [
376 "Precondition",
377 "punctuated",
378 "default",
379 "self::punctuated"
380 ],
381 [
382 "Precondition",
383 "function",
384 "default",
385 "self::function"
386 ],
387 [
388 "Precondition",
389 "appl",
390 "default",
391 "self::appl"
392 ],
393 [
394 "Precondition",
395 "sum-only",
396 "default",
397 "self::limboth",
398 "self::limboth[@role=\"sum\"]"
399 ],
400 [
401 "Precondition",
402 "limboth",
403 "default",
404 "self::limboth"
405 ],
406 [
407 "Precondition",
408 "limlower",
409 "default",
410 "self::limlower"
411 ],
412 [
413 "Precondition",
414 "limupper",
415 "default",
416 "self::limupper"
417 ],
418 [
419 "Precondition",
420 "largeop",
421 "default",
422 "self::largeop"
423 ],
424 [
425 "Precondition",
426 "bigop",
427 "default",
428 "self::bigop"
429 ],
430 [
431 "Precondition",
432 "integral",
433 "default",
434 "self::integral"
435 ],
436 [
437 "Precondition",
438 "sqrt",
439 "default",
440 "self::sqrt"
441 ],
442 [
443 "Precondition",
444 "square",
445 "default",
446 "self::superscript",
447 "children/*[2][text()=2]",
448 "name(./children/*[1])!=\"text\""
449 ],
450 [
451 "Precondition",
452 "cube",
453 "default",
454 "self::superscript",
455 "children/*[2][text()=3]",
456 "name(./children/*[1])!=\"text\""
457 ],
458 [
459 "Precondition",
460 "root",
461 "default",
462 "self::root"
463 ],
464 [
465 "Precondition",
466 "text",
467 "default",
468 "self::text"
469 ],
470 [
471 "Precondition",
472 "unit",
473 "default",
474 "self::identifier",
475 "@role=\"unit\""
476 ],
477 [
478 "Precondition",
479 "unit-square",
480 "default",
481 "self::superscript",
482 "@role=\"unit\"",
483 "children/*[2][text()=2]",
484 "name(children/*[1])=\"identifier\""
485 ],
486 [
487 "Precondition",
488 "unit-cubic",
489 "default",
490 "self::superscript",
491 "@role=\"unit\"",
492 "children/*[2][text()=3]",
493 "name(children/*[1])=\"identifier\""
494 ],
495 [
496 "Precondition",
497 "reciprocal",
498 "default",
499 "self::superscript",
500 "@role=\"unit\"",
501 "name(children/*[1])=\"identifier\"",
502 "name(children/*[2])=\"prefixop\"",
503 "children/*[2][@role=\"negative\"]",
504 "children/*[2]/children/*[1][text()=1]",
505 "count(preceding-sibling::*)=0 or preceding-sibling::*[@role!=\"unit\"]"
506 ],
507 [
508 "Precondition",
509 "per",
510 "default",
511 "self::superscript",
512 "@role=\"unit\"",
513 "name(children/*[1])=\"identifier\"",
514 "name(children/*[2])=\"prefixop\"",
515 "children/*[2][@role=\"negative\"]",
516 "children/*[2]/children/*[1][text()=1]",
517 "preceding-sibling::*[@role=\"unit\"]"
518 ],
519 [
520 "Precondition",
521 "unit-combine",
522 "default",
523 "self::infixop",
524 "@role=\"unit\""
525 ],
526 [
527 "Precondition",
528 "unit-divide",
529 "default",
530 "self::fraction",
531 "@role=\"unit\""
532 ]
533 ]
534 }