File: parure.def

package info (click to toggle)
wims-help 4.01-5
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 18,412 kB
  • sloc: python: 46; sh: 16; makefile: 7
file content (489 lines) | stat: -rw-r--r-- 7,856 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
!set title=Etude de la structure du rcit
!if $wims_read_parm!=$empty
 !goto $wims_read_parm
!endif
oef2wims_version=3.22
author=Csilla Ducrocq
email=csilla.ducrocq@u-psud.fr
language=fr
computeanswer=no

ansorder=r,r,r,r,r,r,r,r,r,r,r,r,r,r
varcnt=114
prevarcnt=113
postvarcnt=0
replycnt=14
choicecnt=0
conditioncnt=0
feedbackcnt=0
format=html

val1=$imagedir
val2=$confparm1
val3=$confparm2
val4=$confparm3
val5=$confparm4

!if $testcondition=yes
 !goto test
!endif
!if $status=waiting
 !exit
!endif

val6=parure
!readproc slib/utilities/notepad Notepad,small 
tmp0=$slib_out
val7=$(tmp0)
tmp0=!nosubst Lisez la nouvelle <b>La Parure de Guy Maupassant</b>. 	Cochez les lments se correspondant dans la structure narrative.

val8=$(tmp0)
tmp0=!nosubst 

val9=$(tmp0)
val10=
val11=
val12=no
val13=no
val14=no
val15=no
val16=yes
val17=
val18=split
val19=1
val20=aucune de ces possibilits
val21=clickfill
val22=
val23=
val24=
val25=
val26=
val27=background-color: #99FFFF; margin: 2% 5%; padding: 2%;
val28=background-color: #FFCC99; color: black; margin: 2% 5%; padding: 2%;
val29=
val30=ol li {list-style: upper-alpha; }
val31=yes
val32=inside
val33=yes
val34=1
val35=
val36=
val37=
val38=---
val39=
tmp=!nonempty items $val6

tmp0=!randitem $tmp
val40=$(tmp0)
tmp0=!recordcnt $val40

val41=$[rint($(tmp0))]
val42=1
val43=1
val44=3

!ifval $val21 iswordof case 
val45= autocomplete=off
!endif
tmp0=!replace internal - by in $val38

val38=$(tmp0)
val46=$val22,$val23,$val24

!ifval $val25 = 
val25=++>
!endif

!ifval $val34 notwordof 0 
val34=$[rint( 1)]
!endif

!ifval $val26!=yes 
val47= noreaccent
!else
val47=
!endif

!ifval $val31 issametext no 
!readproc slib/utilities/nopaste  
tmp0=$slib_out
val48= $(tmp0)
!endif

!ifval $val8 issametext 
tmp0=!getdef instruction in $val40

val8= $(tmp0)
!endif

!ifval $val9 issametext 
tmp0=!getdef instruction2 in $val40

val9= $(tmp0)
!endif

!ifval $val17 issametext 
tmp0=!getdef size in $val40

val17= $(tmp0)
!endif

!ifval $val13 issametext 
tmp0=!getdef reading_file in $val40

val13= $(tmp0)
!endif
tmp0=!record 0 of $val13

val49=$(tmp0)

!ifval $val12 issametext 
tmp0=!getdef audio_file in $val40

val12= $(tmp0)
!endif

!ifval $val12 notsametext  and  $val12 notsametext no
!readproc slib/media/audio $val1/$val12,player=$val38 
tmp0=$slib_out
val50= 	<p align="center">$(tmp0)</p>
!endif

!ifval $val14 issametext 
tmp0=!getdef image_file in $val40

val14= $(tmp0)
!endif

!ifval $val14 notsametext  and  $val14 notsametext no
tmp0=!makelist <img src=$val1/x> for x in $val14

val51= 	$(tmp0)
!endif

!ifval $val15 issametext 
tmp0=!getdef video_file in $val40

val15= $(tmp0)
!endif
!if $val15 notsametext  and  $val15 notsametext no 

!ifval http notin $val15 
val15= $val1/$val15
!endif

!ifval $val15 notsametext 
val52= <a wims_target=external href="$val15">[video] </a></p>
!endif
!endif

!ifval $val10 issametext 
tmp0=!getdef choice in $val40

val53= $(tmp0)
!else
val53=$val10
!endif
val54=<style type="text/css">	 .question {$val27}	 .reponse {$val28}	 .oefstatement{$val29}	 $val30	 </style>	 

!ifval $val36 notwordof 1 2 3 4 5 6 7 8 9 10 
val36= 1
!endif

!ifval $val21 iswordof dragfill clickfill 
val17= $val17 x 1
!endif
val43=$[rint(min($val41,$val43))]
val42=$[rint(min($val43*$val42,$val41))]

!ifval $val16 issametext yes 
tmp0=!shuffle $val41

val55= $(tmp0) 
!else
tmp1=!makelist x for x = 1 to $val41

val55=	$(tmp1)
!endif

!ifval $val20 issametext 
val20= aucune de ces possibilits
!endif
tmp0=!randrecord $val6

val56=$(tmp0)
tmp0=!embraced randitem $val56

val56=$(tmp0)
tmp0=!shuffle \cnt_qual

val57=$(tmp0)
val58=
tmp=!translate internal $	$ to ; in $val56

tmp=!row 1 of $tmp
tmp0=!translate internal $\
$ to ; in $tmp
val59=$(tmp0)
tmp0=!getopt audio in $val59

val60=$(tmp0)
tmp0=!getopt image in $val59

val61=$(tmp0)
tmp0=!getopt title in $val59

val62=$(tmp0)
tmp0=!getopt intro in $val59

val63=$(tmp0)

!ifval $val60$val61$val62$val63  notsametext 
val64= 1 
!else
val64= 0
!endif
val65=

!ifval $val62 notsametext 
val65=$val65<p align="center">$val62</p>
!endif

!ifval $val63 notsametext 
val65=$val65 $val63
!endif

!ifval $val61 notsametext 
val65= $val65 <p align="center"><img src=$val1/$val61></p>
!endif
!if $val60 notsametext  

!ifval . isin $val60 or $val37= 
!readproc slib/media/audio $val1/$val60,$val39,player=$val38 
tmp0=$slib_out
val66= 	       $(tmp0)
!else
!readproc slib/lang/swac $val60,$val37,player=$val38,$val39 
tmp1=$slib_out
val66=$(tmp1)
!endif
val65=$val65 <p align="center">$(val66[1;1])</p>
!endif

!ifval $val64=1  
val67= $val65
!else
val67=
!endif

!ifval $val64=1 
tmp0=!line 2 to -1 of $val56

tmp=!trim  $(tmp0)
val56=!translate internal $	\
$ to ;; in $tmp
!endif
val68=$(val56[1;])
tmp0=!text remove 1234567890 in $val68

val69=$(tmp0)
!if $val69 issametext  
val70=$[rint($val68+1)]
tmp0=!rows2lines $(val56[$val70+1..-1;])

val71=$(tmp0)
tmp=!trim $(val56[2..$val70;])
val56=!translate internal $	\
$ to ;; in $tmp
!else
val70=$[rint($(val56[2;])+2)]
val53=$(val56[1;])
tmp0=!rows2lines $(val56[$val70+1..-1;])

val71=$(tmp0)
tmp=!trim $(val56[3..$val70;])
val56=!translate internal $	\
$ to ;; in $tmp
!endif

!ifval $val58 notwordof 1 2 
tmp0=!randint 1, 2

val58=$[rint( $(tmp0))]
!endif
val72=$(val56[;1])

!ifval $val58=1
val72=$val72,$val20
!endif

!ifval $val58=1 
val73= $val53
!else
val73=$val72
!endif

!ifval $val58=2
val72=$val53
!else
val72=$val72
!endif
tmp0=!nonempty items $val72

val72=$(tmp0)
tmp0=!itemcnt $val72

val74=$(tmp0)

!ifval $val58=1
val75=$val74-1
!else
val75=$val74
!endif
tmp0=!itemcnt $val73

val76=$(tmp0)
tmp=!trim $(val56[;2..-1])
val77=!translate internal $	\
$ to ;; in $tmp
!if $val58=1 
tmp=!trim 
val78=!translate internal $	\
$ to ;; in $tmp
!for val79 = 1 to $val76 
val80=
!for val81  = 1 to  $val75 
!if $val79 isitemof $(val77[$val81;]) 
val80=$val80, $val81
!endif
!next
tmp0=!nonempty items $val80

val80=$(tmp0)

!ifval $val80 issametext 
val80= $val74
!endif
tmp=!trim $val78	  $val80
val78=!translate internal $	\
$ to ;; in $tmp
!next
!else
val78=$val77
!endif
tmp0=!makelist r x for x = 1 to $val76

val82=$(tmp0)
oefsteps=$val82 
nextstep=!nosubst $val82 
!readproc oef/steps.proc
replytype1=checkbox
replyname1=
replygood1=$(val78[1;]);$val72
replytype2=checkbox
replyname2=
replygood2=$(val78[2;]);$val72
replytype3=checkbox
replyname3=
replygood3=$(val78[3;]);$val72
replytype4=checkbox
replyname4=
replygood4=$(val78[4;]);$val72
replytype5=checkbox
replyname5=
replygood5=$(val78[5;]);$val72
replytype6=checkbox
replyname6=
replygood6=$(val78[6;]);$val72
replytype7=checkbox
replyname7=
replygood7=$(val78[7;]);$val72
replytype8=checkbox
replyname8=
replygood8=$(val78[8;]);$val72
replytype9=checkbox
replyname9=
replygood9=$(val78[9;]);$val72
replytype10=checkbox
replyname10=
replygood10=$(val78[10;]);$val72
replytype11=checkbox
replyname11=
replygood11=$(val78[11;]);$val72
replytype12=checkbox
replyname12=
replygood12=$(val78[12;]);$val72
replytype13=checkbox
replyname13=
replygood13=$(val78[13;]);$val72
replytype14=checkbox
replyname14=
replygood14=$(val78[14;]);$val72
question=__EXECUTED_1692754_EXERCISE__

!goto stat

!exit

:question
$()	$val54 $val8	$val67		 
!if $val71 notsametext  
$()	 <div class="question">$val71</div>	 
!endif
$()	   
!if $val49 notsametext  
$() 
!read oef/special.phtml help reading,[ lire] 
$() 
!endif
$()	   
!if $val51 notsametext  
$() 
!read oef/special.phtml help image,[ regarder] 
$() 
!endif
$()	  $val50$val52		<ol>	 
!for m_u = 1 to $val76 
$() 	<li> $(val73[$m_u]) : <ol>	  
!for m_v = 1 to $val74 
$()	 <li>	    
!read oef/embed.phtml reply \u , \v  
$()	</li>	   
!next
$()	   </ol>	  
!next
$()	 </ol>	 
$()
!exit

:hint
$()
$()
!exit

:help
$()
$()
!exit

:solution
$()
$()
!exit

:latex
$()
$()
!exit

:feedback

!exit

:test

!exit

:stat
vsavelist=8,49,50,51,52,54,67,71,73,74,76
embedcnt=3