@altnovatrail/spec 0.9.16 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,7 +12,9 @@ From 0.5.0 on, the package also holds the types of the element `<novatrail-canva
12
12
 
13
13
  From 0.8.0 on, it holds the types of the admission table too: which AI provider, on which route to AI, may receive the work of a learner of which age category ([the table's text](https://github.com/altnovatrail/spec/blob/main/admission/README.md)). They are generated from its schemas, `admission/schemas`, as the format's are.
14
14
 
15
- The package holds declarations alone, with no code to run, so import them with `import type`:
15
+ From 0.10.0 on, it holds the page of the workbook too, which format 0.4 makes a rule: `@altnovatrail/spec/format/page.json`, the numbers and the widths by which every page is laid out, and `@altnovatrail/spec/format/vectors/pages/<case>.json`, the test vectors of the page, each the JSON of the format's [`page.yaml`](https://github.com/altnovatrail/spec/blob/main/format/page.yaml) and of its vectors, `format/vectors/pages/` ([the format's text](https://github.com/altnovatrail/spec/blob/main/format/README.md), section 14). A canvas reads them to lay its page out, and its tests check its layout against the vectors; their types are `Page` and `PageVector` of `formatv0`.
16
+
17
+ The types are declarations alone, with no code to run, so import them with `import type`; the page's JSON is data, which a module imports with `with { type: "json" }` or reads as a file:
16
18
 
17
19
  ```ts
18
20
  import type { Manifest, Task } from "@altnovatrail/spec/formatv0";
@@ -0,0 +1,306 @@
1
+ {
2
+ "sheet": {
3
+ "width": 1000,
4
+ "height": 1400
5
+ },
6
+ "numbers": {
7
+ "size": 30,
8
+ "box_width": 100,
9
+ "box_height": 100,
10
+ "line": 46,
11
+ "lead": 12,
12
+ "gap": 16,
13
+ "apart": 32,
14
+ "items": 32,
15
+ "gutter": 40,
16
+ "margin": 40
17
+ },
18
+ "most_items": 99,
19
+ "widths": {
20
+ "digits": {
21
+ "characters": "0123456789",
22
+ "width": 53
23
+ },
24
+ "signs": {
25
+ "characters": "+−×÷=<>≤≥≠±≈",
26
+ "width": 56
27
+ },
28
+ "space": 26,
29
+ "characters": [
30
+ {
31
+ "width": 19,
32
+ "characters": "'"
33
+ },
34
+ {
35
+ "width": 23,
36
+ "characters": "|"
37
+ },
38
+ {
39
+ "width": 25,
40
+ "characters": "ijl"
41
+ },
42
+ {
43
+ "width": 26,
44
+ "characters": ",."
45
+ },
46
+ {
47
+ "width": 28,
48
+ "characters": "/:;t\\‘’∶"
49
+ },
50
+ {
51
+ "width": 31,
52
+ "characters": "!I[]f"
53
+ },
54
+ {
55
+ "width": 32,
56
+ "characters": "²³"
57
+ },
58
+ {
59
+ "width": 33,
60
+ "characters": "()-`r·⋅"
61
+ },
62
+ {
63
+ "width": 38,
64
+ "characters": "\""
65
+ },
66
+ {
67
+ "width": 39,
68
+ "characters": "г„“”"
69
+ },
70
+ {
71
+ "width": 40,
72
+ "characters": "°"
73
+ },
74
+ {
75
+ "width": 41,
76
+ "characters": "{}"
77
+ },
78
+ {
79
+ "width": 43,
80
+ "characters": "з"
81
+ },
82
+ {
83
+ "width": 44,
84
+ "characters": "*Js"
85
+ },
86
+ {
87
+ "width": 45,
88
+ "characters": "т"
89
+ },
90
+ {
91
+ "width": 46,
92
+ "characters": "к"
93
+ },
94
+ {
95
+ "width": 47,
96
+ "characters": "^czсэ"
97
+ },
98
+ {
99
+ "width": 49,
100
+ "characters": "ь"
101
+ },
102
+ {
103
+ "width": 50,
104
+ "characters": "?aekvxyавеухяё"
105
+ },
106
+ {
107
+ "width": 51,
108
+ "characters": "ч"
109
+ },
110
+ {
111
+ "width": 53,
112
+ "characters": "#$_bdghnopquор«»–"
113
+ },
114
+ {
115
+ "width": 54,
116
+ "characters": "блнп"
117
+ },
118
+ {
119
+ "width": 55,
120
+ "characters": "Здийц"
121
+ },
122
+ {
123
+ "width": 56,
124
+ "characters": "~Г"
125
+ },
126
+ {
127
+ "width": 57,
128
+ "characters": "ъ"
129
+ },
130
+ {
131
+ "width": 58,
132
+ "characters": "FL"
133
+ },
134
+ {
135
+ "width": 61,
136
+ "characters": "PSTZРТ"
137
+ },
138
+ {
139
+ "width": 62,
140
+ "characters": "БКЬ"
141
+ },
142
+ {
143
+ "width": 64,
144
+ "characters": "EЕЁ"
145
+ },
146
+ {
147
+ "width": 66,
148
+ "characters": "Чм"
149
+ },
150
+ {
151
+ "width": 67,
152
+ "characters": "BВЛУ"
153
+ },
154
+ {
155
+ "width": 68,
156
+ "characters": "Дж"
157
+ },
158
+ {
159
+ "width": 69,
160
+ "characters": "ACKRVXYАСХЭЯ"
161
+ },
162
+ {
163
+ "width": 70,
164
+ "characters": "ы"
165
+ },
166
+ {
167
+ "width": 72,
168
+ "characters": "&DHNUwИЙНП"
169
+ },
170
+ {
171
+ "width": 73,
172
+ "characters": "Ц"
173
+ },
174
+ {
175
+ "width": 74,
176
+ "characters": "ф"
177
+ },
178
+ {
179
+ "width": 75,
180
+ "characters": "GOQОЪю"
181
+ },
182
+ {
183
+ "width": 78,
184
+ "characters": "Ф"
185
+ },
186
+ {
187
+ "width": 79,
188
+ "characters": "ш½¼¾⅓⅔⅛"
189
+ },
190
+ {
191
+ "width": 80,
192
+ "characters": "щ"
193
+ },
194
+ {
195
+ "width": 81,
196
+ "characters": "m"
197
+ },
198
+ {
199
+ "width": 86,
200
+ "characters": "%MМ"
201
+ },
202
+ {
203
+ "width": 88,
204
+ "characters": "Ы"
205
+ },
206
+ {
207
+ "width": 91,
208
+ "characters": "Ж"
209
+ },
210
+ {
211
+ "width": 94,
212
+ "characters": "W"
213
+ },
214
+ {
215
+ "width": 96,
216
+ "characters": "Ш"
217
+ },
218
+ {
219
+ "width": 97,
220
+ "characters": "@Щ"
221
+ },
222
+ {
223
+ "width": 100,
224
+ "characters": "—…"
225
+ },
226
+ {
227
+ "width": 101,
228
+ "characters": "№"
229
+ },
230
+ {
231
+ "width": 102,
232
+ "characters": "Ю"
233
+ }
234
+ ],
235
+ "spaces": [
236
+ {
237
+ "code_point": "U+00A0",
238
+ "width": 26
239
+ },
240
+ {
241
+ "code_point": "U+2007",
242
+ "width": 53
243
+ },
244
+ {
245
+ "code_point": "U+202F",
246
+ "width": 20
247
+ }
248
+ ],
249
+ "zero": [
250
+ "U+0000–U+0008",
251
+ "U+000E–U+001F",
252
+ "U+007F–U+009F",
253
+ "U+00AD",
254
+ "U+0300–U+036F",
255
+ "U+0483–U+0489",
256
+ "U+1AB0–U+1AFF",
257
+ "U+1DC0–U+1DFF",
258
+ "U+200B–U+200F",
259
+ "U+202A–U+202E",
260
+ "U+2060–U+206F",
261
+ "U+20D0–U+20FF",
262
+ "U+FE00–U+FE0F",
263
+ "U+FE20–U+FE2F",
264
+ "U+FEFF",
265
+ "U+1F3FB–U+1F3FF",
266
+ "U+E0000–U+E007F",
267
+ "U+E0100–U+E01EF"
268
+ ],
269
+ "wide": {
270
+ "width": 100,
271
+ "ranges": [
272
+ "U+1100–U+115F",
273
+ "U+2E80–U+303E",
274
+ "U+3041–U+33FF",
275
+ "U+3400–U+4DBF",
276
+ "U+4E00–U+9FFF",
277
+ "U+A000–U+A4CF",
278
+ "U+AC00–U+D7A3",
279
+ "U+F900–U+FAFF",
280
+ "U+FE30–U+FE4F",
281
+ "U+FF00–U+FF60",
282
+ "U+FFE0–U+FFE6",
283
+ "U+1F000–U+1FAFF",
284
+ "U+20000–U+3FFFD"
285
+ ]
286
+ },
287
+ "breaks": [
288
+ "U+0009",
289
+ "U+000A",
290
+ "U+000B",
291
+ "U+000C",
292
+ "U+000D",
293
+ "U+0020",
294
+ "U+0085",
295
+ "U+2028",
296
+ "U+2029"
297
+ ],
298
+ "unknown": 60,
299
+ "joiner": "U+200D",
300
+ "regional_indicators": "U+1F1E6–U+1F1FF"
301
+ },
302
+ "joints": {
303
+ "closing": ".,:;!?)]}»…",
304
+ "opening": "([{«„"
305
+ }
306
+ }
@@ -0,0 +1,148 @@
1
+ {
2
+ "items": [
3
+ {
4
+ "line": [
5
+ {
6
+ "text": "Tom has 3 bags of 4 apples. He has"
7
+ },
8
+ {
9
+ "binding": "box"
10
+ },
11
+ {
12
+ "text": "apples."
13
+ }
14
+ ]
15
+ },
16
+ {
17
+ "line": [
18
+ {
19
+ "text": "Tom has 4 bags of 4 apples. He has"
20
+ },
21
+ {
22
+ "binding": "box"
23
+ },
24
+ {
25
+ "text": "apples."
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ "line": [
31
+ {
32
+ "text": "Tom has 5 bags of 4 apples. He has"
33
+ },
34
+ {
35
+ "binding": "box"
36
+ },
37
+ {
38
+ "text": "apples."
39
+ }
40
+ ]
41
+ },
42
+ {
43
+ "line": [
44
+ {
45
+ "text": "Tom has 6 bags of 4 apples. He has"
46
+ },
47
+ {
48
+ "binding": "box"
49
+ },
50
+ {
51
+ "text": "apples."
52
+ }
53
+ ]
54
+ },
55
+ {
56
+ "line": [
57
+ {
58
+ "text": "Tom has 7 bags of 4 apples. He has"
59
+ },
60
+ {
61
+ "binding": "box"
62
+ },
63
+ {
64
+ "text": "apples."
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "line": [
70
+ {
71
+ "text": "Tom has 8 bags of 4 apples. He has"
72
+ },
73
+ {
74
+ "binding": "box"
75
+ },
76
+ {
77
+ "text": "apples."
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "line": [
83
+ {
84
+ "text": "Tom has 9 bags of 4 apples. He has"
85
+ },
86
+ {
87
+ "binding": "box"
88
+ },
89
+ {
90
+ "text": "apples."
91
+ }
92
+ ]
93
+ },
94
+ {
95
+ "line": [
96
+ {
97
+ "text": "Tom has 10 bags of 4 apples. He has"
98
+ },
99
+ {
100
+ "binding": "box"
101
+ },
102
+ {
103
+ "text": "apples."
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "line": [
109
+ {
110
+ "text": "Tom has 11 bags of 4 apples. He has"
111
+ },
112
+ {
113
+ "binding": "box"
114
+ },
115
+ {
116
+ "text": "apples."
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "line": [
122
+ {
123
+ "text": "Tom has 12 bags of 4 apples. He has"
124
+ },
125
+ {
126
+ "binding": "box"
127
+ },
128
+ {
129
+ "text": "apples."
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "line": [
135
+ {
136
+ "text": "Tom has 13 bags of 4 apples. He has"
137
+ },
138
+ {
139
+ "binding": "box"
140
+ },
141
+ {
142
+ "text": "apples."
143
+ }
144
+ ]
145
+ }
146
+ ],
147
+ "no_room_at": 10
148
+ }