patrick@73
|
1 |
include "publidoc.rnc" {
|
patrick@73
|
2 |
start = publiquiz
|
patrick@73
|
3 |
|
patrick@73
|
4 |
document.content =
|
patrick@73
|
5 |
top.head?,
|
patrick@73
|
6 |
(division | topic | quiz)+
|
patrick@84
|
7 |
|
patrick@84
|
8 |
division.content =
|
patrick@84
|
9 |
division.head?,
|
Patrick@353
|
10 |
front?,
|
patrick@84
|
11 |
(division | topic | quiz)+
|
Coraline@436
|
12 |
|
Coraline@436
|
13 |
nowrap.content =
|
Coraline@441
|
14 |
inlines | blanks.inlines | blanks-m.inlines | blanks-c.inlines
|
Coraline@441
|
15 |
| pointing.inlines
|
patrick@73
|
16 |
}
|
patrick@73
|
17 |
|
patrick@75
|
18 |
|
patrick@73
|
19 |
publiquiz = element publiquiz {
|
patrick@73
|
20 |
publiquiz.attributes,
|
patrick@73
|
21 |
publiquiz.content
|
patrick@73
|
22 |
}
|
patrick@73
|
23 |
|
patrick@73
|
24 |
publiquiz.attributes =
|
patrick@73
|
25 |
version.attribute
|
patrick@73
|
26 |
|
patrick@73
|
27 |
publiquiz.content =
|
patrick@73
|
28 |
document
|
patrick@73
|
29 |
| top.quiz
|
patrick@73
|
30 |
|
patrick@73
|
31 |
|
patrick@73
|
32 |
# =============================================================================
|
patrick@73
|
33 |
# TOP LEVEL
|
patrick@73
|
34 |
# =============================================================================
|
patrick@73
|
35 |
|
Patrick@310
|
36 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ top.quiz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
37 |
|
patrick@128
|
38 |
top.quiz = element quiz { top.quiz.attributes, top.quiz.content }
|
patrick@73
|
39 |
|
patrick@73
|
40 |
top.quiz.attributes =
|
Patrick@388
|
41 |
quiz.id.attribute?
|
Patrick@158
|
42 |
& quiz.type.attribute?
|
patrick@73
|
43 |
& lang.attribute?
|
patrick@117
|
44 |
quiz.id.attribute = attribute id { xsd:NMTOKEN }
|
Patrick@158
|
45 |
quiz.type.attribute = attribute type { xsd:NCName }
|
patrick@73
|
46 |
|
patrick@128
|
47 |
top.quiz.content =
|
patrick@128
|
48 |
top.head?,
|
claire@345
|
49 |
instructions?,
|
patrick@128
|
50 |
(engine | composite),
|
patrick@128
|
51 |
help?,
|
patrick@128
|
52 |
answer?
|
patrick@73
|
53 |
|
Patrick@310
|
54 |
|
patrick@73
|
55 |
# =============================================================================
|
Patrick@310
|
56 |
# COMPONENT LEVEL
|
patrick@73
|
57 |
# =============================================================================
|
patrick@73
|
58 |
|
patrick@73
|
59 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quiz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
60 |
|
patrick@73
|
61 |
quiz = element quiz { quiz.attributes, quiz.content }
|
patrick@73
|
62 |
|
patrick@73
|
63 |
quiz.attributes =
|
Patrick@310
|
64 |
(quiz.id.attribute | xmlid.attribute)?
|
Patrick@158
|
65 |
& quiz.type.attribute?
|
patrick@73
|
66 |
& lang.attribute?
|
patrick@73
|
67 |
|
patrick@73
|
68 |
quiz.content =
|
patrick@73
|
69 |
component.head?,
|
Patrick@417
|
70 |
instructions?,
|
patrick@87
|
71 |
(engine | composite),
|
patrick@73
|
72 |
help?,
|
patrick@87
|
73 |
answer?
|
patrick@73
|
74 |
|
patrick@73
|
75 |
|
patrick@73
|
76 |
# =============================================================================
|
patrick@73
|
77 |
# SECTION LEVEL
|
patrick@73
|
78 |
# =============================================================================
|
patrick@73
|
79 |
|
patrick@73
|
80 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
81 |
|
patrick@73
|
82 |
blanks.section = element section { section.attributes, blanks.section.content }
|
Coraline@409
|
83 |
blanks-m.section = element section {
|
Coraline@409
|
84 |
section.attributes, blanks-m.section.content }
|
Coraline@441
|
85 |
blanks-c.section = element section {
|
Coraline@441
|
86 |
section.attributes, blanks-c.section.content }
|
Coraline@442
|
87 |
correct.section = element section {
|
Coraline@442
|
88 |
section.attributes, correct.section.content }
|
Patrick@336
|
89 |
pointing.section = element section {
|
Patrick@336
|
90 |
section.attributes, pointing.section.content }
|
patrick@73
|
91 |
|
patrick@73
|
92 |
blanks.section.content =
|
patrick@73
|
93 |
section.head?,
|
patrick@73
|
94 |
(blanks.section+ | blanks.block+)
|
Coraline@409
|
95 |
blanks-m.section.content =
|
Coraline@409
|
96 |
section.head?,
|
Coraline@409
|
97 |
(blanks-m.section+ | blanks-m.block+)
|
Coraline@441
|
98 |
blanks-c.section.content =
|
Coraline@441
|
99 |
section.head?,
|
Coraline@441
|
100 |
(blanks-c.section+ | blanks-c.block+)
|
Coraline@442
|
101 |
correct.section.content =
|
Coraline@442
|
102 |
section.head?,
|
Coraline@442
|
103 |
(correct.section+ | correct.block+)
|
Patrick@336
|
104 |
pointing.section.content =
|
patrick@73
|
105 |
section.head?,
|
Patrick@336
|
106 |
(pointing.section+ | pointing.block+)
|
patrick@73
|
107 |
|
patrick@73
|
108 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ instructions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
109 |
|
patrick@73
|
110 |
instructions = element instructions { section.content }
|
patrick@73
|
111 |
|
patrick@73
|
112 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ engine ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
113 |
|
patrick@73
|
114 |
engine =
|
patrick@87
|
115 |
choices-radio
|
patrick@87
|
116 |
| choices-check
|
patrick@87
|
117 |
| blanks-fill
|
patrick@87
|
118 |
| blanks-select
|
Coraline@409
|
119 |
| blanks-media
|
Coraline@441
|
120 |
| blanks-choices
|
Coraline@442
|
121 |
| correct-line
|
Patrick@336
|
122 |
| pointing
|
Patrick@336
|
123 |
| pointing-categories
|
patrick@73
|
124 |
| matching
|
patrick@73
|
125 |
| sort
|
patrick@125
|
126 |
| categories
|
Coraline@438
|
127 |
| wordsearch
|
Patrick@448
|
128 |
| flashcard
|
Patrick@450
|
129 |
| coloring
|
Patrick@450
|
130 |
| memory
|
iinov@463
|
131 |
| dictation
|
patrick@87
|
132 |
| production
|
patrick@73
|
133 |
|
patrick@73
|
134 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ choices ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
135 |
|
patrick@87
|
136 |
choices-radio = element choices-radio {
|
Patrick@376
|
137 |
choices-radio.attributes, choices-radio.content }
|
patrick@87
|
138 |
choices-check = element choices-check {
|
Patrick@376
|
139 |
choices-check.attributes, choices-check.content }
|
patrick@73
|
140 |
|
Patrick@376
|
141 |
choices-radio.attributes =
|
patrick@73
|
142 |
shuffle.attribute?
|
Patrick@376
|
143 |
choices-check.attributes =
|
Patrick@376
|
144 |
success.attribute?
|
Patrick@376
|
145 |
& shuffle.attribute?
|
Patrick@376
|
146 |
success.attribute = attribute success { xsd:decimal {maxInclusive="1"} }
|
patrick@73
|
147 |
shuffle.attribute = attribute shuffle { xsd:boolean }
|
patrick@73
|
148 |
|
patrick@87
|
149 |
choices-radio.content =
|
patrick@73
|
150 |
choices.right
|
patrick@73
|
151 |
& choices.wrong+
|
patrick@87
|
152 |
choices-check.content =
|
patrick@73
|
153 |
(choices.right | choices.wrong)+
|
patrick@73
|
154 |
|
patrick@73
|
155 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blanks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
156 |
|
patrick@87
|
157 |
blanks-fill = element blanks-fill {
|
patrick@87
|
158 |
blanks-fill.attributes, blanks-fill.content }
|
patrick@87
|
159 |
blanks-select = element blanks-select {
|
patrick@87
|
160 |
blanks-select.attributes, blanks-select.content }
|
Coraline@409
|
161 |
blanks-media = element blanks-media {
|
Coraline@409
|
162 |
blanks-select.attributes, blanks-media.content }
|
Coraline@441
|
163 |
blanks-choices = element blanks-choices {
|
Coraline@441
|
164 |
blanks-choices.content }
|
patrick@73
|
165 |
|
patrick@87
|
166 |
blanks-fill.attributes =
|
Patrick@376
|
167 |
success.attribute?
|
Patrick@376
|
168 |
& strict.attribute?
|
claire@381
|
169 |
& long.attribute?
|
patrick@87
|
170 |
blanks-select.attributes =
|
Patrick@376
|
171 |
success.attribute?
|
Patrick@376
|
172 |
& multiple.attribute?
|
claire@380
|
173 |
& noshuffle.attribute?
|
Coraline@409
|
174 |
& orientation.attribute?
|
patrick@73
|
175 |
strict.attribute = attribute strict { xsd:boolean }
|
patrick@73
|
176 |
multiple.attribute = attribute multiple { xsd:boolean }
|
Coraline@437
|
177 |
noshuffle.attribute = attribute no-shuffle { "true" | "false" | "alpha" }
|
claire@381
|
178 |
long.attribute = attribute long { xsd:positiveInteger }
|
Coraline@409
|
179 |
orientation.attribute = attribute orientation {"north"|"east"|"west"|"south"}
|
patrick@73
|
180 |
|
patrick@87
|
181 |
blanks-fill.content =
|
patrick@73
|
182 |
(blanks.block+ | blanks.section+)
|
patrick@87
|
183 |
blanks-select.content =
|
Patrick@342
|
184 |
blanks.intruders?,
|
patrick@73
|
185 |
(blanks.block+ | blanks.section+)
|
Coraline@409
|
186 |
blanks-media.content =
|
Coraline@409
|
187 |
blanks-m.intruders?,
|
Coraline@409
|
188 |
(blanks-m.block+ | blanks-m.section+)
|
Coraline@441
|
189 |
blanks-choices.content =
|
Coraline@441
|
190 |
(blanks-c.block+ | blanks-c.section+)
|
patrick@73
|
191 |
|
Coraline@442
|
192 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ correct-line ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@448
|
193 |
|
Patrick@448
|
194 |
correct-line = element correct-line { correct.attributes, correct.content }
|
Coraline@442
|
195 |
|
Patrick@450
|
196 |
correct.attributes =
|
Coraline@402
|
197 |
remove-space.attribute?
|
Coraline@402
|
198 |
remove-space.attribute = attribute remove-space { xsd:boolean }
|
Coraline@402
|
199 |
|
Coraline@442
|
200 |
correct.content =
|
Coraline@442
|
201 |
correct.intruders?,
|
Coraline@442
|
202 |
(correct.block+ | correct.section+)
|
Coraline@442
|
203 |
|
Patrick@336
|
204 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pointing ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
205 |
|
Patrick@336
|
206 |
pointing = element pointing { pointing.attributes, pointing.content }
|
patrick@75
|
207 |
|
Patrick@336
|
208 |
pointing.attributes =
|
Patrick@376
|
209 |
success.attribute?
|
Patrick@376
|
210 |
& pointing.type.attribute?
|
Patrick@336
|
211 |
pointing.type.attribute = attribute type { "radio" | "check" }
|
patrick@73
|
212 |
|
Patrick@336
|
213 |
pointing.content =
|
Patrick@336
|
214 |
(pointing.section+ | pointing.block+)
|
Patrick@336
|
215 |
|
Patrick@336
|
216 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pointing-categories ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@336
|
217 |
|
Patrick@336
|
218 |
# ~~~~~~ pointing-categories
|
Patrick@376
|
219 |
pointing-categories = element pointing-categories {
|
Patrick@376
|
220 |
pointing-c.attributes, pointing-c.content }
|
Patrick@376
|
221 |
|
Patrick@376
|
222 |
pointing-c.attributes =
|
Patrick@376
|
223 |
success.attribute?
|
Patrick@336
|
224 |
|
Patrick@336
|
225 |
pointing-c.content =
|
Patrick@336
|
226 |
pointing-c.categories,
|
Patrick@336
|
227 |
pointing.section
|
Patrick@336
|
228 |
|
Patrick@336
|
229 |
# ~~~~~~ pointing-c.categories
|
Patrick@336
|
230 |
pointing-c.categories = element categories { pointing-c.categories.content }
|
Patrick@336
|
231 |
|
Patrick@336
|
232 |
pointing-c.categories.content =
|
Patrick@336
|
233 |
pointing-c.category1,
|
Patrick@336
|
234 |
pointing-c.category2,
|
Patrick@336
|
235 |
(pointing-c.category3,
|
Patrick@336
|
236 |
(pointing-c.category4, pointing-c.category5?)?)?
|
Patrick@336
|
237 |
|
Patrick@336
|
238 |
# ~~~~~~ pointing-c.categoryN
|
Patrick@336
|
239 |
pointing-c.category1 = element category {
|
Patrick@336
|
240 |
attribute id { "1" }, pointing-c.category.content }
|
Patrick@336
|
241 |
pointing-c.category2 = element category {
|
Patrick@336
|
242 |
attribute id { "2" }, pointing-c.category.content }
|
Patrick@336
|
243 |
pointing-c.category3 = element category {
|
Patrick@336
|
244 |
attribute id { "3" }, pointing-c.category.content }
|
Patrick@336
|
245 |
pointing-c.category4 = element category {
|
Patrick@336
|
246 |
attribute id { "4" }, pointing-c.category.content }
|
Patrick@336
|
247 |
pointing-c.category5 = element category {
|
Patrick@336
|
248 |
attribute id { "5" }, pointing-c.category.content }
|
Patrick@336
|
249 |
|
Patrick@336
|
250 |
pointing-c.category.content = inlines
|
Patrick@336
|
251 |
|
patrick@73
|
252 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ matching ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
253 |
|
Patrick@161
|
254 |
# ~~~~~~ matching
|
Patrick@169
|
255 |
matching = element matching { matching.attributes, matching.content }
|
Patrick@169
|
256 |
|
Patrick@169
|
257 |
matching.attributes =
|
Patrick@376
|
258 |
success.attribute?
|
Patrick@376
|
259 |
& multiple.attribute?
|
Coraline@438
|
260 |
& noshuffle.attribute?
|
Coraline@409
|
261 |
& orientation.attribute?
|
patrick@75
|
262 |
|
patrick@73
|
263 |
matching.content =
|
Patrick@359
|
264 |
matching.intruders?,
|
patrick@73
|
265 |
match,
|
patrick@73
|
266 |
match+
|
patrick@73
|
267 |
|
Patrick@161
|
268 |
# ~~~~~~ match
|
Patrick@161
|
269 |
match = element match { match.content }
|
Patrick@161
|
270 |
|
Patrick@161
|
271 |
match.content =
|
Patrick@161
|
272 |
match.item,
|
Patrick@161
|
273 |
match.item
|
Patrick@161
|
274 |
|
patrick@73
|
275 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sort ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
276 |
|
patrick@73
|
277 |
sort = element sort { sort.attributes, sort.content }
|
patrick@73
|
278 |
|
patrick@73
|
279 |
sort.attributes =
|
Patrick@376
|
280 |
success.attribute?
|
Patrick@376
|
281 |
& shuffle.attribute?
|
Coraline@409
|
282 |
& orientation.attribute?
|
patrick@75
|
283 |
|
patrick@73
|
284 |
sort.content =
|
iinov@462
|
285 |
sort.intruders?,
|
iinov@461
|
286 |
comparison?,
|
iinov@461
|
287 |
sort.item,
|
iinov@461
|
288 |
sort.item+
|
patrick@73
|
289 |
|
patrick@125
|
290 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ categories ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@125
|
291 |
|
Patrick@310
|
292 |
# ~~~~~~ category.head
|
Patrick@310
|
293 |
category.head = element head { category.head.content }
|
Patrick@310
|
294 |
|
Patrick@310
|
295 |
category.head.content =
|
Patrick@384
|
296 |
title
|
Patrick@384
|
297 |
& shorttitle?
|
Patrick@384
|
298 |
& subtitle*
|
Patrick@310
|
299 |
|
patrick@125
|
300 |
# ~~~~~~ categories
|
Patrick@168
|
301 |
categories = element categories { categories.attributes, categories.content }
|
patrick@125
|
302 |
|
Patrick@168
|
303 |
categories.attributes =
|
Patrick@376
|
304 |
success.attribute?
|
Patrick@376
|
305 |
& multiple.attribute?
|
claire@380
|
306 |
& noshuffle.attribute?
|
Coraline@409
|
307 |
& orientation.attribute?
|
Patrick@310
|
308 |
|
patrick@125
|
309 |
categories.content =
|
Patrick@344
|
310 |
categories.intruders?,
|
patrick@125
|
311 |
category,
|
patrick@125
|
312 |
category+
|
patrick@125
|
313 |
|
patrick@125
|
314 |
# ~~~~~~ category
|
patrick@125
|
315 |
category = element category { category.content }
|
patrick@125
|
316 |
|
patrick@125
|
317 |
category.content =
|
patrick@125
|
318 |
category.head,
|
patrick@125
|
319 |
category.item*
|
patrick@125
|
320 |
|
Coraline@438
|
321 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wordsearch ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@448
|
322 |
|
Coraline@438
|
323 |
wordsearch = element wordsearch {wordsearch.attributes, wordsearch.content }
|
Coraline@438
|
324 |
|
Coraline@438
|
325 |
wordsearch.attributes =
|
Coraline@438
|
326 |
strict.attribute ?
|
Coraline@438
|
327 |
& wordlist.attribute ?
|
Coraline@438
|
328 |
|
Coraline@438
|
329 |
wordlist.attribute = attribute wordlist { "hidden" | "right" | "left" }
|
Coraline@438
|
330 |
|
Coraline@438
|
331 |
wordsearch.content =
|
Coraline@438
|
332 |
words
|
Coraline@438
|
333 |
& grid
|
Coraline@438
|
334 |
|
Coraline@438
|
335 |
# ~~~~~~ words
|
Coraline@438
|
336 |
words = element words {words.content}
|
Coraline@438
|
337 |
words.content = words.item+
|
Coraline@438
|
338 |
|
Coraline@438
|
339 |
# ~~~~~~ grid
|
Coraline@438
|
340 |
grid = element grid {grid.content}
|
Coraline@438
|
341 |
grid.content = line+
|
Coraline@438
|
342 |
|
Coraline@438
|
343 |
line = element line {line.content}
|
Coraline@438
|
344 |
line.content = cell+
|
Coraline@438
|
345 |
|
Coraline@438
|
346 |
cell = element cell {cell.content}
|
Coraline@438
|
347 |
cell.content = xsd:token {pattern = "."}
|
Patrick@450
|
348 |
|
Patrick@448
|
349 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ flashcard ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@448
|
350 |
|
Patrick@448
|
351 |
# ~~~~~~ flashcard
|
Patrick@448
|
352 |
flashcard = element flashcard { flashcard.content }
|
Patrick@448
|
353 |
|
Patrick@448
|
354 |
flashcard.content =
|
Patrick@448
|
355 |
side1,
|
Patrick@448
|
356 |
side2
|
Patrick@448
|
357 |
|
Patrick@448
|
358 |
# ~~~~~~ side1
|
Patrick@448
|
359 |
side1 = element side1 { side1.content }
|
Patrick@448
|
360 |
|
Patrick@448
|
361 |
side1.content =
|
Patrick@448
|
362 |
section+ | block+
|
Patrick@448
|
363 |
|
Patrick@448
|
364 |
# ~~~~~~ side2
|
Patrick@448
|
365 |
side2 = element side2 { side2.content }
|
Patrick@448
|
366 |
|
Patrick@448
|
367 |
side2.content =
|
Patrick@448
|
368 |
instructions?,
|
Patrick@448
|
369 |
flashcard.engine,
|
Patrick@448
|
370 |
help?,
|
Patrick@448
|
371 |
answer?
|
Patrick@448
|
372 |
|
Patrick@448
|
373 |
# ~~~~~~ flashcard.engine
|
Patrick@448
|
374 |
flashcard.engine =
|
Patrick@448
|
375 |
choices-radio
|
Patrick@448
|
376 |
| choices-check
|
Patrick@448
|
377 |
| blanks-fill
|
Patrick@448
|
378 |
| blanks-select
|
Patrick@448
|
379 |
| sort
|
Patrick@448
|
380 |
|
Patrick@450
|
381 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ coloring ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@450
|
382 |
|
Patrick@450
|
383 |
coloring = element coloring { coloring.attributes, coloring.content }
|
Patrick@450
|
384 |
|
Patrick@450
|
385 |
coloring.attributes =
|
Patrick@450
|
386 |
nomark.attribute?
|
Patrick@450
|
387 |
nomark.attribute = attribute nomark { xsd:boolean }
|
Patrick@450
|
388 |
|
Patrick@450
|
389 |
coloring.content =
|
Patrick@450
|
390 |
palette
|
Patrick@450
|
391 |
& canvas
|
Patrick@450
|
392 |
& areas?
|
Patrick@450
|
393 |
|
Patrick@450
|
394 |
# ~~~~~~ palette
|
Patrick@450
|
395 |
palette = element palette { palette.content }
|
Patrick@450
|
396 |
|
Patrick@450
|
397 |
palette.content =
|
Patrick@450
|
398 |
color+
|
Patrick@450
|
399 |
|
Patrick@450
|
400 |
# ~~~~~~ canvas
|
Patrick@450
|
401 |
canvas = element canvas { canvas.attributes }
|
Patrick@450
|
402 |
|
Patrick@450
|
403 |
canvas.attributes =
|
Patrick@450
|
404 |
media.id.attribute
|
Patrick@450
|
405 |
|
Patrick@450
|
406 |
# ~~~~~~ areas
|
Patrick@450
|
407 |
areas = element areas { areas.attributes }
|
Patrick@450
|
408 |
|
Patrick@450
|
409 |
areas.attributes =
|
Patrick@450
|
410 |
media.id.attribute
|
Patrick@450
|
411 |
|
Patrick@450
|
412 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ memory ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@450
|
413 |
|
Patrick@450
|
414 |
# ~~~~~~ memory
|
Patrick@450
|
415 |
memory = element memory { memory.attributes, memory.content }
|
Patrick@450
|
416 |
|
Patrick@450
|
417 |
memory.attributes =
|
Patrick@450
|
418 |
display.attribute?
|
Patrick@450
|
419 |
& delay.attribute?
|
Patrick@450
|
420 |
display.attribute = attribute display { xsd:positiveInteger }
|
Patrick@450
|
421 |
delay.attribute = attribute delay { xsd:positiveInteger }
|
Patrick@450
|
422 |
|
Patrick@450
|
423 |
memory.content =
|
Patrick@450
|
424 |
memory.match,
|
Patrick@450
|
425 |
memory.match+
|
Patrick@450
|
426 |
|
Patrick@450
|
427 |
# ~~~~~~ memory.match
|
Patrick@450
|
428 |
memory.match = element match { memory-m.content }
|
Patrick@450
|
429 |
|
Patrick@450
|
430 |
memory-m.content =
|
Patrick@450
|
431 |
memory-m.item,
|
Patrick@450
|
432 |
memory-m.item,
|
Patrick@450
|
433 |
audio?
|
Patrick@450
|
434 |
|
iinov@463
|
435 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dictation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
iinov@463
|
436 |
|
iinov@463
|
437 |
dictation = element dictation { dictation.content }
|
iinov@463
|
438 |
|
iinov@463
|
439 |
dictation.content =
|
iinov@463
|
440 |
audio,
|
iinov@463
|
441 |
dictation.block+
|
iinov@463
|
442 |
|
patrick@87
|
443 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@87
|
444 |
|
Coraline@407
|
445 |
production = element production { production.content }
|
Coraline@407
|
446 |
|
Coraline@407
|
447 |
production.content = text
|
patrick@87
|
448 |
|
patrick@73
|
449 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ composite ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
450 |
|
patrick@77
|
451 |
# ~~~~~~ composite
|
Patrick@161
|
452 |
composite = element composite { composite.attributes, composite.content }
|
Patrick@161
|
453 |
|
Patrick@161
|
454 |
composite.attributes =
|
Patrick@376
|
455 |
success.attribute?
|
Patrick@376
|
456 |
& multipage.attribute?
|
Patrick@310
|
457 |
multipage.attribute = attribute multipage { xsd:boolean }
|
patrick@75
|
458 |
|
patrick@73
|
459 |
composite.content =
|
patrick@85
|
460 |
subquiz,
|
Patrick@154
|
461 |
subquiz+
|
patrick@77
|
462 |
|
patrick@85
|
463 |
# ~~~~~~ subquiz
|
patrick@85
|
464 |
subquiz = element subquiz { subquiz.content }
|
patrick@77
|
465 |
|
patrick@85
|
466 |
subquiz.content =
|
patrick@77
|
467 |
instructions?,
|
Patrick@141
|
468 |
engine,
|
Patrick@141
|
469 |
help?,
|
Patrick@141
|
470 |
answer?
|
patrick@73
|
471 |
|
patrick@73
|
472 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ help ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
473 |
|
patrick@73
|
474 |
help = element help { help.content }
|
patrick@73
|
475 |
|
patrick@73
|
476 |
help.content =
|
patrick@73
|
477 |
(section+ | block+)?,
|
patrick@73
|
478 |
link*
|
patrick@73
|
479 |
|
patrick@87
|
480 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
481 |
|
patrick@87
|
482 |
answer = element answer { answer.content }
|
patrick@73
|
483 |
|
patrick@87
|
484 |
answer.content =
|
patrick@81
|
485 |
(section+ | block+)?,
|
patrick@80
|
486 |
link*
|
patrick@73
|
487 |
|
patrick@73
|
488 |
|
patrick@73
|
489 |
# =============================================================================
|
patrick@73
|
490 |
# BLOCK LEVEL
|
patrick@73
|
491 |
# =============================================================================
|
patrick@73
|
492 |
|
patrick@73
|
493 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
494 |
|
Patrick@313
|
495 |
blanks.block = (
|
Patrick@313
|
496 |
blanks.p | blanks.list | blanks.blockquote | blanks.speech | blanks.table
|
Patrick@313
|
497 |
| blanks.media)
|
Coraline@409
|
498 |
blanks-m.block = (
|
Coraline@409
|
499 |
blanks-m.p | blanks-m.list | blanks-m.blockquote | blanks-m.speech
|
Coraline@409
|
500 |
| blanks-m.table | blanks-m.media)
|
Coraline@441
|
501 |
blanks-c.block = (
|
Coraline@441
|
502 |
blanks-c.p | blanks-c.list | blanks-c.blockquote | blanks-c.speech
|
Coraline@441
|
503 |
| blanks-c.table | blanks-c.media)
|
Coraline@442
|
504 |
correct.block = (
|
Coraline@442
|
505 |
correct.p | correct.list | correct.blockquote | correct.speech
|
Coraline@442
|
506 |
| correct.table | media)
|
Patrick@336
|
507 |
pointing.block = (
|
Patrick@336
|
508 |
pointing.p | pointing.list | pointing.blockquote | pointing.speech
|
Patrick@336
|
509 |
| pointing.table | media)
|
iinov@463
|
510 |
dictation.block = dictation.p
|
patrick@73
|
511 |
|
patrick@73
|
512 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ p ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
513 |
|
patrick@73
|
514 |
blanks.p = element p { blanks.p.content }
|
Coraline@409
|
515 |
blanks-m.p = element p { blanks-m.p.content }
|
Coraline@441
|
516 |
blanks-c.p = element p { blanks-c.p.content }
|
Coraline@442
|
517 |
correct.p = element p { correct.p.content }
|
Patrick@336
|
518 |
pointing.p = element p { pointing.p.content }
|
iinov@463
|
519 |
dictation.p = element p { dictation.p.content }
|
patrick@73
|
520 |
|
patrick@73
|
521 |
blanks.p.content =
|
iinov@463
|
522 |
blanks.inlines
|
Coraline@409
|
523 |
blanks-m.p.content =
|
iinov@463
|
524 |
blanks-m.inlines
|
Coraline@441
|
525 |
blanks-c.p.content =
|
iinov@463
|
526 |
blanks-c.inlines
|
Coraline@442
|
527 |
correct.p.content =
|
iinov@463
|
528 |
correct.inlines
|
Patrick@336
|
529 |
pointing.p.content =
|
iinov@463
|
530 |
pointing.inlines
|
iinov@463
|
531 |
dictation.p.content =
|
iinov@463
|
532 |
dictation.inlines
|
patrick@73
|
533 |
|
patrick@73
|
534 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
535 |
|
patrick@73
|
536 |
# ~~~~~~ list
|
patrick@75
|
537 |
blanks.list = element list {
|
patrick@73
|
538 |
block.head?,
|
patrick@73
|
539 |
( (attribute type {"ordered"}?, blanks.item, blanks.item+)
|
Coraline@422
|
540 |
| (attribute type {"glossary"}, item.glossary+) )
|
patrick@75
|
541 |
}
|
Coraline@409
|
542 |
blanks-m.list = element list {
|
Coraline@409
|
543 |
block.head?,
|
Coraline@441
|
544 |
( (attribute type {"ordered"}?, blanks-m.item, blanks-m.item+)
|
Coraline@441
|
545 |
| (attribute type {"glossary"}, item.glossary+) )
|
Coraline@441
|
546 |
}
|
Coraline@441
|
547 |
blanks-c.list = element list {
|
Coraline@441
|
548 |
block.head?,
|
Coraline@409
|
549 |
( (attribute type {"ordered"}?, blanks.item, blanks.item+)
|
Coraline@422
|
550 |
| (attribute type {"glossary"}, item.glossary+) )
|
Coraline@409
|
551 |
}
|
Coraline@442
|
552 |
correct.list = element list {
|
Coraline@442
|
553 |
block.head?,
|
Coraline@442
|
554 |
( (attribute type {"ordered"}?, correct.item, correct.item+)
|
Coraline@442
|
555 |
| (attribute type {"glossary"}, item.glossary+) )
|
Coraline@442
|
556 |
}
|
Patrick@336
|
557 |
pointing.list = element list {
|
patrick@73
|
558 |
block.head?,
|
Patrick@336
|
559 |
( (attribute type {"ordered"}?, pointing.item, pointing.item+)
|
Coraline@422
|
560 |
| (attribute type {"glossary"}, item.glossary+) )
|
patrick@75
|
561 |
}
|
patrick@73
|
562 |
|
patrick@73
|
563 |
# ~~~~~~ item
|
patrick@73
|
564 |
blanks.item = element item { blanks.item.content }
|
Coraline@441
|
565 |
blanks-m.item = element item { blanks-m.item.content }
|
Coraline@441
|
566 |
blanks-c.item = element item { blanks-c.item.content }
|
Coraline@442
|
567 |
correct.item = element item { correct.item.content }
|
Patrick@336
|
568 |
pointing.item = element item { pointing.item.content }
|
Patrick@450
|
569 |
|
patrick@73
|
570 |
|
Coraline@442
|
571 |
blanks.item.content = blanks.inlines | blanks.block+
|
Coraline@442
|
572 |
blanks-m.item.content = blanks-m.inlines | blanks-m.block+
|
Coraline@442
|
573 |
blanks-c.item.content = blanks-c.inlines | blanks-c.block+
|
Coraline@442
|
574 |
correct.item.content = correct.inlines | correct.block+
|
Coraline@442
|
575 |
pointing.item.content = pointing.inlines | pointing.block+
|
patrick@73
|
576 |
|
Patrick@313
|
577 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blockquote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@313
|
578 |
|
Patrick@313
|
579 |
blanks.blockquote = element blockquote {
|
Patrick@313
|
580 |
blockquote.attributes, blanks.blockquote.content }
|
Coraline@409
|
581 |
blanks-m.blockquote = element blockquote {
|
Coraline@409
|
582 |
blockquote.attributes, blanks-m.blockquote.content }
|
Coraline@441
|
583 |
blanks-c.blockquote = element blockquote {
|
Coraline@441
|
584 |
blockquote.attributes, blanks-c.blockquote.content }
|
Coraline@442
|
585 |
correct.blockquote = element blockquote {
|
Coraline@442
|
586 |
blockquote.attributes, correct.blockquote.content }
|
Patrick@336
|
587 |
pointing.blockquote = element blockquote {
|
Patrick@336
|
588 |
blockquote.attributes, pointing.blockquote.content }
|
Patrick@313
|
589 |
|
Patrick@313
|
590 |
blanks.blockquote.content =
|
Patrick@313
|
591 |
block.head?,
|
Patrick@313
|
592 |
(blanks.p | speech | blanks.list)+,
|
Patrick@313
|
593 |
attribution?
|
Coraline@409
|
594 |
blanks-m.blockquote.content =
|
Coraline@409
|
595 |
block.head?,
|
Coraline@409
|
596 |
(blanks-m.p | speech | blanks-m.list)+,
|
Coraline@409
|
597 |
attribution?
|
Coraline@441
|
598 |
blanks-c.blockquote.content =
|
Coraline@441
|
599 |
block.head?,
|
Coraline@441
|
600 |
(blanks-c.p | speech | blanks-c.list)+,
|
Coraline@441
|
601 |
attribution?
|
Coraline@442
|
602 |
correct.blockquote.content =
|
Coraline@442
|
603 |
block.head?,
|
Coraline@442
|
604 |
(correct.p | speech | correct.list)+,
|
Coraline@442
|
605 |
attribution?
|
Patrick@336
|
606 |
pointing.blockquote.content =
|
Patrick@313
|
607 |
block.head?,
|
Patrick@336
|
608 |
(pointing.p | speech | pointing.list)+,
|
Patrick@313
|
609 |
attribution?
|
Patrick@313
|
610 |
|
Patrick@313
|
611 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ speech ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@313
|
612 |
|
Patrick@313
|
613 |
# ~~~~~~ speech
|
Patrick@313
|
614 |
blanks.speech = element speech { blanks.speech.content }
|
Coraline@409
|
615 |
blanks-m.speech = element speech { blanks-m.speech.content }
|
Coraline@441
|
616 |
blanks-c.speech = element speech { blanks-c.speech.content }
|
Coraline@442
|
617 |
correct.speech = element speech { correct.speech.content }
|
Patrick@336
|
618 |
pointing.speech = element speech { pointing.speech.content }
|
Patrick@313
|
619 |
|
Patrick@313
|
620 |
blanks.speech.content =
|
Patrick@313
|
621 |
blanks.speaker?,
|
Patrick@313
|
622 |
stage?,
|
Patrick@313
|
623 |
(blanks.p | blanks.blockquote)+
|
Coraline@409
|
624 |
blanks-m.speech.content =
|
Coraline@409
|
625 |
blanks-m.speaker?,
|
Coraline@409
|
626 |
stage?,
|
Coraline@409
|
627 |
(blanks-m.p | blanks-m.blockquote)+
|
Coraline@441
|
628 |
blanks-c.speech.content =
|
Coraline@441
|
629 |
blanks-c.speaker?,
|
Coraline@441
|
630 |
stage?,
|
Coraline@441
|
631 |
(blanks-c.p | blanks-c.blockquote)+
|
Coraline@442
|
632 |
correct.speech.content =
|
Coraline@442
|
633 |
correct.speaker?,
|
Coraline@442
|
634 |
stage?,
|
Coraline@442
|
635 |
(correct.p | correct.blockquote)+
|
Patrick@336
|
636 |
pointing.speech.content =
|
Patrick@336
|
637 |
pointing.speaker?,
|
Patrick@313
|
638 |
stage?,
|
Patrick@336
|
639 |
(pointing.p | pointing.blockquote)+
|
Patrick@313
|
640 |
|
Patrick@313
|
641 |
# ~~~~~~ speaker
|
Patrick@313
|
642 |
blanks.speaker = element speaker { blanks.speaker.content }
|
Coraline@409
|
643 |
blanks-m.speaker = element speaker { blanks-m.speaker.content }
|
Coraline@441
|
644 |
blanks-c.speaker = element speaker { blanks-c.speaker.content }
|
Coraline@442
|
645 |
correct.speaker = element speaker { correct.speaker.content }
|
Patrick@336
|
646 |
pointing.speaker = element speaker { pointing.speaker.content }
|
Patrick@313
|
647 |
|
Patrick@313
|
648 |
blanks.speaker.content = blanks.inlines
|
Coraline@409
|
649 |
blanks-m.speaker.content = blanks-m.inlines
|
Coraline@441
|
650 |
blanks-c.speaker.content = blanks-c.inlines
|
Coraline@442
|
651 |
correct.speaker.content = correct.inlines
|
Patrick@336
|
652 |
pointing.speaker.content = pointing.inlines
|
Patrick@313
|
653 |
|
patrick@73
|
654 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
655 |
|
Patrick@313
|
656 |
# ~~~~~~ table
|
patrick@249
|
657 |
blanks.table = element table { table.attributes, blanks.table.content }
|
Coraline@409
|
658 |
blanks-m.table = element table { table.attributes, blanks-m.table.content }
|
Coraline@441
|
659 |
blanks-c.table = element table { table.attributes, blanks-m.table.content }
|
Coraline@442
|
660 |
correct.table = element table { table.attributes, correct.table.content }
|
Patrick@336
|
661 |
pointing.table = element table { table.attributes, pointing.table.content }
|
patrick@73
|
662 |
|
patrick@73
|
663 |
blanks.table.content =
|
patrick@73
|
664 |
block.head?,
|
Patrick@358
|
665 |
((thead?, blanks.tbody+) | blanks.tr+),
|
Patrick@313
|
666 |
blanks.table.caption?
|
Coraline@409
|
667 |
blanks-m.table.content =
|
Coraline@409
|
668 |
block.head?,
|
Coraline@409
|
669 |
((thead?, blanks-m.tbody+) | blanks-m.tr+),
|
Coraline@409
|
670 |
blanks-m.table.caption?
|
Coraline@441
|
671 |
blanks-c.table.content =
|
Coraline@441
|
672 |
block.head?,
|
Coraline@441
|
673 |
((thead?, blanks-c.tbody+) | blanks-c.tr+),
|
Coraline@441
|
674 |
blanks-c.table.caption?
|
Coraline@442
|
675 |
correct.table.content =
|
Coraline@442
|
676 |
block.head?,
|
Coraline@442
|
677 |
((thead?, correct.tbody+) | correct.tr+),
|
Coraline@442
|
678 |
correct.table.caption?
|
Patrick@336
|
679 |
pointing.table.content =
|
patrick@73
|
680 |
block.head?,
|
Patrick@358
|
681 |
((thead?, pointing.tbody+) | pointing.tr+),
|
Patrick@336
|
682 |
pointing.table.caption?
|
patrick@73
|
683 |
|
patrick@73
|
684 |
# ~~~~~~ tbody
|
patrick@249
|
685 |
blanks.tbody = element tbody { blanks.tbody.content }
|
Coraline@409
|
686 |
blanks-m.tbody = element tbody { blanks-m.tbody.content }
|
Coraline@441
|
687 |
blanks-c.tbody = element tbody { blanks-m.tbody.content }
|
Coraline@442
|
688 |
correct.tbody = element tbody { correct.tbody.content }
|
Patrick@336
|
689 |
pointing.tbody = element tbody { pointing.tbody.content }
|
patrick@73
|
690 |
|
patrick@73
|
691 |
blanks.tbody.content =
|
patrick@249
|
692 |
blanks.tr+
|
Coraline@409
|
693 |
blanks-m.tbody.content =
|
Coraline@409
|
694 |
blanks-m.tr+
|
Coraline@441
|
695 |
blanks-c.tbody.content =
|
Coraline@441
|
696 |
blanks-c.tr+
|
Coraline@442
|
697 |
correct.tbody.content =
|
Coraline@442
|
698 |
correct.tr+
|
Patrick@336
|
699 |
pointing.tbody.content =
|
Patrick@336
|
700 |
pointing.tr+
|
patrick@73
|
701 |
|
patrick@249
|
702 |
# ~~~~~~ tr
|
patrick@249
|
703 |
blanks.tr = element tr { tr.attributes, blanks.tr.content }
|
Coraline@409
|
704 |
blanks-m.tr = element tr { tr.attributes, blanks-m.tr.content }
|
Coraline@441
|
705 |
blanks-c.tr = element tr { tr.attributes, blanks-c.tr.content }
|
Coraline@442
|
706 |
correct.tr = element tr { tr.attributes, correct.tr.content }
|
Patrick@336
|
707 |
pointing.tr = element tr { tr.attributes, pointing.tr.content }
|
patrick@73
|
708 |
|
patrick@249
|
709 |
blanks.tr.content =
|
patrick@249
|
710 |
(blanks.td | blanks.th)+
|
Coraline@409
|
711 |
blanks-m.tr.content =
|
Coraline@409
|
712 |
(blanks-m.td | blanks-m.th)+
|
Coraline@441
|
713 |
blanks-c.tr.content =
|
Coraline@441
|
714 |
(blanks-c.td | blanks-c.th)+
|
Coraline@442
|
715 |
correct.tr.content =
|
Coraline@442
|
716 |
(correct.td | correct.th)+
|
Patrick@336
|
717 |
pointing.tr.content =
|
Patrick@336
|
718 |
(pointing.td | pointing.th)+
|
patrick@73
|
719 |
|
patrick@249
|
720 |
# ~~~~~~ td, th
|
patrick@249
|
721 |
blanks.td = element td { td.attributes, blanks.td.content }
|
patrick@249
|
722 |
blanks.th = element th { td.attributes, blanks.td.content }
|
Coraline@409
|
723 |
blanks-m.td = element td { td.attributes, blanks-m.td.content }
|
Coraline@409
|
724 |
blanks-m.th = element th { td.attributes, blanks-m.td.content }
|
Coraline@441
|
725 |
blanks-c.td = element td { td.attributes, blanks-c.td.content }
|
Coraline@441
|
726 |
blanks-c.th = element th { td.attributes, blanks-c.td.content }
|
Coraline@442
|
727 |
correct.td = element td { td.attributes, correct.td.content }
|
Coraline@442
|
728 |
correct.th = element th { td.attributes, correct.td.content }
|
Patrick@336
|
729 |
pointing.td = element td { td.attributes, pointing.td.content }
|
Patrick@336
|
730 |
pointing.th = element th { td.attributes, pointing.td.content }
|
patrick@73
|
731 |
|
patrick@249
|
732 |
blanks.td.content =
|
patrick@75
|
733 |
blanks.inlines
|
Patrick@313
|
734 |
| (blanks.p | blanks.media)+
|
Coraline@409
|
735 |
blanks-m.td.content =
|
Coraline@409
|
736 |
blanks-m.inlines
|
Coraline@409
|
737 |
| (blanks-m.p | blanks-m.media)+
|
Coraline@441
|
738 |
blanks-c.td.content =
|
Coraline@441
|
739 |
blanks-c.inlines
|
Coraline@441
|
740 |
| (blanks-c.p | blanks-c.media)+
|
Coraline@442
|
741 |
correct.td.content =
|
Coraline@442
|
742 |
correct.inlines
|
Coraline@442
|
743 |
| (correct.p | media)+
|
Patrick@336
|
744 |
pointing.td.content =
|
Patrick@336
|
745 |
pointing.inlines
|
Patrick@336
|
746 |
| (pointing.p | media)+
|
Patrick@313
|
747 |
|
Patrick@313
|
748 |
# ~~~~~~ table.caption
|
Patrick@313
|
749 |
blanks.table.caption = element caption { blanks.caption.content }
|
Coraline@409
|
750 |
blanks-m.table.caption = element caption { blanks-m.caption.content }
|
Coraline@441
|
751 |
blanks-c.table.caption = element caption { blanks-c.caption.content }
|
Coraline@442
|
752 |
correct.table.caption = element caption { correct.caption.content }
|
Patrick@336
|
753 |
pointing.table.caption = element caption { pointing.caption.content }
|
Patrick@313
|
754 |
|
Patrick@313
|
755 |
blanks.caption.content =
|
Patrick@313
|
756 |
blanks.inlines
|
Patrick@313
|
757 |
| (blanks.p | speech | blanks.list | blockquote)+
|
Coraline@409
|
758 |
blanks-m.caption.content =
|
Coraline@409
|
759 |
blanks-m.inlines
|
Coraline@409
|
760 |
| (blanks-m.p | speech | blanks-m.list | blockquote)+
|
Coraline@441
|
761 |
blanks-c.caption.content =
|
Coraline@441
|
762 |
blanks-c.inlines
|
Coraline@441
|
763 |
| (blanks-c.p | speech | blanks-c.list | blockquote)+
|
Coraline@442
|
764 |
correct.caption.content =
|
Coraline@442
|
765 |
correct.inlines
|
Coraline@442
|
766 |
| (correct.p | speech | correct.list | blockquote)+
|
Patrick@336
|
767 |
pointing.caption.content =
|
Patrick@336
|
768 |
pointing.inlines
|
Patrick@336
|
769 |
| (pointing.p | speech | pointing.list | blockquote)+
|
patrick@73
|
770 |
|
Patrick@174
|
771 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@174
|
772 |
|
Patrick@313
|
773 |
# ~~~~~~ media
|
Patrick@313
|
774 |
blanks.media = element media { media.attributes, blanks.media.content }
|
Coraline@409
|
775 |
blanks-m.media = element media { media.attributes, blanks-m.media.content }
|
Coraline@441
|
776 |
blanks-c.media = element media { media.attributes, blanks-c.media.content }
|
Coraline@442
|
777 |
correct.media = element media { media.attributes, correct.media.content }
|
Patrick@336
|
778 |
pointing.media = element media { media.attributes, pointing.media.content }
|
Patrick@174
|
779 |
|
Patrick@313
|
780 |
blanks.media.content =
|
Patrick@174
|
781 |
block.head?,
|
Patrick@174
|
782 |
(blanks.image | audio | video)+,
|
Patrick@313
|
783 |
blanks.media.caption?,
|
Patrick@313
|
784 |
link?
|
Coraline@409
|
785 |
blanks-m.media.content =
|
Coraline@409
|
786 |
block.head?,
|
Coraline@409
|
787 |
(blanks-m.image | audio | video)+,
|
Coraline@409
|
788 |
blanks-m.media.caption?,
|
Coraline@409
|
789 |
link?
|
Coraline@441
|
790 |
blanks-c.media.content =
|
Coraline@441
|
791 |
block.head?,
|
Coraline@441
|
792 |
(image | audio | video)+,
|
Coraline@441
|
793 |
blanks-c.media.caption?,
|
Coraline@441
|
794 |
link?
|
Coraline@442
|
795 |
correct.media.content =
|
Coraline@442
|
796 |
block.head?,
|
Coraline@442
|
797 |
(image | audio | video)+,
|
Coraline@442
|
798 |
correct.media.caption?,
|
Coraline@442
|
799 |
link?
|
Patrick@336
|
800 |
pointing.media.content =
|
Patrick@313
|
801 |
block.head?,
|
Patrick@313
|
802 |
(image | audio | video)+,
|
Patrick@336
|
803 |
pointing.media.caption?,
|
Patrick@174
|
804 |
link?
|
Patrick@174
|
805 |
|
Patrick@174
|
806 |
# ~~~~~~ blanks.image
|
Patrick@174
|
807 |
blanks.image = element image { image.attributes, blanks.image.content }
|
Coraline@409
|
808 |
blanks-m.image = element image { image.attributes, blanks-m.image.content }
|
Patrick@174
|
809 |
|
Patrick@174
|
810 |
blanks.image.content =
|
Patrick@174
|
811 |
copyright?,
|
Patrick@192
|
812 |
blanks.dropzone*
|
Coraline@409
|
813 |
blanks-m.image.content =
|
Coraline@409
|
814 |
copyright?,
|
Coraline@409
|
815 |
blanks-m.dropzone*
|
Patrick@174
|
816 |
|
Patrick@313
|
817 |
# ~~~~~~ dropzone
|
Patrick@192
|
818 |
blanks.dropzone = element dropzone {
|
Patrick@192
|
819 |
blanks.dropzone.attributes, blanks.dropzone.content }
|
Coraline@409
|
820 |
blanks-m.dropzone = element dropzone {
|
Patrick@411
|
821 |
blanks-m.dropzone.attributes, blanks-m.dropzone.content }
|
Patrick@183
|
822 |
|
Patrick@192
|
823 |
blanks.dropzone.attributes =
|
Patrick@183
|
824 |
x.attribute
|
Patrick@310
|
825 |
& y.attribute
|
Patrick@411
|
826 |
blanks-m.dropzone.attributes =
|
patrick@194
|
827 |
x.attribute
|
patrick@194
|
828 |
& y.attribute
|
Coraline@412
|
829 |
& h.attribute
|
patrick@194
|
830 |
& w.attribute
|
Patrick@174
|
831 |
|
Patrick@192
|
832 |
blanks.dropzone.content =
|
Patrick@183
|
833 |
blank
|
Coraline@409
|
834 |
blanks-m.dropzone.content =
|
Coraline@409
|
835 |
blank-m
|
Patrick@174
|
836 |
|
Patrick@313
|
837 |
# ~~~~~~ media.caption
|
Patrick@313
|
838 |
blanks.media.caption = element caption {
|
Patrick@313
|
839 |
caption.attributes, blanks.caption.content }
|
Coraline@409
|
840 |
blanks-m.media.caption = element caption {
|
Coraline@409
|
841 |
caption.attributes, blanks-m.caption.content }
|
Coraline@441
|
842 |
blanks-c.media.caption = element caption {
|
Coraline@441
|
843 |
caption.attributes, blanks-c.caption.content }
|
Coraline@442
|
844 |
correct.media.caption = element caption {
|
Coraline@442
|
845 |
caption.attributes, correct.caption.content }
|
Patrick@336
|
846 |
pointing.media.caption = element caption {
|
Patrick@336
|
847 |
caption.attributes, pointing.caption.content }
|
Patrick@313
|
848 |
|
patrick@73
|
849 |
# ~~~~~~~~~~~~~~~~~~~~~~~~ choices.right, choices.wrong ~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
850 |
|
patrick@73
|
851 |
choices.right = element right { choices.right.content }
|
patrick@73
|
852 |
choices.wrong = element wrong { choices.right.content }
|
patrick@73
|
853 |
|
patrick@73
|
854 |
choices.right.content =
|
patrick@73
|
855 |
inlines
|
Patrick@161
|
856 |
| ((p | image | (audio, image?) | video), help?, answer?)
|
patrick@73
|
857 |
|
Coraline@409
|
858 |
# ~~~~~~~~~~~~~~~~~~~~ blanks.intruders, blanks-m.intruders ~~~~~~~~~~~~~~~~~~
|
patrick@73
|
859 |
|
Patrick@342
|
860 |
blanks.intruders = element intruders { blanks.intruders.content }
|
Coraline@409
|
861 |
blanks-m.intruders = element intruders { blanks-m.intruders.content }
|
patrick@73
|
862 |
|
Coraline@409
|
863 |
blanks.intruders.content = blank+
|
Coraline@409
|
864 |
blanks-m.intruders.content = blank-m+
|
patrick@73
|
865 |
|
Coraline@442
|
866 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ correct.intruders ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Coraline@442
|
867 |
|
Coraline@442
|
868 |
correct.intruders = element intruders { correct.intruders.content }
|
Coraline@442
|
869 |
|
Coraline@442
|
870 |
correct.intruders.content = char+
|
Coraline@442
|
871 |
|
Patrick@359
|
872 |
# ~~~~~~~~~~~~~~~~~~~~~~~ matching.intruders, match.item ~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
873 |
|
Patrick@359
|
874 |
# ~~~~~~~ matching.intruders
|
Patrick@359
|
875 |
matching.intruders = element intruders { matching.intruders.content }
|
Patrick@359
|
876 |
|
Patrick@359
|
877 |
matching.intruders.content =
|
Patrick@359
|
878 |
match.item+
|
Patrick@359
|
879 |
|
Patrick@359
|
880 |
# ~~~~~~~ match.item
|
Patrick@161
|
881 |
match.item = element item { match.item.content }
|
patrick@73
|
882 |
|
Patrick@161
|
883 |
match.item.content =
|
Patrick@161
|
884 |
inlines
|
Patrick@341
|
885 |
| (p, help?, answer?)
|
patrick@73
|
886 |
|
iinov@462
|
887 |
# ~~~~~~~~~~~~~~~~~~~~ sort.intruders, comparison, sort.item ~~~~~~~~~~~~~~~~~~
|
patrick@73
|
888 |
|
iinov@461
|
889 |
# ~~~~~~~ sort.intruders
|
iinov@461
|
890 |
sort.intruders = element intruders { sort.intruders.content }
|
iinov@461
|
891 |
|
iinov@461
|
892 |
sort.intruders.content =
|
iinov@461
|
893 |
sort.item+
|
iinov@461
|
894 |
|
iinov@462
|
895 |
# ~~~~~~ comparison
|
iinov@462
|
896 |
comparison = element comparison { comparison.content }
|
iinov@462
|
897 |
|
iinov@462
|
898 |
comparison.content = inlines
|
iinov@462
|
899 |
|
patrick@73
|
900 |
# ~~~~~~ sort.item
|
patrick@73
|
901 |
sort.item = element item { sort.item.attributes, sort.item.content }
|
patrick@73
|
902 |
|
patrick@73
|
903 |
sort.item.attributes =
|
patrick@73
|
904 |
item.shuffle.attribute?
|
patrick@73
|
905 |
item.shuffle.attribute = attribute shuffle { xsd:integer }
|
patrick@73
|
906 |
|
Patrick@161
|
907 |
sort.item.content =
|
Patrick@161
|
908 |
inlines
|
Patrick@341
|
909 |
| (p, help?, answer?)
|
patrick@73
|
910 |
|
Patrick@344
|
911 |
# ~~~~~~~~~~~~~~~~~~~~~ categories.intruders, category.item ~~~~~~~~~~~~~~~~~~~
|
patrick@125
|
912 |
|
Patrick@344
|
913 |
# ~~~~~~ categories.intruders
|
Patrick@344
|
914 |
categories.intruders = element intruders { categories.intruders.content }
|
Patrick@342
|
915 |
|
Patrick@344
|
916 |
categories.intruders.content =
|
Patrick@342
|
917 |
category.item+
|
Patrick@342
|
918 |
|
Patrick@342
|
919 |
# ~~~~~~ category.item
|
patrick@125
|
920 |
category.item = element item { category.item.content }
|
patrick@125
|
921 |
|
Patrick@161
|
922 |
category.item.content =
|
Patrick@161
|
923 |
inlines
|
Patrick@341
|
924 |
| (p, help?, answer?)
|
patrick@125
|
925 |
|
Coraline@438
|
926 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ words.item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Coraline@438
|
927 |
words.item = element item {words.item.content, words.item.attributes }
|
Patrick@450
|
928 |
|
Coraline@438
|
929 |
words.item.content = inlines
|
Coraline@438
|
930 |
|
Coraline@438
|
931 |
words.item.attributes =
|
Coraline@438
|
932 |
startx
|
Coraline@438
|
933 |
& starty
|
Coraline@438
|
934 |
& endx
|
Coraline@438
|
935 |
& endy
|
Coraline@438
|
936 |
|
Coraline@438
|
937 |
startx = attribute startx {xsd:token {pattern = "[a-zA-Z]+"}}
|
Coraline@438
|
938 |
starty = attribute starty {xsd:token {pattern = "\d+"}}
|
Coraline@438
|
939 |
endx = attribute endx {xsd:token {pattern = "[a-zA-Z]+"}}
|
Coraline@438
|
940 |
endy = attribute endy {xsd:token {pattern = "\d+"}}
|
Coraline@438
|
941 |
|
Patrick@450
|
942 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ color ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@450
|
943 |
|
Patrick@450
|
944 |
color = element color { color.attributes }
|
Patrick@450
|
945 |
|
Patrick@450
|
946 |
color.attributes =
|
Patrick@450
|
947 |
color.code
|
Patrick@450
|
948 |
& color.coderef?
|
Patrick@450
|
949 |
color.code = attribute code {xsd:token { pattern = "#(\d|\w){6}"}}
|
Patrick@450
|
950 |
color.coderef = attribute coderef { list{xsd:token { pattern = "#(\d|\w){6}"}+}}
|
Patrick@450
|
951 |
|
Patrick@450
|
952 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ memory-m.item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@450
|
953 |
|
Patrick@450
|
954 |
memory-m.item = element item { memory-m.item.content }
|
Patrick@450
|
955 |
|
Patrick@450
|
956 |
memory-m.item.content = image
|
Patrick@450
|
957 |
|
patrick@73
|
958 |
|
patrick@73
|
959 |
# =============================================================================
|
patrick@73
|
960 |
# INLINE LEVEL
|
patrick@73
|
961 |
# =============================================================================
|
patrick@73
|
962 |
|
patrick@75
|
963 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inlines ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@75
|
964 |
|
Patrick@293
|
965 |
blanks.inlines = mixed {
|
Patrick@293
|
966 |
sup*
|
Patrick@293
|
967 |
& sub*
|
Patrick@293
|
968 |
& var*
|
Patrick@293
|
969 |
& number*
|
Patrick@293
|
970 |
& acronym*
|
Patrick@293
|
971 |
& warning*
|
Patrick@293
|
972 |
|
Patrick@291
|
973 |
& highlight*
|
Patrick@291
|
974 |
& emphasis*
|
Patrick@291
|
975 |
& mentioned*
|
Patrick@350
|
976 |
& literal*
|
Patrick@350
|
977 |
& term*
|
Patrick@291
|
978 |
& stage*
|
Patrick@350
|
979 |
& name*
|
Patrick@350
|
980 |
& foreign*
|
Patrick@350
|
981 |
& date*
|
Patrick@350
|
982 |
& math*
|
Patrick@351
|
983 |
& quote*
|
Patrick@291
|
984 |
& initial*
|
Patrick@291
|
985 |
& note*
|
Patrick@291
|
986 |
& link*
|
Patrick@291
|
987 |
& anchor*
|
Patrick@291
|
988 |
& index*
|
Patrick@351
|
989 |
& image*
|
Patrick@351
|
990 |
& audio*
|
Patrick@351
|
991 |
& smil*
|
Coraline@436
|
992 |
& nowrap*
|
Patrick@293
|
993 |
|
patrick@75
|
994 |
& blank*
|
Patrick@293
|
995 |
}
|
Patrick@288
|
996 |
|
Coraline@409
|
997 |
blanks-m.inlines = mixed {
|
Coraline@409
|
998 |
sup*
|
Coraline@409
|
999 |
& sub*
|
Coraline@409
|
1000 |
& var*
|
Coraline@409
|
1001 |
& number*
|
Coraline@409
|
1002 |
& acronym*
|
Coraline@409
|
1003 |
& warning*
|
Coraline@409
|
1004 |
|
Coraline@409
|
1005 |
& highlight*
|
Coraline@409
|
1006 |
& emphasis*
|
Coraline@409
|
1007 |
& mentioned*
|
Coraline@409
|
1008 |
& literal*
|
Coraline@409
|
1009 |
& term*
|
Coraline@409
|
1010 |
& stage*
|
Coraline@409
|
1011 |
& name*
|
Coraline@409
|
1012 |
& foreign*
|
Coraline@409
|
1013 |
& date*
|
Coraline@409
|
1014 |
& math*
|
Coraline@409
|
1015 |
& quote*
|
Coraline@409
|
1016 |
& initial*
|
Coraline@409
|
1017 |
& note*
|
Coraline@409
|
1018 |
& link*
|
Coraline@409
|
1019 |
& anchor*
|
Coraline@409
|
1020 |
& index*
|
Coraline@409
|
1021 |
& image*
|
Coraline@409
|
1022 |
& audio*
|
Coraline@409
|
1023 |
& smil*
|
Coraline@436
|
1024 |
& nowrap*
|
Coraline@409
|
1025 |
|
Coraline@409
|
1026 |
& blank-m*
|
Coraline@409
|
1027 |
}
|
Coraline@409
|
1028 |
|
Coraline@441
|
1029 |
blanks-c.inlines = mixed {
|
Coraline@441
|
1030 |
sup*
|
Coraline@441
|
1031 |
& sub*
|
Coraline@441
|
1032 |
& var*
|
Coraline@441
|
1033 |
& number*
|
Coraline@441
|
1034 |
& acronym*
|
Coraline@441
|
1035 |
& warning*
|
Coraline@441
|
1036 |
|
Coraline@441
|
1037 |
& highlight*
|
Coraline@441
|
1038 |
& emphasis*
|
Coraline@441
|
1039 |
& mentioned*
|
Coraline@441
|
1040 |
& literal*
|
Coraline@441
|
1041 |
& term*
|
Coraline@441
|
1042 |
& stage*
|
Coraline@441
|
1043 |
& name*
|
Coraline@441
|
1044 |
& foreign*
|
Coraline@441
|
1045 |
& date*
|
Coraline@441
|
1046 |
& math*
|
Coraline@441
|
1047 |
& quote*
|
Coraline@441
|
1048 |
& initial*
|
Coraline@441
|
1049 |
& note*
|
Coraline@441
|
1050 |
& link*
|
Coraline@441
|
1051 |
& anchor*
|
Coraline@441
|
1052 |
& index*
|
Coraline@441
|
1053 |
& image*
|
Coraline@441
|
1054 |
& audio*
|
Coraline@441
|
1055 |
& smil*
|
Coraline@441
|
1056 |
& nowrap*
|
Coraline@441
|
1057 |
|
Coraline@441
|
1058 |
& blank-c*
|
Coraline@441
|
1059 |
}
|
Coraline@441
|
1060 |
|
Coraline@442
|
1061 |
correct.inlines = mixed {
|
Coraline@442
|
1062 |
sup*
|
Coraline@442
|
1063 |
& sub*
|
Coraline@442
|
1064 |
& var*
|
Coraline@442
|
1065 |
& number*
|
Coraline@442
|
1066 |
& acronym*
|
Coraline@442
|
1067 |
& warning*
|
Coraline@442
|
1068 |
|
Coraline@442
|
1069 |
& highlight*
|
Coraline@442
|
1070 |
& emphasis*
|
Coraline@442
|
1071 |
& mentioned*
|
Coraline@442
|
1072 |
& literal*
|
Coraline@442
|
1073 |
& term*
|
Coraline@442
|
1074 |
& stage*
|
Coraline@442
|
1075 |
& name*
|
Coraline@442
|
1076 |
& foreign*
|
Coraline@442
|
1077 |
& date*
|
Coraline@442
|
1078 |
& math*
|
Coraline@442
|
1079 |
& quote*
|
Coraline@442
|
1080 |
& initial*
|
Coraline@442
|
1081 |
& note*
|
Coraline@442
|
1082 |
& link*
|
Coraline@442
|
1083 |
& anchor*
|
Coraline@442
|
1084 |
& index*
|
Coraline@442
|
1085 |
& image*
|
Coraline@442
|
1086 |
& audio*
|
Coraline@442
|
1087 |
& smil*
|
Coraline@442
|
1088 |
& nowrap*
|
Coraline@442
|
1089 |
|
Coraline@442
|
1090 |
& char*
|
Coraline@442
|
1091 |
}
|
Coraline@442
|
1092 |
|
Patrick@336
|
1093 |
pointing.inlines = mixed {
|
Patrick@293
|
1094 |
sup*
|
Patrick@293
|
1095 |
& sub*
|
Patrick@293
|
1096 |
& var*
|
Patrick@293
|
1097 |
& number*
|
Patrick@293
|
1098 |
& acronym*
|
Patrick@293
|
1099 |
& warning*
|
Patrick@293
|
1100 |
|
Patrick@291
|
1101 |
& highlight*
|
Patrick@291
|
1102 |
& emphasis*
|
Patrick@291
|
1103 |
& mentioned*
|
Patrick@350
|
1104 |
& literal*
|
Patrick@350
|
1105 |
& term*
|
Patrick@291
|
1106 |
& stage*
|
Patrick@350
|
1107 |
& name*
|
Patrick@350
|
1108 |
& foreign*
|
Patrick@350
|
1109 |
& date*
|
Patrick@350
|
1110 |
& math*
|
Patrick@351
|
1111 |
& quote*
|
Patrick@291
|
1112 |
& initial*
|
Patrick@291
|
1113 |
& note*
|
Patrick@291
|
1114 |
& link*
|
Patrick@291
|
1115 |
& anchor*
|
Patrick@291
|
1116 |
& index*
|
Patrick@351
|
1117 |
& image*
|
Patrick@351
|
1118 |
& audio*
|
Patrick@351
|
1119 |
& smil*
|
Coraline@436
|
1120 |
& nowrap*
|
Patrick@293
|
1121 |
|
Patrick@336
|
1122 |
& point*
|
Patrick@293
|
1123 |
}
|
patrick@75
|
1124 |
|
iinov@463
|
1125 |
dictation.inlines = mixed {
|
iinov@463
|
1126 |
warning*
|
iinov@463
|
1127 |
& dictation.hint*
|
iinov@463
|
1128 |
}
|
iinov@463
|
1129 |
|
Coraline@441
|
1130 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~ blank, blank-m, blank-c ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
1131 |
|
patrick@73
|
1132 |
# ~~~~~~ blank
|
Patrick@216
|
1133 |
blank = element blank { blank.attributes, blank.content }
|
Patrick@216
|
1134 |
|
Patrick@216
|
1135 |
blank.attributes =
|
claire@381
|
1136 |
area.attribute?
|
claire@381
|
1137 |
& long.attribute?
|
claire@381
|
1138 |
area.attribute = attribute area { xsd:boolean }
|
patrick@73
|
1139 |
|
patrick@73
|
1140 |
blank.content =
|
patrick@73
|
1141 |
text
|
patrick@87
|
1142 |
| (s+, help?, answer?)
|
patrick@73
|
1143 |
|
Coraline@409
|
1144 |
# ~~~~~~ blank-m
|
Coraline@409
|
1145 |
blank-m = element blank { blank-m.content }
|
Patrick@411
|
1146 |
blank-m.content =
|
Patrick@411
|
1147 |
p
|
Patrick@411
|
1148 |
| math
|
Patrick@411
|
1149 |
| image
|
Patrick@411
|
1150 |
| audio
|
Patrick@411
|
1151 |
| (s-m+, help?, answer?)
|
Patrick@450
|
1152 |
|
Coraline@441
|
1153 |
# ~~~~~~ blank-c
|
Coraline@441
|
1154 |
blank-c = element blank { blank-c.attributes, blank-c.content }
|
Patrick@450
|
1155 |
|
Coraline@441
|
1156 |
blank-c.attributes = form.attribute?
|
Coraline@441
|
1157 |
form.attribute = attribute form { 'radio' | 'check' }
|
Patrick@450
|
1158 |
|
Coraline@441
|
1159 |
blank-c.content = (blank-c.right | blank-c.wrong)+, help?, answer?
|
Coraline@441
|
1160 |
blank-c.right = element right { inlines }
|
Patrick@450
|
1161 |
blank-c.wrong = element wrong { inlines }
|
Coraline@409
|
1162 |
|
patrick@73
|
1163 |
# ~~~~~~ s
|
patrick@73
|
1164 |
s = element s { s.content }
|
Coraline@409
|
1165 |
s.content = text
|
patrick@73
|
1166 |
|
Coraline@409
|
1167 |
# ~~~~~~ s-m
|
Coraline@409
|
1168 |
s-m = element s { s-m.content }
|
Patrick@411
|
1169 |
s-m.content =
|
Patrick@411
|
1170 |
p
|
Patrick@411
|
1171 |
| math
|
Patrick@411
|
1172 |
| image
|
Patrick@411
|
1173 |
| audio
|
Patrick@450
|
1174 |
|
Coraline@442
|
1175 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ char ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Coraline@442
|
1176 |
|
Coraline@442
|
1177 |
char = element char { char.attributes, char.content }
|
Coraline@442
|
1178 |
|
Coraline@442
|
1179 |
char.attributes = function.attribute?
|
Coraline@442
|
1180 |
function.attribute = attribute function { "accent" | "uppercase" }
|
Coraline@442
|
1181 |
|
Coraline@442
|
1182 |
char.content = text
|
patrick@73
|
1183 |
|
Patrick@336
|
1184 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ point ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
1185 |
|
Patrick@336
|
1186 |
point = element point { point.attributes, point.content }
|
patrick@73
|
1187 |
|
Patrick@336
|
1188 |
point.attributes =
|
Patrick@336
|
1189 |
point.ref.attribute?
|
Coraline@409
|
1190 |
|
Patrick@340
|
1191 |
point.ref.attribute = attribute ref {
|
Patrick@340
|
1192 |
"right" | "cat1" | "cat2" | "cat3" | "cat4" | "cat5" }
|
Patrick@336
|
1193 |
|
Patrick@356
|
1194 |
point.content = inlines
|
iinov@463
|
1195 |
|
iinov@463
|
1196 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dictation.hint ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
iinov@463
|
1197 |
|
iinov@463
|
1198 |
# ~~~~~~ dictation.hint
|
iinov@463
|
1199 |
dictation.hint = element hint { dictation.hint.content }
|
iinov@463
|
1200 |
|
iinov@463
|
1201 |
dictation.hint.content =
|
iinov@463
|
1202 |
dictation.hint.w,
|
iinov@463
|
1203 |
mistake+
|
iinov@463
|
1204 |
|
iinov@463
|
1205 |
# ~~~~~~ dictation.hint.w
|
iinov@463
|
1206 |
dictation.hint.w = element w { text }
|
iinov@463
|
1207 |
|
iinov@463
|
1208 |
# ~~~~~~ mistake
|
iinov@463
|
1209 |
mistake = element mistake { mistake.attributes, mistake.content }
|
iinov@463
|
1210 |
|
iinov@463
|
1211 |
mistake.attributes =
|
iinov@463
|
1212 |
mistake.is.attribute
|
iinov@463
|
1213 |
mistake.is.attribute = attribute is { text }
|
iinov@463
|
1214 |
|
iinov@463
|
1215 |
mistake.content = inlines
|