Subversion Repositories wimsdev

Rev

Rev 13704 | Rev 15026 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13704 Rev 13714
Line 1... Line 1...
1
type=question
1
type=question
2
textarea="data"
2
textarea="data instruction instruction1 instruction2 instruction3 feedback1 feedback2 feedback3"
-
 
3
iEdit="instruction instruction1 instruction2 instruction3 feedback1 feedback2 feedback3"
3
 
4
 
4
:On pose deux ou trois questions successives sur un objet aléatoire.
5
:We ask two or three successive questions on a random object.
5
Vous pouvez choisir le type de questions
6
You can choose the type of questions (numeric, text, multiple choice question).
6
(numérique, texte, question à choix multiples). Dans le cas d'une question à choix multiples,
7
In the case of a multiple-choice question, the list of choices must be completed.
7
on doit remplir la liste des choix.
-
 
8
 
8
 
9
<p>
9
<p>
10
Les données pour chaque objet (un objet par ligne) sont séparées par des virgules
10
The data for each object (one object per line) are separated by commas
11
et formatées de la manière suivante :
11
 and formatted as follows:
12
</p>
12
</p>
13
<pre>
13
<pre>
14
objet, réponse question 1, réponse question 2, réponse question 3
14
object, answer to question 1, answer to question 2, answer to question 3
15
</pre>
15
</pre>
16
<p>
16
<p>
17
L'objet peut être une image (mettre le code html : <span class="tt wims_address">&lt;img src="\imagedir/nom.png" alt=""/></span>).
17
The object can be an image (put the html code: <span class="tt wims_address">&lt;img src="\imagedir/picture.png" alt="describe the picture."/></span>).
18
Dans le cas d'un choix multiple, la réponse est le numéro du bon choix.
18
In the case of a multiple choice, the answer is the number of the right choice.
19
</p>
19
</p>
20
<p>
20
<p>
21
Pour les feedback, l'objet peut être appelé par la variable <span class="tt wims_code_variable">\name</span>.
21
For feedback, the object can be called by the variable <span class="tt wims_code_variable">\name</span>.</p>
22
</p>
22
 
23
:%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%%
23
:%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%%
24
 
24
 
25
:\title{Questions successives sur un objet}
25
:\title{Successive questions about an object}
26
:\author{Bernadette, Perrin-Riou}
26
:\author{Bernadette, Perrin-Riou}
27
:\email{bernadette.perrin-riou@math.u-psud.fr}
27
:\email{bernadette.perrin-riou@math.u-psud.fr}
28
:\credits{}
28
:\credits{}
29
 
29
 
30
:Format 1
30
:Format 1
31
\text{format1=item(1, radio (un choix parmi la liste suivante),
31
\text{format1=item(1, radio (a choice from the following list),
32
    numeric (question numérique),
32
  numeric (numeric question),
33
    case (no error tolerance),
33
  case (no error tolerance),
34
	nocase (tolerate lowercase / uppercase),
34
	nocase (tolerate lowercase / uppercase),
35
	atext (ignore pluriel/singulier et articles)
35
	atext (ignore plural / singular and articles)
36
	)}
36
)}
37
 
37
 
38
:Liste de choix pour la question 1 (si radio)
38
:List of choices for question 1 (if radio)
39
Donner la liste des bons choix si vous avez choisi le type radio.
39
Give the list of choices if you chose the radio type. The first is the good one.
40
\text{choix1=premier groupe, deuxième groupe, troisième groupe}
40
\text{choix1=regular, irregular}
41
 
41
 
42
:Format 2
42
:Format 2
43
\text{format2=item(3,radio (un choix parmi la liste suivante),
43
\text{format2=item(3,radio (a choice from the following list),
44
    numeric (question numérique),
44
    numeric (numeric question),
45
    case (no error tolerance),
45
    case (no error tolerance),
46
	nocase (tolerate lowercase / uppercase),
46
	nocase (tolerate lowercase / uppercase),
47
	atext (ignore pluriel/singulier et articles)
47
	atext (ignore plural / singular and articles)
48
	)}
48
	)}
49
 
49
 
50
:Liste de choix pour la question 2 (si radio)
50
:List of choices for question 2 (if radio)
51
Donner la liste des bons choix si vous avez choisi le type radio.
51
Give the list of choices if you chose the radio type. The first is the good one.
52
\text{choix2=}
52
\text{choix2=}
53
 
53
 
54
:Format 3
54
:Format 3
55
\text{format3=item(4,0 (pas de question),
55
\text{format3=item(4,0 (no question),
56
    radio (un choix parmi la liste suivante),
56
    radio (a choice from the following list),
57
    numeric (question numérique),
57
    numeric (numeric question),
58
    case (no error tolerance),
58
    case (no error tolerance),
59
	nocase (tolerate lowercase / uppercase),
59
	nocase (tolerate lowercase / uppercase),
60
	atext (ignore pluriel/singulier et articles)
60
	atext (ignore plural / singular and articles)
61
	)}
61
	)}
62
 
62
 
63
:Liste de choix pour la question 3 (si radio)
63
:List of choices for question 3 (if radio)
64
Donner la liste des bons choix si vous avez choisi le type radio.
64
Give the list of choices if you chose the radio type. The first is the good one.
65
\text{choix3=}
65
\text{choix3=}
66
 
66
 
67
:Texte d'approbation
67
:Approval text
68
\text{right=Vous avez raison.}
68
\text{right=You are right.}
69
 
69
 
70
:Texte de désaprobation
70
:Disapproval text
71
\text{false=Votre réponse n'est pas juste.}
71
\text{false=Your answer is not right.}
72
 
72
 
73
:Main data
73
:Main data
74
\text{data= manger,1,Je mangeais, Je mangerai
74
\text{data= to eat, 2, ate, eaten
75
finir, 2, Je finissais, Je finirai
75
to finish, 1, finished, finished
76
courir,3, Je courais, Je courrai}
76
to run, 2, ran, run
-
 
77
to see, 2, saw, seen}
77
 
78
 
78
:%%%%%%%%%%%%%%
79
:%%%%%%%%%%%%%%
79
\text{data=randomrow(\data)}
80
\text{data=randomrow(\data)}
80
\text{name=<span class="name">\data[1]</span>}
81
\text{name=<span class="name">\data[1]</span>}
81
\text{data=\data[2..-1]}
82
\text{data=\data[2..-1]}
82
 
83
 
83
:Instruction générale
84
:General Instruction
84
\text{instruction=Nous allons étudier le verbe \name.}
85
\text{instruction=We will study the verb \name.}
85
 
86
 
86
:Instruction à la première étape
87
:First step instruction
87
\text{instruction1=Donner le groupe de \name.}
88
\text{instruction1=Is "\name" a regular or irregular verb?}
88
 
89
 
89
:Instruction à la deuxième étape
90
:Second step instruction
90
\text{instruction2=Donner l'imparfait du verbe \name à la première personne du singulier sans oublier le pronom.}
91
\text{instruction2=Give the 3<sup>rd</sup> person singular past tense of the verb \name}
91
 
92
 
92
:Instruction à la troisième étape
93
:Third step instruction
93
\text{instruction3=Donner le futur du verbe \name à la première personne du singulier sans oublier le pronom.}
94
\text{instruction3=Give the past participle of the verb \name}
94
 
95
 
95
:%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%%
96
:%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%%
96
\css{<style> .feedback{color:brown;padding:3pt;}.answer{color:navy;}.name {color:blue;}</style>}
97
\css{<style>.feedback{color:#666}.name {color:#047;}.big_bullet>li{font-size:2em;color: #599;margin-bottom:.5em;}.big_bullet div{font-size:1rem;margin:.2em;}.big_bullet .instruction,.big_bullet .reponse{color:initial;}</style>}
97
 
98
 
98
\text{format1=wims(word 1 of \format1)}
99
\text{format1=wims(word 1 of \format1)}
99
\text{format2=wims(word 1 of \format2)}
100
\text{format2=wims(word 1 of \format2)}
100
\text{format3=wims(word 1 of \format3)}
101
\text{format3=wims(word 1 of \format3)}
101
\text{rep1=\data[1]}
102
\text{rep1=\data[1]}
102
\text{rep2=\data[2]}
103
\text{rep2=\data[2]}
103
\text{rep3=\data[3]}
104
\text{rep3=\data[3]}
104
 
105
 
105
\text{reponse1=\data[1]}
106
\text{response1=\data[1]}
106
\text{reponse2=\data[2]}
107
\text{response2=\data[2]}
107
\text{reponse3=\data[3]}
108
\text{response3=\data[3]}
108
\if{\format1 issametext radio}{
109
\if{\format1 issametext radio}{
109
  \text{rep1=\data[1];\choix1}
110
  \text{rep1=\data[1];\choix1}
110
  \text{reponse1=\choix1[\data[1]]}
111
  \text{response1=\choix1[\data[1]]}
111
}
112
}
112
\if{\format2 issametext radio}{
113
\if{\format2 issametext radio}{
113
  \text{rep2=\data[2];\choix2}
114
  \text{rep2=\data[2];\choix2}
114
  \text{reponse2=\choix2[\data[2]]}
115
  \text{response2=\choix2[\data[2]]}
115
}
116
}
116
\if{\format3 issametext radio}{
117
\if{\format3 issametext radio}{
117
  \text{rep3=\data[3];\choix3}
118
  \text{rep3=\data[3];\choix3}
118
  \text{reponse3=\choix3[\data[3]]}
119
  \text{response3=\choix3[\data[3]]}
119
}
120
}
120
\text{STEP=r1}
121
\text{STEP=r1}
121
\if{\format2!=0}{
122
\if{\format2!=0}{
122
  \text{STEP=\STEP
123
  \text{STEP=\STEP
123
  r2}
124
  r2}
Line 125... Line 126...
125
  \text{STEP=\STEP
126
  \text{STEP=\STEP
126
  r3}
127
  r3}
127
  }
128
  }
128
}
129
}
129
 
130
 
130
\text{reponse1=<span class="oef_indgood">\reponse1</span>}
131
\text{response1=<span class="oef_indgood">\response1</span>}
131
\text{reponse2=<span class="oef_indgood">\reponse2</span>}
132
\text{response2=<span class="oef_indgood">\response2</span>}
132
\text{reponse3=<span class="oef_indgood">\reponse3</span>}
133
\text{response3=<span class="oef_indgood">\response3</span>}
133
:Feedback à la deuxième étape
-
 
134
 
134
 
-
 
135
:First step feedback
-
 
136
Type "\response1" to display the response to this question.
135
\text{feedback1=Le groupe est le groupe \reponse1.}
137
\text{feedback1=This verb is \response1.}
136
 
138
 
137
:Feedback à la troisième étape
139
:Second step feedback
-
 
140
Type "\response2" to display the response to this question.
-
 
141
\text{feedback2=The 3<sup>rd</sup> person singular past tense of the verb \name is \response2.}
138
 
142
 
139
\text{feedback2=L'imparfait à la première personne du singulier de \name est \reponse2.}
-
 
140
 
-
 
141
:Feedback à la fin
143
:Third step feedback
142
 
-
 
-
 
144
Type "\response3" to display the response to this question.
143
\text{feedback3=Le futur à la première personne du singulier \name est \reponse3.}
145
\text{feedback3=The past participle of the verb \name is \response3.}
144
 
146
 
145
 
147
 
146
:%%%
148
:%%%
147
\nextstep{\STEP}
149
\nextstep{\STEP}
148
 
150
 
149
\statement{
151
\statement{
150
<div>\instruction</div>
152
<div>\instruction</div>
151
<ol><li>
-
 
152
  <div class="instruction">
153
<ol class="big_bullet"><li>
153
   \instruction1</div>
154
  <div class="instruction">\instruction1</div>
154
 \if{\step=1}{ \embed{r1} }
155
  \if{\step=1 or \step>=4}{ <div class="reponse">\name_my_answer \embed{r1}</div> }
155
 \if{\step>=1}{</li>}
-
 
156
 \if{\step>=2}{<li>
-
 
157
  <div class="feedback">
156
  {<div class="reponse">
158
 \if{\sc_reply1=1}{\right}{\false} \feedback1
157
      \name_my_answer <span class="name">\reply1</span>
159
 </div>
158
   </div>}
160
 <div class="instruction">
-
 
161
  \instruction2
-
 
162
</div>
-
 
163
 }
-
 
164
 \if{\step=2}{
-
 
165
  \embed{r2}
-
 
166
 }
-
 
167
 \if{\step>=2}{</li>}
-
 
168
 
159
 
169
 \if{\step>=3}{<li>
160
  \if{\step>=2}{
170
   <div class="feedback">
161
    <div class="feedback">
171
  \if{\sc_reply2=1}{\right}{\false} \feedback2
162
      \if{\sc_reply1=1}{\right}{\false} \feedback1
172
   </div>
163
    </div>
173
   \if{\step >=3 and \format3!=0}{
164
    </li><li>
174
     <div class="instruction"> \instruction3</div>
165
    <div class="instruction">
175
     <p>\embed{r3}</p>
166
      \instruction2
176
   }
167
    </div>
177
  }
168
  }
178
 \if{\step>=3}{</li>}
169
  \if{\step=2 or \step>=4}{ <div class="reponse">\name_my_answer \embed{r2}</div> }
179
 
170
 
-
 
171
  \if{\step>=3}{
-
 
172
    \if{\step < 4}{
-
 
173
      <div class="reponse">
-
 
174
        \name_my_answer <span class="name">\reply2</span>
-
 
175
      </div>
-
 
176
    }
-
 
177
    <div class="feedback">
-
 
178
      \if{\sc_reply2=1}{\right}{\false} \feedback2
180
  </ol>
179
    </div>
-
 
180
    \if{\format3!=0}{
-
 
181
      </li><li>
-
 
182
      <div class="instruction"> \instruction3</div>
-
 
183
      <div class="reponse">\name_my_answer \embed{r3}</div>
-
 
184
    }
-
 
185
  }
181
  \if{\step>=4 and \format3!=0}{
186
  \if{\step>=4 and \format3!=0}{
182
   <div class="feedback">
187
    <div class="feedback">
183
  \if{\sc_reply3=1}{\right}{\false} \feedback3
188
      \if{\sc_reply3=1}{\right}{\false} \feedback3
184
   </div>
189
    </div>
185
  }
190
  }
-
 
191
  </li>
186
 
192
</ol>
187
}
193
}
188
 
194
 
189
\answer{}{\rep1}{type=\format1}{option=nonstop}
195
\answer{}{\rep1}{type=\format1}{option=nonstop}
190
\answer{}{\rep2}{type=\format2}{option=nonstop}
196
\answer{}{\rep2}{type=\format2}{option=nonstop}
191
\answer{}{\rep3}{type=\format3}{option=nonstop}
197
\answer{}{\rep3}{type=\format3}{option=nonstop}