Subversion Repositories wimsdev

Rev

Rev 12154 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
338 schaersvoo 1
# used for wims read/readproc
1159 schaersvoo 2
authordir=authors/jm.evers
338 schaersvoo 3
# used for html/apache
1159 schaersvoo 4
AUTHORDIR=scripts/authors/jm.evers
338 schaersvoo 5
 
6
######### DO NOT CHANGE THIS ################
7
gifdir=$AUTHORDIR/gifs
8
appletdir=$AUTHORDIR/applets
9
jsdir=$AUTHORDIR/js
10
htmldir=$AUTHORDIR/html
11
 
12
remarkdir=$authordir/lang
13
phtmldir=$authordir/phtml
14
checkdir=$authordir/checkfiles
15
procdir=$authordir/proc
16
 
6041 schaersvoo 17
title_taal=!defof title_$taal in INDEX
18
!if $title_taal != $empty
19
    module_title = $title_taal
20
!endif
5984 schaersvoo 21
#
22
ok_send_color=#85a7aa
23
nok_send_color=#ffbd55
338 schaersvoo 24
# wims variables
25
status=waiting
14375 schaersvoo 26
# 10/2019 : removed due to very(!!) long sleeping (in FreeBSD chroot) 
27
#wims  77675   0.0  0.0   12668  2740  -  IN   11:31       0:00.00 bin/maxima                                              
28
#10073 77676   0.0  0.7 1034464 55044  -  SN   11:31       0:00.45 lisp -dynamic-space-size 254 -core /usr/local/bin) 
29
#wims_multiexec=maxima pari octave
338 schaersvoo 30
# a few variables initialized
31
modulescore=0
32
counter=1
33
maxscore=1
5944 schaersvoo 34
wordmax=30
35
wordmin=1
338 schaersvoo 36
try=0
37
# fly imagesize
38
XSIZE=300
39
YSIZE=300
5944 schaersvoo 40
xsize=300
41
ysize=300
338 schaersvoo 42
# if set to 1: multiplechoice wih images
43
multiimage=0
44
#counts dynamic inserted images: usage "ins_attr=name=insert$imagecnt" is empoyed by DHTML
45
imagecnt=0
46
# scoring penalties P[10] : every time the students get's another chance of
47
# correcting syntaxerrors (or other) maxscore=$[$maxscore*$P1]
48
# where at the beginning of each exercise: maxscore=1
49
# if the answer is 100% good, after several tries:
50
# modulescore=$[$modulescore + $maxscore]
8006 schaersvoo 51
!bound use_mathml within 0,1 default 1
7456 schaersvoo 52
!bound mathview within 0,1,2,3,4,5 default 4
338 schaersvoo 53
!bound viewlogo within 0,1 default 0
54
!bound mytexsize within -4,-3,-2,-1,0,+1,+2,+3,+4 default +2
55
!bound rounding within -1,0,1,10,100,1000,10000,100000,1000000
56
!bound level within 0,1,2,3,4 default 0
57
!bound image within 0,1 default 0
58
!bound plot within 0,1 default 0
59
!bound draw within 0,1 default 0
60
!bound applet within 0,1 default 0
61
!bound teaching within 0,1
62
!bound maxtry between 1 and 100 default 5
63
!bound total_exos within 1,2,3,4,5,6,7,8,9,10 default 3
64
!bound special within 0,1 default 0
65
!bound options within 2,3,4,5,6,7,8 default 4
66
!bound taal within en,fr,nl,es,it,cn
67
!bound questiontype within 0,1,2,3,4,5,6 default 0
68
!bound math within 0,1 default 1
69
!bound goodbadsign within 0,1,2
2376 schaersvoo 70
!bound showanswer within 0,1 default 1
338 schaersvoo 71
!bound inputs within 0,1,2,3,4,5,6,7 default 1
934 schaersvoo 72
!bound calculator within 0,1,2,3 default 2
338 schaersvoo 73
!bound time within 0,1
74
!bound scribbling within 0,1
75
!bound printexo within 0,1,2
76
!bound noselect within 0,1 default 1
77
!bound usage within 0,1,2,3,4,5,6 default 2
6079 schaersvoo 78
 
5873 schaersvoo 79
# textarea defaults
338 schaersvoo 80
rows=3
5873 schaersvoo 81
cols=12
338 schaersvoo 82
# defaults for java inputapplet
83
largefont=22
84
smallfont=14
85
applettext=$empty
2376 schaersvoo 86
special_fraction=0
5873 schaersvoo 87
# TexApp applet
3183 schaersvoo 88
my_html_onload=$empty
338 schaersvoo 89
# some handy text:
90
send=!record 4 of $remarkdir/commonremarks.$taal
91
helptext=!record 5 of $remarkdir/commonremarks.$taal
92
nojava=!record 7 of $remarkdir/commonremarks.$taal
93
dontknow=!record 9 of $remarkdir/commonremarks.$taal
94
questionnumber=!record 10 of $remarkdir/commonremarks.$taal
95
youranswer=!record 43 of $remarkdir/commonremarks.$taal
96
mathcheck=!record 75 of $remarkdir/commonremarks.$taal
97
mathchecktext=!record 76 of $remarkdir/commonremarks.$taal
98
no_back_button=!record 86 of $remarkdir/commonremarks.$taal
6253 schaersvoo 99
description=$empty
338 schaersvoo 100
# usage
101
# 0 formal exam
102
# 1 test exam
103
# 2 training
104
# 3 printjob goback to intro for adjustment -> usage=5
105
# 4 goback to adjust yourself=> usage=5
12154 schaersvoo 106
# real exam institute on internet has code xxxxxxxT/xx
107
!if exam isin $session
108
 !if T isin $wims_class
109
  usage=0
110
 !else
111
  usage=2
112
 !endif
718 schaersvoo 113
!endif
338 schaersvoo 114
!if $usage=0
115
    # define the defaults for formal jm.evers exam
116
    showanswer=0
5873 schaersvoo 117
    maxtry=2
338 schaersvoo 118
    teaching=0
119
    noselect=1
120
    goodbadsign=0
121
    scribbling=0
122
    time=0
123
    P1=0.9
124
    P2=0.85
125
    P3=0.8
126
    P4=0.7
127
    P5=0.6
128
    P6=0.5
129
    P7=0.4
130
    P8=0.3
131
    P9=0.2
132
    P10=0.1
133
    # needs to be specified: not clear right now (see score.proc)
134
    scoringtype=0
5873 schaersvoo 135
!else
136
    !if $usage=1
137
	# define the defaults for a test exam
138
	showanswer=1
139
	maxtry=6
140
        teaching=0
141
	noselect=1
142
        goodbadsign=1
143
	!if H1 isin $module
144
	    calculator=1
145
	!else
146
	    calculator=2
147
	!endif
148
	scribbling=1
149
	time=1
150
	P1=0.95
151
	P2=0.9
152
	P3=0.85
153
	P4=0.8
154
        P5=0.7
155
	P6=0.6
156
	P7=0.5
157
	P8=0.3
158
	P9=0.2
159
	P10=0.1
160
	# needs to be specified: not clear right now (see score.proc)
161
	scoringtype=0
934 schaersvoo 162
    !else
5873 schaersvoo 163
	!if $usage=2
164
	    # define the defaults for training
165
	    exotitle=!record $[-1*$subject] of lang/remarks.$taal
166
	    showanswer=1
167
	    maxtry=5
168
	    teaching=1
169
	    goodbadsign=2
170
	    !if H1 isin $module
171
		calculator=1
172
	    !else
173
		calculator=2
174
	    !endif
175
	    scribbling=1
176
	    noselect=1
177
	    time=1
178
	    P1=0.95
179
	    P2=0.9
180
	    P3=0.85
181
	    P4=0.8
182
	    P5=0.7
183
	    P6=0.65
184
    	    P7=0.6
185
    	    P8=0.5
186
    	    P9=0.4
187
	    P10=0.3
188
	    # needs to be specified: not clear right now (see score.proc)
189
    	    scoringtype=0
190
	!else
191
	    exotitle=!record $[-1*$subject] of lang/remarks.$taal
192
    	    P1=0.95
193
	    P2=0.9
194
    	    P3=0.85
195
	    P4=0.8
196
    	    P5=0.7
197
    	    P6=0.6
198
    	    P7=0.5
199
	    P8=0.3
200
    	    P9=0.2
201
	    P10=0.1
202
	    # needs to be specified: not clear right now (see score.proc)
203
	    scoringtype=0
204
	!endif
934 schaersvoo 205
    !endif
338 schaersvoo 206
!endif
207
 
208
!if $goodbadsign !=0
209
    # signs of content./.
5731 schaersvoo 210
    OK=<img src="$gifdir/ok.gif" alt="OK" />
211
    NOK=<img src="$gifdir/nok.gif" alt="NOT OK" />
212
    BOK=<img src="$gifdir/bok.gif" alt="ALMOST OK" />
338 schaersvoo 213
    !if $goodbadsign=2
214
	nok=!record 56 of $remarkdir/commonremarks.$taal
215
	bok=!record 57 of $remarkdir/commonremarks.$taal
216
	ok=!record 58 of $remarkdir/commonremarks.$taal
5873 schaersvoo 217
    !else
218
	ok=$empty
219
	bok=$empty
220
	nok=$empty
338 schaersvoo 221
    !endif
5873 schaersvoo 222
!else
223
    OK=$empty
224
    NOK=$empty
225
    BOK=$empty
338 schaersvoo 226
!endif
227
 
228
!readproc $remarkdir/rounding.$taal