forked from h5p/h5p-multi-choice
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsemantics.json
214 lines (214 loc) · 5.21 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
[
{
"name": "image",
"type": "image",
"label": "Question image",
"optional": true,
"description": "An optional image to display above the question."
},
{
"name": "question",
"type": "text",
"widget": "html",
"label": "Question",
"enterMode": "p",
"tags": [
"strong",
"em",
"sub",
"sup",
"h2",
"h3"
]
},
{
"name": "answers",
"type": "list",
"label": "Available options",
"description": "The alternatives the user may choose from.",
"entity": "option",
"min": 1,
"defaultNum": 2,
"field": {
"name": "answer",
"type": "group",
"label": "Option",
"fields": [
{
"name": "text",
"type": "text",
"widget": "html",
"label": "Text",
"tags": [
"strong",
"em",
"sub",
"sup"
]
},
{
"name": "correct",
"type": "boolean",
"label": "Correct"
},
{
"name": "tipsAndFeedback",
"type": "group",
"label": "Tips and feedback",
"optional": true,
"fields": [
{
"name": "tip",
"label": "Tip text",
"type": "text",
"widget": "html",
"tags": ["p", "br", "strong", "em"],
"optional": true
},
{
"name": "chosenFeedback",
"type": "text",
"widget": "html",
"label": "Chosen feedback",
"description": "Will be displayed when the users checks his answer.",
"optional": true,
"tags": [
"strong",
"em",
"sub",
"sup"
]
},
{
"name": "notChosenFeedback",
"type": "text",
"widget": "html",
"label": "Not chosen feedback",
"description": "Will be displayed when the solution is displayed.",
"optional": true,
"tags": [
"strong",
"em",
"sub",
"sup"
]
}
]
}
]
}
},
{
"name": "UI",
"type": "group",
"label": "User interface translations for multichoice",
"common": true,
"fields": [
{
"name": "checkAnswerButton",
"type": "text",
"label": "Check answer button label",
"default": "Check"
},
{
"name": "showSolutionButton",
"type": "text",
"label": "Show solution button label",
"default": "Show solution"
},
{
"name": "tryAgainButton",
"type": "text",
"label": "Retry button label",
"default": "Retry",
"optional": true
},
{
"name": "correctText",
"type": "text",
"label": "Correct answer feedback",
"default": "Correct!",
"deprecated": true
},
{
"name": "almostText",
"type": "text",
"label": "Almost correct answer feedback",
"default": "Almost!",
"deprecated": true
},
{
"name": "wrongText",
"type": "text",
"label": "Not correct answer feedback",
"default": "Wrong",
"deprecated": true
}
]
},
{
"name": "behaviour",
"type": "group",
"label": "Behavioural settings.",
"description": "These options will let you control how the task behaves.",
"optional": true,
"fields": [
{
"name": "enableRetry",
"type": "boolean",
"label": "Enable \"Retry\" button",
"default": true,
"optional": true
},
{
"name": "enableSolutionsButton",
"type": "boolean",
"label": "Enable \"Show Solution\" button",
"default": true,
"optional": true
},
{
"name": "type",
"type": "select",
"label": "Question Type",
"description": "Select the look and behaviour of the question.",
"default": "auto",
"options": [
{
"value": "auto",
"label": "Automatic"
},
{
"value": "multi",
"label": "Multiple Choice (Checkboxes)"
},
{
"value": "single",
"label": "Single Choice (Radio Buttons)"
}
]
},
{
"name": "singlePoint",
"type": "boolean",
"label": "Give one point for the whole task",
"description": "Enable to give a total of one point for multiple correct answers. This will not be an option in \"Single answer\" mode.",
"default": true
},
{
"name": "randomAnswers",
"type": "boolean",
"label": "Randomize answers",
"description": "Enable to randomize the order of questions on display.",
"default": true
},
{
"label": "Require user input before the solution can be viewed",
"name": "showSolutionsRequiresInput",
"type": "boolean",
"default": true,
"optional": true
}
]
}
]