RelaxNG/publiquiz.rnc
author Patrick PIERRE
dim., 17 mars 2013 12:41:21 +0100
changeset 183 f9b4457d0778
parent 176 b1ce505b889d
child 192 c56f8c6b2868
permissions -rw-r--r--
Mise en place des scénarios hotspot
patrick@73
     1
# $Id$
patrick@73
     2
patrick@73
     3
patrick@73
     4
include "publidoc.rnc" {
patrick@73
     5
   start = publiquiz
patrick@73
     6
patrick@73
     7
   document.content =
patrick@73
     8
      top.head?,
patrick@73
     9
      (division | topic | quiz)+
patrick@84
    10
patrick@84
    11
   division.content =
patrick@84
    12
      division.head?,
patrick@84
    13
      (division | topic | quiz)+
patrick@73
    14
}
patrick@73
    15
patrick@75
    16
patrick@73
    17
publiquiz = element publiquiz {
patrick@73
    18
   publiquiz.attributes,
patrick@73
    19
   publiquiz.content
patrick@73
    20
}
patrick@73
    21
patrick@73
    22
publiquiz.attributes =
patrick@73
    23
   version.attribute
patrick@73
    24
patrick@73
    25
publiquiz.content =
patrick@73
    26
   document
patrick@73
    27
 | top.quiz
patrick@73
    28
patrick@73
    29
patrick@73
    30
# =============================================================================
patrick@73
    31
#                                  TOP LEVEL
patrick@73
    32
# =============================================================================
patrick@73
    33
patrick@73
    34
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quiz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
    35
patrick@128
    36
top.quiz = element quiz { top.quiz.attributes, top.quiz.content }
patrick@73
    37
patrick@73
    38
top.quiz.attributes =
patrick@73
    39
   quiz.id.attribute
Patrick@158
    40
 & quiz.type.attribute?
patrick@73
    41
 & lang.attribute?
patrick@117
    42
quiz.id.attribute = attribute id { xsd:NMTOKEN }
Patrick@158
    43
quiz.type.attribute = attribute type { xsd:NCName }
patrick@73
    44
patrick@128
    45
top.quiz.content =
patrick@128
    46
   top.head?,
patrick@128
    47
   instructions,
patrick@128
    48
   (engine | composite),
patrick@128
    49
   help?,
patrick@128
    50
   answer?
patrick@73
    51
patrick@73
    52
# =============================================================================
patrick@73
    53
#                               COMPONENT LEVEL
patrick@73
    54
# =============================================================================
patrick@73
    55
patrick@73
    56
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quiz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
    57
patrick@73
    58
quiz = element quiz { quiz.attributes, quiz.content }
patrick@73
    59
patrick@73
    60
quiz.attributes =
patrick@122
    61
   (quiz.id.attribute | quiz.xmlid.attribute)?
Patrick@158
    62
 & quiz.type.attribute?
patrick@73
    63
 & lang.attribute?
patrick@122
    64
quiz.xmlid.attribute = attribute xml:id { xsd:ID }
patrick@73
    65
patrick@73
    66
quiz.content =
patrick@73
    67
   component.head?,
patrick@73
    68
   instructions,
patrick@87
    69
   (engine | composite),
patrick@73
    70
   help?,
patrick@87
    71
   answer?
patrick@73
    72
patrick@73
    73
patrick@73
    74
# =============================================================================
patrick@73
    75
#                                 SECTION LEVEL
patrick@73
    76
# =============================================================================
patrick@73
    77
patrick@73
    78
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
    79
patrick@73
    80
blanks.section = element section { section.attributes, blanks.section.content }
patrick@73
    81
point.section = element section { section.attributes, point.section.content }
patrick@73
    82
patrick@73
    83
blanks.section.content =
patrick@73
    84
   section.head?,
patrick@73
    85
   (blanks.section+ | blanks.block+)
patrick@73
    86
point.section.content =
patrick@73
    87
   section.head?,
patrick@73
    88
   (point.section+ | point.block+)
patrick@73
    89
patrick@73
    90
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ instructions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
    91
patrick@73
    92
instructions = element instructions { section.content }
patrick@73
    93
patrick@73
    94
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ engine ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
    95
patrick@73
    96
engine =
patrick@87
    97
   choices-radio
patrick@87
    98
 | choices-check
patrick@87
    99
 | blanks-fill
patrick@87
   100
 | blanks-select
patrick@73
   101
 | point
patrick@73
   102
 | matching
patrick@73
   103
 | sort
patrick@125
   104
 | categories
patrick@87
   105
 | production
patrick@73
   106
patrick@73
   107
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ choices ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   108
patrick@87
   109
choices-radio = element choices-radio {
patrick@87
   110
   choices.attributes, choices-radio.content }
patrick@87
   111
choices-check = element choices-check {
patrick@87
   112
   choices.attributes, choices-check.content }
patrick@73
   113
patrick@73
   114
choices.attributes =
patrick@73
   115
   shuffle.attribute?
patrick@73
   116
shuffle.attribute = attribute shuffle { xsd:boolean }
patrick@73
   117
patrick@87
   118
choices-radio.content =
patrick@73
   119
   choices.right
patrick@73
   120
 & choices.wrong+
patrick@87
   121
choices-check.content =
patrick@73
   122
   (choices.right | choices.wrong)+
patrick@73
   123
patrick@73
   124
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blanks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   125
patrick@87
   126
blanks-fill = element blanks-fill {
patrick@87
   127
   blanks-fill.attributes, blanks-fill.content }
patrick@87
   128
blanks-select = element blanks-select {
patrick@87
   129
   blanks-select.attributes, blanks-select.content }
patrick@73
   130
patrick@87
   131
blanks-fill.attributes =
patrick@75
   132
   strict.attribute?
patrick@87
   133
blanks-select.attributes =
patrick@73
   134
   multiple.attribute?
patrick@73
   135
strict.attribute = attribute strict { xsd:boolean }
patrick@73
   136
multiple.attribute = attribute multiple { xsd:boolean }
patrick@73
   137
patrick@87
   138
blanks-fill.content =
patrick@73
   139
   (blanks.block+ | blanks.section+)
patrick@87
   140
blanks-select.content =
patrick@73
   141
   blanks.wrongs?,
patrick@73
   142
   (blanks.block+ | blanks.section+)
patrick@73
   143
patrick@73
   144
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ point ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   145
patrick@73
   146
point = element point { point.attributes, point.content }
patrick@75
   147
patrick@73
   148
point.attributes =
patrick@73
   149
   point.type.attribute?
patrick@73
   150
point.type.attribute = attribute type {
patrick@73
   151
   "radio" | "radio_button" | "check" | "check_button" }
patrick@73
   152
patrick@73
   153
point.content =
patrick@73
   154
   (point.section+ | point.block+)
patrick@73
   155
patrick@73
   156
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ matching ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   157
Patrick@161
   158
# ~~~~~~ matching
Patrick@169
   159
matching = element matching { matching.attributes, matching.content }
Patrick@169
   160
Patrick@169
   161
matching.attributes =
Patrick@169
   162
   multiple.attribute?
patrick@75
   163
patrick@73
   164
matching.content =
patrick@73
   165
   match,
patrick@73
   166
   match+
patrick@73
   167
Patrick@161
   168
# ~~~~~~ match
Patrick@161
   169
match = element match { match.content }
Patrick@161
   170
Patrick@161
   171
match.content =
Patrick@161
   172
   match.item,
Patrick@161
   173
   match.item
Patrick@161
   174
patrick@73
   175
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sort ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   176
patrick@73
   177
sort = element sort { sort.attributes, sort.content }
patrick@73
   178
patrick@73
   179
sort.attributes =
patrick@73
   180
   shuffle.attribute?
patrick@75
   181
patrick@73
   182
sort.content =
patrick@73
   183
   comparison?,
patrick@73
   184
   sort.item,
patrick@73
   185
   sort.item+
patrick@73
   186
patrick@125
   187
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ categories ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@125
   188
patrick@125
   189
# ~~~~~~ categories
Patrick@168
   190
categories = element categories { categories.attributes, categories.content }
patrick@125
   191
Patrick@168
   192
categories.attributes =
Patrick@168
   193
   multiple.attribute?
Patrick@168
   194
   
patrick@125
   195
categories.content =
Patrick@174
   196
   category.item*,
patrick@125
   197
   category,
patrick@125
   198
   category+
patrick@125
   199
patrick@125
   200
# ~~~~~~ category
patrick@125
   201
category = element category { category.content }
patrick@125
   202
patrick@125
   203
category.content =
patrick@125
   204
   category.head,
patrick@125
   205
   category.item*
patrick@125
   206
   
patrick@125
   207
# ~~~~~~ category.head
patrick@125
   208
category.head = element head { category.head.content }
patrick@125
   209
patrick@125
   210
category.head.content =
patrick@125
   211
   title,
patrick@127
   212
   shorttitle?,
patrick@125
   213
   subtitle?
patrick@125
   214
patrick@87
   215
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@87
   216
patrick@87
   217
production = element production { empty }
patrick@87
   218
patrick@73
   219
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ composite ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   220
patrick@77
   221
# ~~~~~~ composite
Patrick@161
   222
composite = element composite { composite.attributes, composite.content }
Patrick@161
   223
Patrick@161
   224
composite.attributes =
Patrick@161
   225
   multipage.attribute?
Patrick@161
   226
multipage.attribute = attribute multipage { xsd:boolean } 
patrick@75
   227
patrick@73
   228
composite.content =
patrick@85
   229
   subquiz,
Patrick@154
   230
   subquiz+
patrick@77
   231
patrick@85
   232
# ~~~~~~ subquiz
patrick@85
   233
subquiz = element subquiz { subquiz.content }
patrick@77
   234
patrick@85
   235
subquiz.content =
patrick@77
   236
   instructions?,
Patrick@141
   237
   engine,
Patrick@141
   238
   help?,
Patrick@141
   239
   answer?
patrick@73
   240
patrick@73
   241
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ help ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   242
patrick@73
   243
help = element help { help.content }
patrick@73
   244
patrick@73
   245
help.content =
patrick@73
   246
   (section+ | block+)?,
patrick@73
   247
   link*
patrick@73
   248
patrick@87
   249
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   250
patrick@87
   251
answer = element answer { answer.content }
patrick@73
   252
patrick@87
   253
answer.content =
patrick@81
   254
   (section+ | block+)?,
patrick@80
   255
   link*
patrick@73
   256
patrick@73
   257
patrick@73
   258
# =============================================================================
patrick@73
   259
#                                 BLOCK LEVEL
patrick@73
   260
# =============================================================================
patrick@73
   261
patrick@73
   262
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   263
patrick@73
   264
blanks.block =
Patrick@174
   265
   (blanks.p | speech | blanks.list | blockquote | blanks.table | blanks.media)
patrick@73
   266
point.block =
patrick@73
   267
   (point.p | speech | point.list | blockquote | point.table | media)
patrick@73
   268
patrick@73
   269
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ p ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   270
patrick@73
   271
blanks.p = element p { blanks.p.content }
patrick@73
   272
point.p = element p { point.p.content }
patrick@73
   273
patrick@73
   274
blanks.p.content =
patrick@75
   275
   blanks.inlines
patrick@73
   276
point.p.content =
patrick@75
   277
   point.inlines
patrick@73
   278
patrick@73
   279
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   280
patrick@73
   281
# ~~~~~~ list
patrick@75
   282
blanks.list = element list {
patrick@73
   283
   block.head?,
patrick@73
   284
   (  (attribute type {"ordered"}?, blanks.item, blanks.item+)
patrick@73
   285
    | (attribute type {"glossary"}, glossary.item+) )
patrick@75
   286
}
patrick@75
   287
point.list = element list {
patrick@73
   288
   block.head?,
patrick@73
   289
   (  (attribute type {"ordered"}?, point.item, point.item+)
patrick@73
   290
    | (attribute type {"glossary"}, glossary.item+) )
patrick@75
   291
}
patrick@73
   292
patrick@73
   293
# ~~~~~~ item
patrick@73
   294
blanks.item = element item { blanks.item.content }
patrick@73
   295
point.item = element item { point.item.content }
patrick@73
   296
patrick@73
   297
blanks.item.content =
patrick@75
   298
   blanks.inlines
patrick@73
   299
 | blanks.block+
patrick@73
   300
point.item.content =
patrick@75
   301
   point.inlines
patrick@73
   302
 | point.block+
patrick@73
   303
patrick@73
   304
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   305
patrick@73
   306
blanks.table = element table { blanks.table.content }
patrick@73
   307
point.table = element table { point.table.content }
patrick@73
   308
patrick@73
   309
blanks.table.content =
patrick@73
   310
   block.head?,
patrick@73
   311
   blanks.tgroup+,
patrick@111
   312
   table.caption?
patrick@73
   313
point.table.content =
patrick@73
   314
   block.head?,
patrick@73
   315
   point.tgroup+,
patrick@111
   316
   table.caption?
patrick@73
   317
patrick@73
   318
# ~~~~~~ tgroup
patrick@73
   319
blanks.tgroup = element tgroup { tgroup.attributes, blanks.tgroup.content }
patrick@73
   320
point.tgroup = element tgroup { tgroup.attributes, point.tgroup.content }
patrick@73
   321
patrick@73
   322
blanks.tgroup.content =
patrick@73
   323
   thead?,
patrick@73
   324
   blanks.tbody
patrick@73
   325
point.tgroup.content =
patrick@73
   326
   thead?,
patrick@73
   327
   point.tbody
patrick@73
   328
patrick@73
   329
# ~~~~~~ tbody
patrick@73
   330
blanks.tbody = element tbody { tbody.attributes, blanks.tbody.content }
patrick@73
   331
point.tbody = element tbody { tbody.attributes, point.tbody.content }
patrick@73
   332
patrick@73
   333
blanks.tbody.content =
patrick@73
   334
   blanks.row+
patrick@73
   335
point.tbody.content =
patrick@73
   336
   point.row+
patrick@73
   337
patrick@73
   338
# ~~~~~~ row
patrick@148
   339
blanks.row = element row { row.attributes, blanks.row.content }
patrick@148
   340
point.row = element row { row.attributes, point.row.content }
patrick@73
   341
patrick@73
   342
blanks.row.content =
patrick@73
   343
  blanks.entry+
patrick@73
   344
point.row.content =
patrick@73
   345
  point.entry+
patrick@73
   346
patrick@73
   347
# ~~~~~~ entry
patrick@73
   348
blanks.entry = element entry { blanks.entry.content }
patrick@73
   349
point.entry = element entry { point.entry.content }
patrick@73
   350
patrick@73
   351
blanks.entry.content =
patrick@75
   352
   blanks.inlines
patrick@73
   353
 | (p | media)+
patrick@73
   354
patrick@73
   355
point.entry.content =
patrick@75
   356
   point.inlines
patrick@73
   357
 | (p | media)+
patrick@73
   358
Patrick@174
   359
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@174
   360
Patrick@174
   361
# ~~~~~~ blanks.media
Patrick@174
   362
blanks.media = element media { blanksmedia.content }
Patrick@174
   363
Patrick@174
   364
blanksmedia.content =
Patrick@174
   365
   block.head?,
Patrick@174
   366
   (blanks.image | audio | video)+,
Patrick@174
   367
   media.caption?,
Patrick@174
   368
   link?
Patrick@174
   369
Patrick@174
   370
# ~~~~~~ blanks.image
Patrick@174
   371
blanks.image = element image { image.attributes, blanks.image.content }
Patrick@174
   372
Patrick@174
   373
blanks.image.content =
Patrick@174
   374
   copyright?,
Patrick@176
   375
   blanks.hotspot*
Patrick@174
   376
Patrick@176
   377
# ~~~~~~ blanks.hotspot
Patrick@183
   378
blanks.hotspot = element hotspot {
Patrick@183
   379
   blanks.hotspot.attributes, blanks.hotspot.content }
Patrick@183
   380
Patrick@183
   381
blanks.hotspot.attributes =
Patrick@183
   382
   x.attribute
Patrick@183
   383
 & y.attribute   
Patrick@174
   384
Patrick@176
   385
blanks.hotspot.content =
Patrick@183
   386
   blank
Patrick@174
   387
patrick@73
   388
# ~~~~~~~~~~~~~~~~~~~~~~~~ choices.right, choices.wrong ~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   389
patrick@73
   390
choices.right = element right { choices.right.content }
patrick@73
   391
choices.wrong = element wrong { choices.right.content }
patrick@73
   392
patrick@73
   393
choices.right.content =
patrick@73
   394
   inlines
Patrick@161
   395
 | ((p | image | (audio, image?) | video), help?, answer?)
patrick@73
   396
patrick@73
   397
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blanks.wrongs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   398
patrick@73
   399
# ~~~~~~ blanks.wrongs
patrick@73
   400
blanks.wrongs = element wrongs { blanks.wrongs.content }
patrick@73
   401
patrick@73
   402
blanks.wrongs.content =
patrick@73
   403
   blanks.wrong+
patrick@73
   404
patrick@73
   405
# ~~~~~~ blanks.wrong
patrick@73
   406
blanks.wrong = element wrong { blanks.wrong.content }
patrick@73
   407
patrick@73
   408
blanks.wrong.content = text
patrick@73
   409
Patrick@161
   410
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (match) item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   411
Patrick@161
   412
match.item = element item { match.item.content }
patrick@73
   413
Patrick@161
   414
match.item.content =
Patrick@161
   415
   inlines
patrick@166
   416
 | ((p | image | (audio, image?) | video), help?, answer?)
patrick@73
   417
patrick@75
   418
# ~~~~~~~~~~~~~~~~~~~~~~~~ (sort) comparison, item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   419
patrick@73
   420
# ~~~~~~ comparison
patrick@73
   421
comparison = element comparison { comparison.content }
patrick@73
   422
patrick@73
   423
comparison.content = inlines
patrick@73
   424
patrick@73
   425
# ~~~~~~ sort.item
patrick@73
   426
sort.item = element item { sort.item.attributes, sort.item.content }
patrick@73
   427
patrick@73
   428
sort.item.attributes =
patrick@73
   429
   item.shuffle.attribute?
patrick@73
   430
item.shuffle.attribute = attribute shuffle { xsd:integer }
patrick@73
   431
Patrick@161
   432
sort.item.content =
Patrick@161
   433
   inlines
patrick@166
   434
 | ((p | image | (audio, image?) | video), help?, answer?)
patrick@73
   435
patrick@125
   436
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (category) item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@125
   437
patrick@125
   438
category.item = element item { category.item.content }
patrick@125
   439
Patrick@161
   440
category.item.content =
Patrick@161
   441
   inlines
patrick@166
   442
 | ((p | image | (audio, image?) | video), help?, answer?)
patrick@125
   443
patrick@73
   444
patrick@73
   445
# =============================================================================
patrick@73
   446
#                                 INLINE LEVEL
patrick@73
   447
# =============================================================================
patrick@73
   448
patrick@75
   449
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inlines ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@75
   450
patrick@75
   451
blanks.inlines = mixed {
patrick@75
   452
   sup*
patrick@75
   453
 & sub*
patrick@75
   454
 & var*
patrick@75
   455
 & number*
patrick@75
   456
 & math*
patrick@75
   457
 & date*
patrick@75
   458
 & name*
patrick@75
   459
 & note*
patrick@75
   460
 & foreign*
patrick@75
   461
 & highlight*
patrick@75
   462
 & mentioned*
patrick@75
   463
 & quote*
patrick@75
   464
 & acronym*
patrick@75
   465
 & term*
patrick@75
   466
 & link*
patrick@75
   467
 & anchor*
Patrick@174
   468
 & image*
patrick@75
   469
 & blank*
patrick@75
   470
}
patrick@75
   471
point.inlines = mixed {
patrick@75
   472
   sup*
patrick@75
   473
 & sub*
patrick@75
   474
 & var*
patrick@75
   475
 & number*
patrick@75
   476
 & math*
patrick@75
   477
 & date*
patrick@75
   478
 & name*
patrick@75
   479
 & note*
patrick@75
   480
 & foreign*
patrick@75
   481
 & highlight*
patrick@75
   482
 & mentioned*
patrick@75
   483
 & quote*
patrick@75
   484
 & acronym*
patrick@75
   485
 & term*
patrick@75
   486
 & link*
patrick@75
   487
 & anchor*
Patrick@174
   488
 & image*
patrick@75
   489
 & blank*
patrick@75
   490
 & point.right*
patrick@75
   491
 & point.wrong*
patrick@75
   492
}
patrick@75
   493
patrick@73
   494
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blank ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   495
patrick@73
   496
# ~~~~~~ blank
patrick@73
   497
blank = element blank { blank.content }
patrick@73
   498
patrick@73
   499
blank.content =
patrick@73
   500
   text
patrick@87
   501
 | (s+, help?, answer?)
patrick@73
   502
patrick@73
   503
# ~~~~~~ s
patrick@73
   504
s = element s { s.content }
patrick@73
   505
patrick@73
   506
s.content = text
patrick@73
   507
patrick@73
   508
# ~~~~~~~~~~~~~~~~~~~~~~~~~ point.right, point.wrong ~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   509
patrick@73
   510
point.right = element right { point.right.content }
patrick@73
   511
point.wrong = element wrong { point.right.content }
patrick@73
   512
patrick@73
   513
point.right.content = inlines