Rev 6946 | Rev 12172 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=select |
4688 | bpr | 2 | textarea="data" |
3 | |||
4 | :Marquer un mot, puis donner un renseignement concernant ce mot |
||
11375 | bpr | 5 | A la première étape, il est demandé marquer des mots ; à la seconde étape, |
6 | une question est posée sur ces mots (texte à répondre). |
||
4688 | bpr | 7 | |
6070 | bpr | 8 | <div class="small"> |
4688 | bpr | 9 | Cet exercice peut facilement être transformé pour être inclus dans un module OEF |
10 | si l'on désire mettre les données dans un fichier auxiliaire. Pour cela, |
||
11 | il suffit de remplir le champ \text{file=} en mettant le nom du fichier |
||
12 | (une fois l'exercice transféré dans un module OEF d'un compte Modtool). |
||
13 | Un exercice du même type plus complet existe dans Quicktool. |
||
6070 | bpr | 14 | </div> |
15 | |||
4688 | bpr | 16 | Auteur du modèle : Bernadette Perrin-Riou <bpr@math.u-psud.fr> |
17 | |||
18 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
19 | |||
20 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
||
21 | (Ce sont les lignes qui commencent par un ':'.) |
||
22 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
23 | |||
24 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
25 | |||
26 | : |
||
27 | \title{Questions sur des mots à sélectionner d'abord} |
||
6070 | bpr | 28 | :\author{Bernadette, Perrin-Riou} |
29 | :\email{bpr@math.u-psud.fr} |
||
30 | :\credits{} |
||
4688 | bpr | 31 | |
32 | :Consigne de la première question |
||
33 | \text{instruction= Marquer les verbes conjugués.} |
||
34 | :Consigne de la deuxième question |
||
35 | \text{instruction2=Quels sont leurs infinitifs ?} |
||
36 | |||
37 | :Analyse des réponses de la deuxième question |
||
5907 | bpr | 38 | Les possibilités sont <span class="tt">case</span>, <span class="tt">nocase</span> (ne tient pas compte de la casse). |
6070 | bpr | 39 | Si rien n'est rempli, il n'y a pas de deuxième question posée. |
4688 | bpr | 40 | \text{format=case} |
41 | :Nombre de lignes des données |
||
42 | \text{M=3} |
||
43 | :Taille des champs de réponses de la deuxième question |
||
44 | \text{size=15} |
||
45 | |||
46 | :Données |
||
47 | Une phrase par ligne. On met entre double points d'interrogation le mot à marquer |
||
48 | suivi du texte à répondre à la seconde question, séparés par le symbole |
||
5907 | bpr | 49 | <span class="tt wims_code_words">|</span>. |
6070 | bpr | 50 | $embraced_randitem |
4688 | bpr | 51 | |
52 | \text{data= Le chat ??mange|manger?? la souris. |
||
53 | Vous ??{avez bu,buvez}|boire?? du {thé,café}. |
||
54 | Nous ??tournons|tourner?? les pages du livre une à une. |
||
11375 | bpr | 55 | Les randonneurs ??{feront,font}|faire?? un feu. |
56 | Il ??{a déménagé,déménage}|déménager?? pendant les vacances. |
||
57 | Les navires ??{ont quitté,quittent}|quitter?? le port aujourd'hui. |
||
58 | Mon chien ??remue|remuer?? {la queue,les oreilles}. |
||
4688 | bpr | 59 | Tu ??{prépareras,as préparé,prépares}|préparer?? un cadeau pour tes {parents,grands-parents}. |
60 | Je ??suis arrivé|arriver?? {en retard,en avance} à mon rendez-vous. |
||
61 | {Christian,Paul} et moi ??regardons|regarder?? un film d'aventure. |
||
62 | } |
||
63 | |||
6070 | bpr | 64 | :Mise en aléatoire par des accolades emboitables |
65 | $embraced_randitem |
||
66 | \text{accolade=item(1,1 oui, |
||
67 | 2 non)} |
||
4688 | bpr | 68 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
69 | ################ |
||
6070 | bpr | 70 | \text{accolade=wims(word 1 of \accolade)} |
71 | |||
4688 | bpr | 72 | \text{file=} |
73 | \text{partialscore=split} |
||
74 | |||
75 | \text{first_step=1} |
||
76 | \text{alea=yes} |
||
77 | \css{<style type="text/css"> |
||
78 | .question {background-color: #FFFFCC;margin: 2% 2%;padding: 1%;} |
||
79 | .reponse {background-color: #FFCC99;color: black;margin: 2% 2%;padding: 1%;} |
||
80 | .oefstatement{} |
||
81 | ol li {list-style: upper-alpha; } |
||
82 | </style>} |
||
83 | \text{paste=yes} |
||
84 | \text{pos_rep=outside} |
||
6070 | bpr | 85 | \text{second_step=\format notsametext ? yes:no} |
4688 | bpr | 86 | ##################### |
87 | |||
88 | |||
89 | \text{format0=mark} |
||
90 | |||
91 | \if{\file notsametext}{ |
||
92 | \text{file0=randitem(\file)} |
||
93 | \integer{cnt_question= wims(recordcnt \file0)} |
||
6070 | bpr | 94 | \text{battage=\alea issametext yes ? shuffle(\cnt_question): |
4688 | bpr | 95 | wims(makelist x for x = 1 to \cnt_question)} |
96 | \text{texte=wims(record \battage[1] of \file0)} |
||
97 | }{ |
||
98 | \integer{cnt_question=rows(\data)} |
||
99 | \integer{N=min(\cnt_question,\M)} |
||
100 | \integer{N=min(\N,10)} |
||
101 | \text{liste=shuffle(\cnt_question)} |
||
102 | \text{liste=\liste[1..\N]} |
||
103 | \matrix{data=\data} |
||
104 | \text{texte=\data[\liste;]} |
||
6070 | bpr | 105 | \text{texte=wims(replace internal ; by <br/> in \texte)} |
4688 | bpr | 106 | } |
107 | |||
6946 | bpr | 108 | \text{autocompletion=\format iswordof case ? autocomplete="off"} |
4688 | bpr | 109 | \integer{first_step=\first_step notwordof 0 ? 1} |
110 | \text{option_reaccent=\reaccent!=yes ? noreaccent:} |
||
111 | \text{nopaste=\paste issametext no ? slib(utilities/nopaste )} |
||
112 | |||
113 | \text{size=\format iswordof dragfill clickfill ? \size x 1} |
||
114 | |||
115 | \text{texte=wims(\texte)} |
||
6070 | bpr | 116 | \text{texte=\accolade=1 ?wims(embraced randitem \texte)} |
4688 | bpr | 117 | \text{texte=wims(replace internal ??| by ?? | in \texte)} |
118 | \text{texte=wims(replace internal ?? | by ?? | in \texte)} |
||
119 | \matrix{texte=slib(text/markgroup \texte)} |
||
120 | \matrix{numero=\texte[1..-4;]} |
||
121 | \text{traduction=\texte[-2;]} |
||
122 | \text{traduction=wims(replace internal || by | in \traduction)} |
||
123 | \text{cnt_mot = rows(\numero)} |
||
124 | \text{Numero = wims(rows2lines \numero)} |
||
125 | \text{Numero = wims(lines2items \Numero)} |
||
126 | \text{prem_numero=wims(column 1 of \numero)} |
||
127 | \text{texte = \texte[-3;]} |
||
128 | \text{cnt = items(\texte)} |
||
129 | \text{Texte=wims(items2words \texte)} |
||
11375 | bpr | 130 | |
4688 | bpr | 131 | \text{rep_compose = } |
132 | \for{ i = 1 to \cnt_mot}{ |
||
133 | \text{nom_compose= \texte[\numero[\i;]]} |
||
134 | \text{nom_compose =wims(items2words \nom_compose)} |
||
135 | \text{rep_compose = \rep_compose,\nom_compose} |
||
136 | } |
||
137 | \text{rep_compose= wims(nonempty items \rep_compose)} |
||
138 | |||
139 | \text{STEP = wims(makelist r x for x = 2 to \cnt_mot+1)} |
||
140 | \text{position=} |
||
141 | \integer{a=0} |
||
142 | \for{t = 1 to \cnt}{ |
||
143 | \if{\t isitemof \prem_numero}{ |
||
144 | \integer{a =\a+1} |
||
145 | \text{position=\position,\a} |
||
146 | }{ |
||
147 | \text{position=\position,0} |
||
148 | } |
||
149 | } |
||
150 | \text{position=wims(nonempty items \position)} |
||
151 | |||
152 | \text{STEP1=\first_step=1?r1} |
||
153 | \text{STEP1=\second_step issametext yes ? \STEP1 |
||
154 | \STEP |
||
155 | } |
||
156 | |||
157 | \steps{\STEP1} |
||
158 | |||
159 | |||
160 | \integer{reste=\cnt%\coupure} |
||
161 | \integer{quo=(\cnt-\reste)/\coupure} |
||
162 | \integer{quo=\reste=0? \quo-1} |
||
163 | \text{nombre=wims(makelist x for x = 1 to \cnt)} |
||
164 | %%%%%%%%%%% |
||
165 | |||
6946 | bpr | 166 | \statement{\nopaste <div>\instruction</div> |
4688 | bpr | 167 | \preliminaire |
168 | \if{\reading notsametext }{\special{help reading,[à lire]}} |
||
169 | \if{\image notsametext }{\special{help image,[à regarder]}} |
||
170 | \audio\video |
||
171 | \if{\step=\first_step}{ |
||
172 | <div class="question"> |
||
173 | \if{\format iswordof flashcard}{ |
||
11375 | bpr | 174 | <div> \for{h=1 to \cnt}{\texte[\h] }</div>} |
4688 | bpr | 175 | \for{h=1 to \cnt}{ |
11375 | bpr | 176 | \embed{reply 1,\h} |
4688 | bpr | 177 | } |
178 | </div> |
||
179 | } |
||
180 | \if{\step >=1+\first_step}{ |
||
181 | \if{\pos_rep=outside}{ |
||
182 | <div class="reponse"> |
||
183 | \for{s = 1 to \cnt}{ |
||
184 | \if{\s notitemof \Numero}{\texte[\s]}{ |
||
185 | \if{\s isitemof \Numero}{ |
||
6132 | bpr | 186 | <span style="color:blue;font-size:large;">\texte[\s]</span>} |
4688 | bpr | 187 | } |
188 | } |
||
189 | </div> |
||
6946 | bpr | 190 | <div>\instruction2</div> |
4688 | bpr | 191 | <div class="question"> |
192 | <table> |
||
193 | \for{s= 1 to \cnt_mot}{ |
||
194 | <tr><td> \rep_compose[\s]</td> <td>:</td><td> \embed{reply \STEP[\s],\size |
||
195 | \autocompletion}</td></tr> |
||
196 | } |
||
197 | </table> |
||
198 | </div> |
||
199 | } |
||
200 | \if{\pos_rep=inside}{ |
||
6946 | bpr | 201 | <div>\instruction2</div> |
4688 | bpr | 202 | <div class="question"> |
203 | \for{s = 1 to \cnt}{ |
||
204 | \if{\s notitemof \Numero}{\texte[\s]}{ |
||
205 | \if{\s isitemof \prem_numero}{ |
||
206 | \embed{\STEP[\position[\s]], \size |
||
207 | \autocompletion} |
||
208 | } |
||
6132 | bpr | 209 | <span class="smaller" style="color:blue;">\texte[\s]</span>} |
4688 | bpr | 210 | } |
211 | </div> |
||
212 | } |
||
213 | \if{\pos_rep=under}{ |
||
214 | <div class="question"> |
||
215 | \for{u = 0 to \quo}{<table border="0"> |
||
216 | <tr> |
||
217 | \for{ v = 1 to \coupure}{<td align="center"> |
||
11375 | bpr | 218 | \if{\nombre[\coupure*\u+\v] isitemof \prem_numero |
4688 | bpr | 219 | or \nombre[\coupure*\u+\v] notitemof \Numero}{} |
11375 | bpr | 220 | \if{\coupure*\u+\v <= \cnt}{ |
6132 | bpr | 221 | \if{\nombre[\coupure*\u+\v] isitemof \Numero}{<sapn style="color:blue;">} |
4688 | bpr | 222 | \texte[\coupure*\u+\v]}{ } |
6132 | bpr | 223 | \if{\nombre[\coupure*\u+\v] isitemof \Numero}{</span>} |
4688 | bpr | 224 | </td> |
225 | } |
||
226 | </tr><tr> |
||
227 | \for{ v = 1 to \coupure}{ |
||
11375 | bpr | 228 | \if{\nombre[\coupure*\u+\v] isitemof \prem_numero |
4688 | bpr | 229 | or \nombre[\coupure*\u+\v] notitemof \Numero}{} |
230 | <td align="center"> |
||
11375 | bpr | 231 | \if{\nombre[\coupure*\u+\v] isitemof \prem_numero}{ |
4688 | bpr | 232 | \embed{\STEP[\position[\nombre[\coupure*\u+\v]]], \size |
233 | \autocompletion} |
||
234 | }{ } |
||
235 | </td> |
||
236 | } |
||
5724 | bpr | 237 | </tr><tr><td colspan="\coupure"><hr/></td></tr> |
4688 | bpr | 238 | </table> } |
239 | |||
240 | </div> |
||
241 | } |
||
242 | } |
||
243 | } |
||
244 | |||
245 | \answer{}{\Numero;\texte}{type=\format0}{option=\partialscore \option} |
||
246 | \answer{\rep_compose[1]}{\traduction[1];\choix}{type=\format} |
||
247 | \answer{\rep_compose[2]}{\traduction[2]}{type=\format}{option=\option_reaccent} |
||
248 | \answer{\rep_compose[3]}{\traduction[3]}{type=\format}{option=\option_reaccent} |
||
249 | \answer{\rep_compose[4]}{\traduction[4]}{type=\format}{option=\option_reaccent} |
||
250 | \answer{\rep_compose[5]}{\traduction[5]}{type=\format}{option=\option_reaccent} |
||
251 | \answer{\rep_compose[6]}{\traduction[6]}{type=\format}{option=\option_reaccent} |
||
252 | \answer{\rep_compose[7]}{\traduction[7]}{type=\format}{option=\option_reaccent} |
||
253 | \answer{\rep_compose[8]}{\traduction[8]}{type=\format}{option=\option_reaccent} |
||
254 | \answer{\rep_compose[9]}{\traduction[9]}{type=\format}{option=\option_reaccent} |
||
255 | \answer{\rep_compose[10]}{\traduction[10]}{type=\format}{option=\option_reaccent} |
||
256 | \answer{\rep_compose[11]}{\traduction[11]}{type=\format}{option=\option_reaccent} |
||
257 | \answer{\rep_compose[12]}{\traduction[12]}{type=\format}{option=\option_reaccent} |
||
258 | \answer{\rep_compose[13]}{\traduction[13]}{type=\format}{option=\option_reaccent} |
||
259 | \answer{\rep_compose[14]}{\traduction[14]}{type=\format}{option=\option_reaccent} |
||
260 | \answer{\rep_compose[15]}{\traduction[15]}{type=\format}{option=\option_reaccent} |
||
261 | \answer{\rep_compose[16]}{\traduction[16]}{type=\format}{option=\option_reaccent} |
||
262 | \answer{\rep_compose[17]}{\traduction[17]}{type=\format}{option=\option_reaccent} |
||
263 | \answer{\rep_compose[18]}{\traduction[18]}{type=\format}{option=\option_reaccent} |
||
264 | \answer{\rep_compose[19]}{\traduction[19]}{type=\format}{option=\option_reaccent} |
||
265 | \answer{\rep_compose[20]}{\traduction[20]}{type=\format}{option=\option_reaccent} |
||
11375 | bpr | 266 |