forked from jithin-space/h5p-find-the-words
-
Notifications
You must be signed in to change notification settings - Fork 0
/
semantics.json
187 lines (187 loc) · 5.45 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
[
{
"label": "Task description",
"name": "taskDescription",
"type": "text",
"description": "Description of the Game",
"default": "Find the words from the grid",
"importance": "high"
},
{
"name": "wordList",
"type": "text",
"label": "Word list",
"description": "Comma Separated list of words. Special Characters, White Spaces and Numbers Not allowed",
"default": "one,two,three",
"regexp": {
"pattern": "^(?!(?:.*[\"!#$%&./:;<=>?@\\[\\]^_`\\{|}~'()\\-*+\\d]|^[,])).*$"
},
"importance": "high"
},
{
"name": "behaviour",
"type": "group",
"label": "Behavioural settings",
"importance": "low",
"description": "These options will let you control how the game behaves.",
"optional": true,
"fields": [
{
"name": "orientations",
"type": "group",
"label": "Orientations",
"description": "An array containing the names of the word directions that should be used when creating the puzzle",
"fields": [
{
"name": "horizontal",
"type": "boolean",
"label": "Horizontal- left to right",
"default": true
},
{
"name": "horizontalBack",
"type": "boolean",
"label": "Horizontal- right to left",
"default": true
},
{
"name": "vertical",
"type": "boolean",
"label": "Vertical downwards",
"default": true
},
{
"name": "verticalUp",
"type": "boolean",
"label": "Vertical upwards",
"default": true
},
{
"name": "diagonal",
"type": "boolean",
"label": "Diagonal downwards- left to right",
"default": true
},
{
"name": "diagonalBack",
"type": "boolean",
"label": "Diagonal downwards- right to left",
"default": true
},
{
"name": "diagonalUp",
"type": "boolean",
"label": "Diagonal upwards- left to right",
"default": true
},
{
"name": "diagonalUpBack",
"type": "boolean",
"label": "Diagonal upwards- right to left",
"default": true
}
]
},
{
"name": "fillPool",
"type": "text",
"label": "Vertical downwards",
"description": "pool of letters from which the blanks to be filled",
"default": "abcdefghijklmnopqrstuvwxyz",
"regexp": {
"pattern": "^[^\t\n .<>?;:\"'`!@#$%^&*()\\[\\]{}_+=|\\-]*$"
}
},
{
"name": "preferOverlap",
"type": "boolean",
"label": "Prefer overlap",
"description": "Determines how wordfind decides where to place a word within the puzzle. When true, it randomly selects amongst the positions the highest number of letters that overlap creating a more compact puzzle. When false, it randomly selects amongst all valid positions creating a less compact puzzle.",
"default": true
},
{
"name": "showVocabulary",
"type": "boolean",
"label": "Show vocabulary",
"description": "Determines whether to show vocabularies to the player",
"default": true
},
{
"name": "enableShowSolution",
"type": "boolean",
"label": "Enable show solution",
"description": "Add a show solution button for the game",
"default": true
},
{
"name": "enableRetry",
"type": "boolean",
"label": "Enable retry",
"description": "Add a retry button for the game",
"default": true
}
]
},
{
"label": "Localization",
"importance": "low",
"name": "l10n",
"type": "group",
"common": true,
"fields": [
{
"label": "Text for \"Check\" button",
"importance": "low",
"name": "check",
"type": "text",
"default": "Check"
},
{
"label": "Text for \"Retry\" button",
"importance": "low",
"name": "tryAgain",
"type": "text",
"default": "Retry"
},
{
"label": "Text for \"Show Solution\" button",
"importance": "low",
"name": "showSolution",
"type": "text",
"default": "Show Solution"
},
{
"label": "Counter text",
"importance": "low",
"name": "found",
"type": "text",
"default": "@found of @totalWords found",
"description": "Feedback text, variables available: @found and @totalWords. Example: '@found of @totalWords found'"
},
{
"label": "Time spent text",
"importance": "low",
"name": "timeSpent",
"type": "text",
"default": "Time Spent",
"description": "label for showing the time spent while playing the game"
},
{
"label": "Feedback text",
"importance": "low",
"name": "score",
"type": "text",
"default": "You got @score of @total points",
"description": "Feedback text, variables available: @score and @total. Example: 'You got @score of @total possible points'"
},
{
"label": "Word list header",
"importance": "low",
"name": "wordListHeader",
"type": "text",
"default": "Find the words",
"maxLength": 20
}
]
}
]