Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit 1bb70db

Browse files
committed
new math inks
1 parent 4c4aa5d commit 1bb70db

File tree

6 files changed

+1210
-885
lines changed

6 files changed

+1210
-885
lines changed

test/lib/configuration.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const system = require('./inks/system.json');
55
const one = require('./inks/one.json');
66
const equation = require('./inks/equation.json');
77
const equation2 = require('./inks/equation2.json');
8+
const equation3 = require('./inks/equation3.json');
89
const hello = require('./inks/hello.json');
910
const helloHow = require('./inks/helloHowAreYou.json');
1011
const shape = require('./inks/shape.json');
@@ -25,23 +26,23 @@ const inks = [{
2526
}, {
2627
name: 'equation',
2728
type: 'MATH',
28-
strokes: equation,
29+
strokes: equation2,
2930
exports: {
30-
LATEX: ['r', '\\sqrt {2}', '\\sqrt', '\\sqrt']
31+
LATEX: ['-', '\\sqrt {2}', 'r', '']
3132
}
3233
}, {
3334
name: 'equation2',
3435
type: 'MATH',
3536
strokes: equation2,
3637
exports: {
37-
LATEX: ['-', '\\sqrt {2}', 'r', '']
38+
LATEX: ['\\sqrt', '\\sqrt {2}', 'r', '']
3839
}
3940
}, {
4041
name: 'equation3',
4142
type: 'MATH',
42-
strokes: equation2,
43+
strokes: equation3,
4344
exports: {
44-
LATEX: ['\\sqrt', '\\sqrt {2}', '\\sqrt', '']
45+
LATEX: ['y', 'y-', 'y=', 'y=3', 'y=33', 'y=3x', 'y=3x-', 'y=3x+', 'y=3x+2']
4546
}
4647
}, {
4748
name: 'system',

test/lib/inks/equation3.json

Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
[[[459,
2+
459,
3+
459,
4+
459,
5+
465,
6+
470,
7+
475,
8+
479,
9+
482,
10+
484,
11+
486,
12+
486,
13+
487,
14+
486,
15+
485,
16+
484,
17+
484,
18+
484,
19+
485,
20+
488,
21+
489,
22+
489,
23+
486,
24+
483,
25+
477,
26+
471,
27+
467,
28+
467,
29+
467,
30+
473,
31+
480,
32+
492,
33+
502,
34+
507
35+
],[186,
36+
196,
37+
199,
38+
202,
39+
204,
40+
204,
41+
204,
42+
204,
43+
203,
44+
200,
45+
195,
46+
192,
47+
189,
48+
194,
49+
202,
50+
212,
51+
223,
52+
232,
53+
240,
54+
249,
55+
257,
56+
268,
57+
275,
58+
276,
59+
276,
60+
273,
61+
264,
62+
259,
63+
252,
64+
244,
65+
237,
66+
233,
67+
230,
68+
228]],
69+
[[526,
70+
539,
71+
549,
72+
557,
73+
561
74+
],[200,
75+
195,
76+
195,
77+
195,
78+
195]],
79+
[[539,
80+
547,
81+
556,
82+
564,
83+
570,
84+
573],
85+
[206,
86+
206,
87+
206,
88+
206,
89+
206,
90+
206]],
91+
[[640,
92+
641,
93+
645,
94+
649,
95+
654,
96+
658,
97+
660,
98+
661,
99+
657,
100+
646,
101+
643,
102+
646,
103+
649,
104+
652,
105+
658,
106+
663,
107+
664,
108+
664,
109+
664,
110+
660,
111+
653,
112+
643,
113+
631,
114+
624],
115+
[171,
116+
166,
117+
166,
118+
166,
119+
168,
120+
172,
121+
175,
122+
178,
123+
185,
124+
189,
125+
190,
126+
192,
127+
193,
128+
195,
129+
199,
130+
203,
131+
207,
132+
210,
133+
214,
134+
217,
135+
217,
136+
218,
137+
218,
138+
218]],
139+
[[701,
140+
701,
141+
702,
142+
705,
143+
710,
144+
717,
145+
723,
146+
728,
147+
730,
148+
730,
149+
729,
150+
724,
151+
718,
152+
708,
153+
706,
154+
706],
155+
[207,
156+
200,
157+
195,
158+
194,
159+
192,
160+
192,
161+
192,
162+
193,
163+
198,
164+
205,
165+
212,
166+
216,
167+
218,
168+
216,
169+
213,
170+
210]],
171+
[[742,
172+
733,
173+
729,
174+
729,
175+
729,
176+
729,
177+
728,
178+
728,
179+
729,
180+
735,
181+
740,
182+
748,
183+
759,
184+
769,
185+
773],
186+
[198,
187+
195,
188+
197,
189+
201,
190+
205,
191+
208,
192+
211,
193+
214,
194+
218,
195+
218,
196+
218,
197+
218,
198+
218,
199+
218,
200+
218]],
201+
[[785,
202+
794,
203+
800,
204+
809,
205+
821,
206+
836,
207+
844,
208+
849],
209+
[205,
210+
203,
211+
203,
212+
203,
213+
203,
214+
201,
215+
200,
216+
198]],
217+
[[824,
218+
823,
219+
823,
220+
823,
221+
823,
222+
823],
223+
[191,
224+
199,
225+
205,
226+
211,
227+
216,
228+
220]],
229+
[[884,
230+
884,
231+
887,
232+
892,
233+
895,
234+
904,
235+
909,
236+
912,
237+
913,
238+
913,
239+
913,
240+
910,
241+
902,
242+
897,
243+
894,
244+
894,
245+
893,
246+
896,
247+
900,
248+
904,
249+
915,
250+
925,
251+
931,
252+
940,
253+
946,
254+
949],
255+
[188,
256+
181,
257+
175,
258+
165,
259+
161,
260+
158,
261+
158,
262+
161,
263+
167,
264+
174,
265+
183,
266+
195,
267+
207,
268+
215,
269+
218,
270+
221,
271+
225,
272+
225,
273+
225,
274+
225,
275+
225,
276+
225,
277+
228,
278+
229,
279+
231,
280+
231]]]

0 commit comments

Comments
 (0)