/
semantics.json
466 lines (466 loc) · 11.5 KB
/
semantics.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
[
{
"name": "headline",
"type": "text",
"label": "Headline",
"description": "Optional headline to show in the toolbar.",
"optional": true
},
{
"name": "introduction",
"type": "text",
"label": "Introduction",
"description": "Optionally set some introduction telling the user what to do.",
"default": "<p style=\"text-align: center;\"></p>",
"optional": true,
"widget": "html",
"enterMode": "div",
"tags": [
"sub",
"sup",
"strong",
"em",
"p",
"code",
"u",
"del",
"a",
"ul",
"ol",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"pre",
"hr",
"table"
],
"font": {
"size": true,
"color": true,
"background": true
}
},
{
"name": "segments",
"type": "list",
"label": "Segments",
"entity": "segment",
"min": 1,
"max": 6,
"widgets": [
{
"name": "VerticalTabs",
"label": "Default"
},
{
"name": "PhraseRandomizerTextualEditor",
"label": "Textual"
}
],
"field": {
"name": "segments",
"type": "group",
"label": "Segments",
"fields": [
{
"name": "title",
"type": "text",
"label": "Segment title",
"optional": true
},
{
"name": "options",
"type": "list",
"label": "Options",
"entity": "option",
"min": 2,
"field": {
"name": "text",
"type": "text",
"label": "Text for option"
}
},
{
"name": "colorBackground",
"type": "text",
"label": "Background color",
"default": "rgb(255, 255, 255)",
"widget": "colorSelector",
"optional": true,
"spectrum": {
"showInput": true,
"showInitial": true,
"showPalette": true,
"preferredFormat": "rgb",
"palette": [
[
"#96ceb4",
"#ffeead",
"#ff6f69",
"ffcc5c",
"#88d8b0"
],
[
"#845ec2",
"#d65db1",
"#ff6f91",
"#ff9671",
"#ffc75f"
],
[
"#a8e6cf",
"#dcedc1",
"#ffd3b6",
"#ffaaa5",
"#ff8b94"
],
[
"#009688",
"#35a79c",
"#54b2a9",
"#65c3ba",
"#83d0c9"
]
]
}
}
]
}
},
{
"name": "mode",
"type": "select",
"label": "Mode",
"options": [
{
"value": "free",
"label": "Free"
},
{
"value": "quiz",
"label": "Quiz"
}
],
"default": "free"
},
{
"name": "solutions",
"type": "group",
"label": "Solutions",
"widget": "PhraseRandomizerSolutionsList",
"fields": [
{
"name": "solutions",
"type": "list",
"label": "Solutions",
"entity": "solution",
"field": {
"name": "solutionSelector",
"type": "text",
"label": "Solution",
"widget": "PhraseRandomizerSolutionSelector"
}
},
{
"name": "dummy",
"type": "boolean",
"label": "Dummy",
"widget": "none"
}
]
},
{
"name": "audio",
"type": "group",
"importance": "low",
"label": "Audio settings",
"fields": [
{
"name": "useDefaultClickPreviousNext",
"type": "boolean",
"label": "Use inbuilt sound for click on next button or previous button",
"optional": false,
"default": true
},
{
"name": "clickPreviousNext",
"type": "audio",
"label": "Click on next button or previous button",
"description": "Will be played when the user clicks on the previous button or next button.",
"importance": "low",
"optional": true,
"widget": "showWhen",
"showWhen": {
"rules": [
{
"field": "useDefaultClickPreviousNext",
"equals": false
}
]
}
}
]
},
{
"name": "behaviour",
"type": "group",
"importance": "low",
"label": "Behavioural settings",
"widget": "showWhen",
"showWhen": {
"rules": [
{
"field": "mode",
"equals": "quiz"
}
],
"nullWhenHidden": true
},
"fields": [
{
"name": "maxAttempts",
"type": "number",
"label": "Lives",
"description": "Enter the number of lives a user starts with (every wrong answer deduces one down to 0) or leave empty to not limit the number of lives.",
"min": 1,
"optional": true
},
{
"name": "enableRetry",
"type": "boolean",
"label": "Enable \"Retry\" button",
"importance": "low",
"default": true,
"optional": true
},
{
"name": "enableSolutionsButton",
"type": "boolean",
"label": "Enable \"Show Solution\" button",
"importance": "low",
"default": true,
"optional": true
}
]
},
{
"name": "l10n",
"type": "group",
"label": "User interface",
"common": true,
"fields": [
{
"name": "check",
"type": "text",
"label": "Check",
"default": "Check"
},
{
"name": "submit",
"type": "text",
"label": "Submit",
"default": "Submit"
},
{
"name": "showSolution",
"type": "text",
"label": "Show solution",
"default": "Show solution"
},
{
"name": "retry",
"type": "text",
"label": "Retry",
"default": "Retry"
},
{
"name": "outOfAttempts",
"type": "text",
"label": "You ran out of lives",
"default": "You ran out of lives."
},
{
"name": "theSolutionsAre",
"type": "text",
"label": "Solution",
"default": "These are the solutions."
},
{
"name": "notASolution",
"type": "text",
"label": "This is not a solution",
"default": "This is not a solution."
},
{
"name": "noMessage",
"type": "text",
"label": "No message",
"default": "..."
},
{
"name": "foundASolution",
"type": "text",
"label": "You found a solution!",
"default": "You found a solution!"
},
{
"name": "foundAllSolutions",
"type": "text",
"label": "You found all the solutions!",
"default": "You found all the solutions!"
},
{
"name": "foundSolutionsTitle",
"type": "text",
"label": "Found solutions",
"default": "Found solutions"
},
{
"name": "toBeFound",
"type": "text",
"label": "To be found",
"default": "To be found"
}
]
},
{
"name": "a11y",
"type": "group",
"label": "Accessibility texts",
"common": true,
"fields": [
{
"name": "buttonRandomize",
"type": "text",
"label": "Randomize all segments",
"importance": "low",
"default": "Randomize all segments"
},
{
"name": "check",
"type": "text",
"label": "Assistive technology description for \"Check\" button",
"importance": "low",
"default": "Check the answers. The responses will be marked as correct or incorrect."
},
{
"name": "showSolution",
"type": "text",
"label": "Assistive technology description for \"Show Solution\" button",
"importance": "low",
"default": "Show the solutions."
},
{
"name": "retry",
"type": "text",
"label": "Assistive technology description for \"Retry\" button",
"importance": "low",
"default": "Retry the task. Reset all segments and start the task over again."
},
{
"name": "currentText",
"type": "text",
"label": "Assistive technology description for current label",
"description": "@text is a placeholder and will be replaced by the respective value.",
"importance": "low",
"default": "Current label: @text"
},
{
"name": "currentTexts",
"type": "text",
"label": "Assistive technology description for current labels",
"description": "@texts is a placeholder and will be replaced by the respective value.",
"importance": "low",
"default": "Current labels: @texts"
},
{
"name": "previousText",
"type": "text",
"label": "Assistive technology description for \"previous text\" button",
"importance": "low",
"default": "Previous text"
},
{
"name": "nextText",
"type": "text",
"label": "Assistive technology description for \"next text\" button",
"importance": "low",
"default": "Next text"
},
{
"name": "spinSegment",
"type": "text",
"label": "Assistive technology description for spin button",
"description": "@number is a placeholder and will be replaced by the respective value.",
"importance": "low",
"default": "Spin segment @number to get random text for it."
},
{
"name": "theSolutionsAre",
"type": "text",
"label": "Assistive technology description for announcing solution",
"description": "@number and @combination are placeholders and will be replaced by the respective values.",
"importance": "low",
"default": "These are the solutions (@number in total): @combination."
},
{
"name": "disabled",
"type": "text",
"label": "Assistive technology description for announcing \"disabled\"",
"default": "disabled"
},
{
"name": "randomizer",
"type": "text",
"label": "Assistive technology description for announcing \"Randomizer\"",
"default": "Randomizer"
},
{
"name": "toolbar",
"type": "text",
"label": "Assistive technology description for toolbar",
"default": "Toolbar"
},
{
"name": "segment",
"type": "text",
"label": "Assistive technology description for announcing the current segment",
"description": "@number and @total are placeholders and will be replaced by the respective values.",
"default": "Segment @number of @total"
},
{
"name": "solution",
"type": "text",
"label": "Solution",
"default": "Solution"
},
{
"name": "found",
"type": "text",
"label": "Found",
"default": "Found"
},
{
"name": "notFound",
"type": "text",
"label": "Not found",
"default": "Not found"
},
{
"name": "buttonAudioActive",
"type": "text",
"label": "Audio button (unmuted)",
"default": "Mute audio. Currently unmuted."
},
{
"name": "buttonAudioInactive",
"type": "text",
"label": "Audio button (muted)",
"default": "Unmute audio. Currently muted."
}
]
}
]