Debian Codegraph @

mathmaps/en/rules/clearspeak_english.json

raw
1 {
2 "domain": "clearspeak",
3 "locale": "en",
4 "modality": "speech",
5 "inherits": "base",
6 "rules": [
7 [
8 "Precondition",
9 "german-font",
10 "default",
11 "self::*[@font=\"fraktur\"]",
12 "not(contains(@grammar, \"ignoreFont\"))"
13 ],
14 [
15 "Precondition",
16 "german-font-bold",
17 "default",
18 "self::*[@font=\"bold-fraktur\"]",
19 "not(contains(@grammar, \"ignoreFont\"))"
20 ],
21 [
22 "Precondition",
23 "unit-square",
24 "default",
25 "self::superscript[@role=\"unit\"]",
26 "children/*[2][text()=2]",
27 "name(children/*[1])=\"identifier\"",
28 "children/*[1][@category=\"unit:length\"]"
29 ],
30 [
31 "Precondition",
32 "unit-cubic",
33 "default",
34 "self::superscript[@role=\"unit\"]",
35 "children/*[2][text()=3]",
36 "name(children/*[1])=\"identifier\"",
37 "children/*[1][@category=\"unit:length\"]"
38 ],
39 [
40 "Rule",
41 "caley-table",
42 "default",
43 "[p] (pause:short); [t] \"cayley table with\"; [t] count(children/*)-1; [t] \"elements\"; [n] . (grammar:?layoutSummary)",
44 "self::table[@role=\"cayley\"]",
45 "not(contains(@grammar, \"layoutSummary\"))"
46 ],
47 [
48 "Rule",
49 "caley-table-operator",
50 "default",
51 "[p] (pause:short); [t] \"cayley table for\"; [n] children/*[1]/children/*[1]/children/*[1]; [t] \"with\"; [t] count(children/*)-1; [t] \"elements\"; [n] . (grammar:?layoutSummary)",
52 "self::table[@role=\"cayley\"]",
53 "name(children/*[1]/children/*[1]/children/*[1])=\"operator\"",
54 "not(contains(@grammar, \"layoutSummary\"))"
55 ]
56
57 ]
58 }