RelaxNG/publiquiz.rnc
author Patrick PIERRE
mer., 15 mai 2013 12:17:58 +0200
changeset 209 6b1ee27e6b84
parent 194 48cf8cfe8b1a
child 216 414224d5a623
permissions -rw-r--r--
Ajout d'un son dans le flux de texte
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@194
   105
 | pip
patrick@87
   106
 | production
patrick@73
   107
patrick@73
   108
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ choices ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   109
patrick@87
   110
choices-radio = element choices-radio {
patrick@87
   111
   choices.attributes, choices-radio.content }
patrick@87
   112
choices-check = element choices-check {
patrick@87
   113
   choices.attributes, choices-check.content }
patrick@73
   114
patrick@73
   115
choices.attributes =
patrick@73
   116
   shuffle.attribute?
patrick@73
   117
shuffle.attribute = attribute shuffle { xsd:boolean }
patrick@73
   118
patrick@87
   119
choices-radio.content =
patrick@73
   120
   choices.right
patrick@73
   121
 & choices.wrong+
patrick@87
   122
choices-check.content =
patrick@73
   123
   (choices.right | choices.wrong)+
patrick@73
   124
patrick@73
   125
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blanks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   126
patrick@87
   127
blanks-fill = element blanks-fill {
patrick@87
   128
   blanks-fill.attributes, blanks-fill.content }
patrick@87
   129
blanks-select = element blanks-select {
patrick@87
   130
   blanks-select.attributes, blanks-select.content }
patrick@73
   131
patrick@87
   132
blanks-fill.attributes =
patrick@75
   133
   strict.attribute?
patrick@87
   134
blanks-select.attributes =
patrick@73
   135
   multiple.attribute?
patrick@73
   136
strict.attribute = attribute strict { xsd:boolean }
patrick@73
   137
multiple.attribute = attribute multiple { xsd:boolean }
patrick@73
   138
patrick@87
   139
blanks-fill.content =
patrick@73
   140
   (blanks.block+ | blanks.section+)
patrick@87
   141
blanks-select.content =
patrick@73
   142
   blanks.wrongs?,
patrick@73
   143
   (blanks.block+ | blanks.section+)
patrick@73
   144
patrick@73
   145
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ point ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   146
patrick@73
   147
point = element point { point.attributes, point.content }
patrick@75
   148
patrick@73
   149
point.attributes =
patrick@73
   150
   point.type.attribute?
patrick@73
   151
point.type.attribute = attribute type {
patrick@73
   152
   "radio" | "radio_button" | "check" | "check_button" }
patrick@73
   153
patrick@73
   154
point.content =
patrick@73
   155
   (point.section+ | point.block+)
patrick@73
   156
patrick@73
   157
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ matching ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   158
Patrick@161
   159
# ~~~~~~ matching
Patrick@169
   160
matching = element matching { matching.attributes, matching.content }
Patrick@169
   161
Patrick@169
   162
matching.attributes =
Patrick@169
   163
   multiple.attribute?
patrick@75
   164
patrick@73
   165
matching.content =
patrick@73
   166
   match,
patrick@73
   167
   match+
patrick@73
   168
Patrick@161
   169
# ~~~~~~ match
Patrick@161
   170
match = element match { match.content }
Patrick@161
   171
Patrick@161
   172
match.content =
Patrick@161
   173
   match.item,
Patrick@161
   174
   match.item
Patrick@161
   175
patrick@73
   176
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sort ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   177
patrick@73
   178
sort = element sort { sort.attributes, sort.content }
patrick@73
   179
patrick@73
   180
sort.attributes =
patrick@73
   181
   shuffle.attribute?
patrick@75
   182
patrick@73
   183
sort.content =
patrick@73
   184
   comparison?,
patrick@73
   185
   sort.item,
patrick@73
   186
   sort.item+
patrick@73
   187
patrick@125
   188
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ categories ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@125
   189
patrick@125
   190
# ~~~~~~ categories
Patrick@168
   191
categories = element categories { categories.attributes, categories.content }
patrick@125
   192
Patrick@168
   193
categories.attributes =
Patrick@168
   194
   multiple.attribute?
Patrick@168
   195
   
patrick@125
   196
categories.content =
Patrick@174
   197
   category.item*,
patrick@125
   198
   category,
patrick@125
   199
   category+
patrick@125
   200
patrick@125
   201
# ~~~~~~ category
patrick@125
   202
category = element category { category.content }
patrick@125
   203
patrick@125
   204
category.content =
patrick@125
   205
   category.head,
patrick@125
   206
   category.item*
patrick@125
   207
   
patrick@125
   208
# ~~~~~~ category.head
patrick@125
   209
category.head = element head { category.head.content }
patrick@125
   210
patrick@125
   211
category.head.content =
patrick@125
   212
   title,
patrick@127
   213
   shorttitle?,
patrick@125
   214
   subtitle?
patrick@125
   215
patrick@194
   216
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pip ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@194
   217
patrick@194
   218
pip = element pip { pip.attributes, pip.content }
patrick@194
   219
patrick@194
   220
pip.attributes =
patrick@194
   221
   multiple.attribute?
patrick@194
   222
patrick@194
   223
pip.content =
patrick@194
   224
   pip.image
patrick@194
   225
patrick@87
   226
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@87
   227
patrick@87
   228
production = element production { empty }
patrick@87
   229
patrick@73
   230
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ composite ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   231
patrick@77
   232
# ~~~~~~ composite
Patrick@161
   233
composite = element composite { composite.attributes, composite.content }
Patrick@161
   234
Patrick@161
   235
composite.attributes =
Patrick@161
   236
   multipage.attribute?
Patrick@161
   237
multipage.attribute = attribute multipage { xsd:boolean } 
patrick@75
   238
patrick@73
   239
composite.content =
patrick@85
   240
   subquiz,
Patrick@154
   241
   subquiz+
patrick@77
   242
patrick@85
   243
# ~~~~~~ subquiz
patrick@85
   244
subquiz = element subquiz { subquiz.content }
patrick@77
   245
patrick@85
   246
subquiz.content =
patrick@77
   247
   instructions?,
Patrick@141
   248
   engine,
Patrick@141
   249
   help?,
Patrick@141
   250
   answer?
patrick@73
   251
patrick@73
   252
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ help ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   253
patrick@73
   254
help = element help { help.content }
patrick@73
   255
patrick@73
   256
help.content =
patrick@73
   257
   (section+ | block+)?,
patrick@73
   258
   link*
patrick@73
   259
patrick@87
   260
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   261
patrick@87
   262
answer = element answer { answer.content }
patrick@73
   263
patrick@87
   264
answer.content =
patrick@81
   265
   (section+ | block+)?,
patrick@80
   266
   link*
patrick@73
   267
patrick@73
   268
patrick@73
   269
# =============================================================================
patrick@73
   270
#                                 BLOCK LEVEL
patrick@73
   271
# =============================================================================
patrick@73
   272
patrick@73
   273
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   274
patrick@73
   275
blanks.block =
Patrick@174
   276
   (blanks.p | speech | blanks.list | blockquote | blanks.table | blanks.media)
patrick@73
   277
point.block =
patrick@73
   278
   (point.p | speech | point.list | blockquote | point.table | media)
patrick@73
   279
patrick@73
   280
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ p ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   281
patrick@73
   282
blanks.p = element p { blanks.p.content }
patrick@73
   283
point.p = element p { point.p.content }
patrick@73
   284
patrick@73
   285
blanks.p.content =
patrick@75
   286
   blanks.inlines
patrick@73
   287
point.p.content =
patrick@75
   288
   point.inlines
patrick@73
   289
patrick@73
   290
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   291
patrick@73
   292
# ~~~~~~ list
patrick@75
   293
blanks.list = element list {
patrick@73
   294
   block.head?,
patrick@73
   295
   (  (attribute type {"ordered"}?, blanks.item, blanks.item+)
patrick@73
   296
    | (attribute type {"glossary"}, glossary.item+) )
patrick@75
   297
}
patrick@75
   298
point.list = element list {
patrick@73
   299
   block.head?,
patrick@73
   300
   (  (attribute type {"ordered"}?, point.item, point.item+)
patrick@73
   301
    | (attribute type {"glossary"}, glossary.item+) )
patrick@75
   302
}
patrick@73
   303
patrick@73
   304
# ~~~~~~ item
patrick@73
   305
blanks.item = element item { blanks.item.content }
patrick@73
   306
point.item = element item { point.item.content }
patrick@73
   307
patrick@73
   308
blanks.item.content =
patrick@75
   309
   blanks.inlines
patrick@73
   310
 | blanks.block+
patrick@73
   311
point.item.content =
patrick@75
   312
   point.inlines
patrick@73
   313
 | point.block+
patrick@73
   314
patrick@73
   315
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   316
patrick@73
   317
blanks.table = element table { blanks.table.content }
patrick@73
   318
point.table = element table { point.table.content }
patrick@73
   319
patrick@73
   320
blanks.table.content =
patrick@73
   321
   block.head?,
patrick@73
   322
   blanks.tgroup+,
patrick@111
   323
   table.caption?
patrick@73
   324
point.table.content =
patrick@73
   325
   block.head?,
patrick@73
   326
   point.tgroup+,
patrick@111
   327
   table.caption?
patrick@73
   328
patrick@73
   329
# ~~~~~~ tgroup
patrick@73
   330
blanks.tgroup = element tgroup { tgroup.attributes, blanks.tgroup.content }
patrick@73
   331
point.tgroup = element tgroup { tgroup.attributes, point.tgroup.content }
patrick@73
   332
patrick@73
   333
blanks.tgroup.content =
patrick@73
   334
   thead?,
patrick@73
   335
   blanks.tbody
patrick@73
   336
point.tgroup.content =
patrick@73
   337
   thead?,
patrick@73
   338
   point.tbody
patrick@73
   339
patrick@73
   340
# ~~~~~~ tbody
patrick@73
   341
blanks.tbody = element tbody { tbody.attributes, blanks.tbody.content }
patrick@73
   342
point.tbody = element tbody { tbody.attributes, point.tbody.content }
patrick@73
   343
patrick@73
   344
blanks.tbody.content =
patrick@73
   345
   blanks.row+
patrick@73
   346
point.tbody.content =
patrick@73
   347
   point.row+
patrick@73
   348
patrick@73
   349
# ~~~~~~ row
patrick@148
   350
blanks.row = element row { row.attributes, blanks.row.content }
patrick@148
   351
point.row = element row { row.attributes, point.row.content }
patrick@73
   352
patrick@73
   353
blanks.row.content =
patrick@73
   354
  blanks.entry+
patrick@73
   355
point.row.content =
patrick@73
   356
  point.entry+
patrick@73
   357
patrick@73
   358
# ~~~~~~ entry
patrick@73
   359
blanks.entry = element entry { blanks.entry.content }
patrick@73
   360
point.entry = element entry { point.entry.content }
patrick@73
   361
patrick@73
   362
blanks.entry.content =
patrick@75
   363
   blanks.inlines
patrick@73
   364
 | (p | media)+
patrick@73
   365
patrick@73
   366
point.entry.content =
patrick@75
   367
   point.inlines
patrick@73
   368
 | (p | media)+
patrick@73
   369
Patrick@174
   370
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@174
   371
Patrick@174
   372
# ~~~~~~ blanks.media
Patrick@174
   373
blanks.media = element media { blanksmedia.content }
Patrick@174
   374
Patrick@174
   375
blanksmedia.content =
Patrick@174
   376
   block.head?,
Patrick@174
   377
   (blanks.image | audio | video)+,
Patrick@174
   378
   media.caption?,
Patrick@174
   379
   link?
Patrick@174
   380
Patrick@174
   381
# ~~~~~~ blanks.image
Patrick@174
   382
blanks.image = element image { image.attributes, blanks.image.content }
patrick@194
   383
pip.image = element image { image.attributes, pip.image.content }
Patrick@174
   384
Patrick@174
   385
blanks.image.content =
Patrick@174
   386
   copyright?,
Patrick@192
   387
   blanks.dropzone*
patrick@194
   388
pip.image.content =
patrick@194
   389
   pip.dropzone+
Patrick@174
   390
patrick@194
   391
# ~~~~~~dropzone
Patrick@192
   392
blanks.dropzone = element dropzone {
Patrick@192
   393
   blanks.dropzone.attributes, blanks.dropzone.content }
patrick@194
   394
pip.dropzone = element dropzone {
patrick@194
   395
   pip.dropzone.attributes, pip.dropzone.content }
Patrick@183
   396
Patrick@192
   397
blanks.dropzone.attributes =
Patrick@183
   398
   x.attribute
Patrick@183
   399
 & y.attribute   
patrick@194
   400
pip.dropzone.attributes =
patrick@194
   401
   x.attribute
patrick@194
   402
 & y.attribute
patrick@194
   403
 & w.attribute
patrick@194
   404
 & h.attribute
Patrick@174
   405
Patrick@192
   406
blanks.dropzone.content =
Patrick@183
   407
   blank
patrick@194
   408
pip.dropzone.content =
patrick@194
   409
   image?
Patrick@174
   410
patrick@73
   411
# ~~~~~~~~~~~~~~~~~~~~~~~~ choices.right, choices.wrong ~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   412
patrick@73
   413
choices.right = element right { choices.right.content }
patrick@73
   414
choices.wrong = element wrong { choices.right.content }
patrick@73
   415
patrick@73
   416
choices.right.content =
patrick@73
   417
   inlines
Patrick@161
   418
 | ((p | image | (audio, image?) | video), help?, answer?)
patrick@73
   419
patrick@73
   420
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blanks.wrongs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   421
patrick@73
   422
# ~~~~~~ blanks.wrongs
patrick@73
   423
blanks.wrongs = element wrongs { blanks.wrongs.content }
patrick@73
   424
patrick@73
   425
blanks.wrongs.content =
patrick@73
   426
   blanks.wrong+
patrick@73
   427
patrick@73
   428
# ~~~~~~ blanks.wrong
patrick@73
   429
blanks.wrong = element wrong { blanks.wrong.content }
patrick@73
   430
patrick@73
   431
blanks.wrong.content = text
patrick@73
   432
Patrick@161
   433
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (match) item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   434
Patrick@161
   435
match.item = element item { match.item.content }
patrick@73
   436
Patrick@161
   437
match.item.content =
Patrick@161
   438
   inlines
patrick@166
   439
 | ((p | image | (audio, image?) | video), help?, answer?)
patrick@73
   440
patrick@75
   441
# ~~~~~~~~~~~~~~~~~~~~~~~~ (sort) comparison, item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   442
patrick@73
   443
# ~~~~~~ comparison
patrick@73
   444
comparison = element comparison { comparison.content }
patrick@73
   445
patrick@73
   446
comparison.content = inlines
patrick@73
   447
patrick@73
   448
# ~~~~~~ sort.item
patrick@73
   449
sort.item = element item { sort.item.attributes, sort.item.content }
patrick@73
   450
patrick@73
   451
sort.item.attributes =
patrick@73
   452
   item.shuffle.attribute?
patrick@73
   453
item.shuffle.attribute = attribute shuffle { xsd:integer }
patrick@73
   454
Patrick@161
   455
sort.item.content =
Patrick@161
   456
   inlines
patrick@166
   457
 | ((p | image | (audio, image?) | video), help?, answer?)
patrick@73
   458
patrick@125
   459
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (category) item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@125
   460
patrick@125
   461
category.item = element item { category.item.content }
patrick@125
   462
Patrick@161
   463
category.item.content =
Patrick@161
   464
   inlines
patrick@166
   465
 | ((p | image | (audio, image?) | video), help?, answer?)
patrick@125
   466
patrick@73
   467
patrick@73
   468
# =============================================================================
patrick@73
   469
#                                 INLINE LEVEL
patrick@73
   470
# =============================================================================
patrick@73
   471
patrick@75
   472
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inlines ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@75
   473
patrick@75
   474
blanks.inlines = mixed {
patrick@75
   475
   sup*
patrick@75
   476
 & sub*
patrick@75
   477
 & var*
patrick@75
   478
 & number*
patrick@75
   479
 & math*
patrick@75
   480
 & date*
patrick@75
   481
 & name*
patrick@75
   482
 & note*
patrick@75
   483
 & foreign*
patrick@75
   484
 & highlight*
patrick@75
   485
 & mentioned*
patrick@75
   486
 & quote*
patrick@75
   487
 & acronym*
patrick@75
   488
 & term*
patrick@75
   489
 & link*
patrick@75
   490
 & anchor*
Patrick@174
   491
 & image*
Patrick@209
   492
 & audio*
patrick@75
   493
 & blank*
patrick@75
   494
}
patrick@75
   495
point.inlines = mixed {
patrick@75
   496
   sup*
patrick@75
   497
 & sub*
patrick@75
   498
 & var*
patrick@75
   499
 & number*
patrick@75
   500
 & math*
patrick@75
   501
 & date*
patrick@75
   502
 & name*
patrick@75
   503
 & note*
patrick@75
   504
 & foreign*
patrick@75
   505
 & highlight*
patrick@75
   506
 & mentioned*
patrick@75
   507
 & quote*
patrick@75
   508
 & acronym*
patrick@75
   509
 & term*
patrick@75
   510
 & link*
patrick@75
   511
 & anchor*
Patrick@174
   512
 & image*
Patrick@209
   513
 & audio*
patrick@75
   514
 & blank*
patrick@75
   515
 & point.right*
patrick@75
   516
 & point.wrong*
patrick@75
   517
}
patrick@75
   518
patrick@73
   519
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blank ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   520
patrick@73
   521
# ~~~~~~ blank
patrick@73
   522
blank = element blank { blank.content }
patrick@73
   523
patrick@73
   524
blank.content =
patrick@73
   525
   text
patrick@87
   526
 | (s+, help?, answer?)
patrick@73
   527
patrick@73
   528
# ~~~~~~ s
patrick@73
   529
s = element s { s.content }
patrick@73
   530
patrick@73
   531
s.content = text
patrick@73
   532
patrick@73
   533
# ~~~~~~~~~~~~~~~~~~~~~~~~~ point.right, point.wrong ~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@73
   534
patrick@73
   535
point.right = element right { point.right.content }
patrick@73
   536
point.wrong = element wrong { point.right.content }
patrick@73
   537
patrick@73
   538
point.right.content = inlines