Debian Codegraph @

mathmaps/en/rules/emacspeak.json

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