Rev 12172 | Rev 13716 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12172 | Rev 13476 | ||
---|---|---|---|
Line 11... | Line 11... | ||
11 | simplement ompliu el camp \text{file=} posant el nom del fitxer |
11 | simplement ompliu el camp \text{file=} posant el nom del fitxer |
12 | (una vegada que l'exercici s'ha transferit a un mòdul OEF d'un compte de Modtool). |
12 | (una vegada que l'exercici s'ha transferit a un mòdul OEF d'un compte de Modtool). |
13 | Existeix un exercici més complet del mateix tipus a Quicktool. |
13 | Existeix un exercici més complet del mateix tipus a Quicktool. |
14 | </div> |
14 | </div> |
15 | 15 | ||
- | 16 | <p class="wims_credits"> |
|
16 | Autor del model: Bernadette Perrin-Riou <bpr@math.u-psud.fr> |
17 | Autor del model: Bernadette Perrin-Riou <bpr@math.u-psud.fr> |
- | 18 | </p> |
|
17 | 19 | ||
18 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
20 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
19 | 21 | ||
20 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
22 | 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 ':'.) |
23 | (Ce sont les lignes qui commencent par un ':'.) |
22 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
24 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
23 | 25 | ||
24 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
26 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
25 | 27 | ||
26 | : |
- | |
27 | \title{Preguntes sobre paraules seleccionades primer} |
28 | :\title{Preguntes sobre paraules seleccionades primer} |
28 | :\author{Bernadette, Perrin-Riou} |
29 | :\author{Bernadette, Perrin-Riou} |
29 | :\email{bpr@math.u-psud.fr} |
30 | :\email{bpr@math.u-psud.fr} |
30 | :\credits{} |
31 | :\credits{} |
31 | 32 | ||
32 | :Enunciat per a la primera pregunta |
33 | :Enunciat per a la primera pregunta |
33 | \text{instruction= Marquer les verbes conjugués.} |
34 | \text{instruction= Marquer les verbes conjugués.} |
- | 35 | ||
34 | :Enunciat per a la segona pregunta |
36 | :Enunciat per a la segona pregunta |
35 | \text{instruction2=Quels sont leurs infinitifs ?} |
37 | \text{instruction2=Quels sont leurs infinitifs ?} |
36 | 38 | ||
37 | :Anàlisi de les respostes a la segona pregunta |
39 | :Anàlisi de les respostes a la segona pregunta |
38 | Les possibilitats són <span class="tt">case</span>, <span class="tt">nocase</span> (no té en compte la diferència entre majúscules/minúscules ni els accents). |
40 | Les possibilitats són <span class="tt">case</span>, <span class="tt">nocase</span> (no té en compte la diferència entre majúscules/minúscules ni els accents). |
39 | Si no es posa res, no es fa una segona pregunta. |
41 | Si no es posa res, no es fa una segona pregunta. |
40 | \text{format=case} |
42 | \text{format=case} |
- | 43 | ||
41 | :Nombre de línies de dades |
44 | :Nombre de línies de dades |
42 | \text{M=3} |
45 | \text{M=3} |
- | 46 | ||
43 | :Mida dels camps de resposta de la segona pregunta |
47 | :Mida dels camps de resposta de la segona pregunta |
44 | \text{size=15} |
48 | \text{size=15} |
45 | 49 | ||
46 | :Dades |
50 | :Dades |
47 | Un text per línia. Posem entre dobles signes d'interrogació la paraula a marcar |
51 | Un text per línia. Posem entre dobles signes d'interrogació la paraula a marcar |
Line 74... | Line 78... | ||
74 | 78 | ||
75 | \text{first_step=1} |
79 | \text{first_step=1} |
76 | \text{alea=yes} |
80 | \text{alea=yes} |
77 | \css{<style type="text/css"> |
81 | \css{<style type="text/css"> |
78 | .question {background-color: #FFFFCC;margin: 2% 2%;padding: 1%;} |
82 | .question {background-color: #FFFFCC;margin: 2% 2%;padding: 1%;} |
79 | .reponse {background-color: #FFCC99 |
83 | .reponse {background-color: #FFCC99;margin: 2% 2%;padding: 1%;} |
80 | .oefstatement{} |
- | |
81 | ol li {list-style: upper-alpha; } |
- | |
82 | </style>} |
84 | </style>} |
83 | \text{paste=yes} |
85 | \text{paste=yes} |
84 | \text{pos_rep=outside} |
86 | \text{pos_rep=outside} |
85 | \text{second_step=\format notsametext ? yes:no} |
87 | \text{second_step=\format notsametext ? yes:no} |
86 | ##################### |
88 | ##################### |
87 | 89 | ||
88 | 90 | ||
89 | \text{format0=mark} |
91 | \text{format0=mark} |
90 | 92 | ||
91 | \if{\file notsametext}{ |
93 | \if{\file notsametext}{ |
92 | \text{file0=randitem(\file)} |
94 | \text{file0=randitem(\file)} |
93 | \integer{cnt_question= wims(recordcnt \file0)} |
95 | \integer{cnt_question= wims(recordcnt \file0)} |
Line 109... | Line 111... | ||
109 | \integer{first_step=\first_step notwordof 0 ? 1} |
111 | \integer{first_step=\first_step notwordof 0 ? 1} |
110 | \text{option_reaccent=\reaccent!=yes ? noreaccent:} |
112 | \text{option_reaccent=\reaccent!=yes ? noreaccent:} |
111 | \text{nopaste=\paste issametext no ? slib(utilities/nopaste )} |
113 | \text{nopaste=\paste issametext no ? slib(utilities/nopaste )} |
112 | 114 | ||
113 | \text{size=\format iswordof dragfill clickfill ? \size x 1} |
115 | \text{size=\format iswordof dragfill clickfill ? \size x 1} |
114 | 116 | ||
115 | \text{texte=wims(\texte)} |
117 | \text{texte=wims(\texte)} |
116 | \text{texte=\accolade=1 ?wims(embraced randitem \texte)} |
118 | \text{texte=\accolade=1 ?wims(embraced randitem \texte)} |
117 | \text{texte=wims(replace internal ??| by ?? | in \texte)} |
119 | \text{texte=wims(replace internal ??| by ?? | in \texte)} |
118 | \text{texte=wims(replace internal ?? | by ?? | in \texte)} |
120 | \text{texte=wims(replace internal ?? | by ?? | in \texte)} |
- | 121 | \text{texte = wims(replace internal <br/> by <br/> _newline_ in \texte)} |
|
- | 122 | ||
119 | \matrix{texte=slib(text/markgroup \texte)} |
123 | \matrix{texte=slib(text/markgroup \texte)} |
120 | \matrix{numero=\texte[1..-4;]} |
124 | \matrix{numero=\texte[1..-4;]} |
121 | \text{traduction=\texte[-2;]} |
125 | \text{traduction=\texte[-2;]} |
122 | \text{traduction=wims(replace internal || by | in \traduction)} |
126 | \text{traduction=wims(replace internal || by | in \traduction)} |
123 | \text{cnt_mot = rows(\numero)} |
127 | \text{cnt_mot = rows(\numero)} |
124 | \text{Numero = wims(rows2lines \numero)} |
128 | \text{Numero = wims(rows2lines \numero)} |
125 | \text{Numero = wims(lines2items \Numero)} |
129 | \text{Numero = wims(lines2items \Numero)} |
126 | \text{prem_numero=wims(column 1 of \numero)} |
130 | \text{prem_numero=wims(column 1 of \numero)} |
127 | \text{texte = \texte[-3;]} |
131 | \text{texte = \texte[-3;]} |
- | 132 | \text{texte = wims(replace internal _newline_ by in \texte)} |
|
128 | \text{cnt = items(\texte)} |
133 | \text{cnt = items(\texte)} |
129 | \text{Texte=wims(items2words \texte)} |
134 | \text{Texte=wims(items2words \texte)} |
130 | 135 | ||
131 | \text{rep_compose = } |
136 | \text{rep_compose = } |
132 | \for{ i = 1 to \cnt_mot}{ |
137 | \for{ i = 1 to \cnt_mot}{ |
Line 135... | Line 140... | ||
135 | \text{rep_compose = \rep_compose,\nom_compose} |
140 | \text{rep_compose = \rep_compose,\nom_compose} |
136 | } |
141 | } |
137 | \text{rep_compose= wims(nonempty items \rep_compose)} |
142 | \text{rep_compose= wims(nonempty items \rep_compose)} |
138 | 143 | ||
139 | \text{STEP = wims(makelist r x for x = 2 to \cnt_mot+1)} |
144 | \text{STEP = wims(makelist r x for x = 2 to \cnt_mot+1)} |
- | 145 | \text{labels = wims(makelist x for x = 2 to \cnt_mot+1)} |
|
- | 146 | ||
140 | \text{position=} |
147 | \text{position=} |
141 | \integer{a=0} |
148 | \integer{a=0} |
142 | \for{t = 1 to \cnt}{ |
149 | \for{t = 1 to \cnt}{ |
143 | \if{\t isitemof \prem_numero}{ |
150 | \if{\t isitemof \prem_numero}{ |
144 | \integer{a =\a+1} |
151 | \integer{a =\a+1} |
Line 187... | Line 194... | ||
187 | } |
194 | } |
188 | } |
195 | } |
189 | </div> |
196 | </div> |
190 | <p>\instruction2</p> |
197 | <p>\instruction2</p> |
191 | <div class="question"> |
198 | <div class="question"> |
192 | <table> |
- | |
193 | \for{s= 1 to \cnt_mot}{ |
199 | \for{s= 1 to \cnt_mot}{ |
- | 200 | <div class="field"> |
|
194 |
|
201 | <label for="reply\labels[\s]">\rep_compose[\s] :</label> |
- | 202 | \embed{\STEP[\s],\size |
|
195 | \autocompletion} |
203 | \autocompletion} |
- | 204 | </div> |
|
196 | } |
205 | } |
197 | </table> |
- | |
198 | </div> |
206 | </div> |
199 | } |
207 | } |
200 | \if{\pos_rep=inside}{ |
208 | \if{\pos_rep=inside}{ |
201 | <p>\instruction2</p> |
209 | <p>\instruction2</p> |
202 | <div class="question"> |
210 | <div class="question"> |
Line 213... | Line 221... | ||
213 | \if{\pos_rep=under}{ |
221 | \if{\pos_rep=under}{ |
214 | <div class="question"> |
222 | <div class="question"> |
215 | \for{u = 0 to \quo}{<table style="border:none"> |
223 | \for{u = 0 to \quo}{<table style="border:none"> |
216 | <tr> |
224 | <tr> |
217 | \for{ v = 1 to \coupure}{<td style="text-align:center"> |
225 | \for{ v = 1 to \coupure}{<td style="text-align:center"> |
218 | \if{\nombre[\coupure*\u+\v] isitemof \prem_numero |
- | |
219 | or \nombre[\coupure*\u+\v] notitemof \Numero}{} |
- | |
220 | \if{\coupure*\u+\v <= \cnt}{ |
226 | \if{\coupure*\u+\v <= \cnt}{ |
221 | \if{\nombre[\coupure*\u+\v] isitemof \Numero}{<span style="color:blue;">} |
227 | \if{\nombre[\coupure*\u+\v] isitemof \Numero}{<span style="color:blue;">} |
222 | \texte[\coupure*\u+\v]}{ } |
228 | \texte[\coupure*\u+\v]}{ } |
223 | \if{\nombre[\coupure*\u+\v] isitemof \Numero}{</span>} |
229 | \if{\nombre[\coupure*\u+\v] isitemof \Numero}{</span>} |
224 | </td> |
230 | </td> |
225 | } |
231 | } |
226 | </tr><tr> |
232 | </tr><tr> |
227 | \for{ v = 1 to \coupure}{ |
233 | \for{ v = 1 to \coupure}{ |
228 | \if{\nombre[\coupure*\u+\v] isitemof \prem_numero |
- | |
229 | or \nombre[\coupure*\u+\v] notitemof \Numero}{} |
- | |
230 | <td style="text-align:center"> |
234 | <td style="text-align:center"> |
231 | \if{\nombre[\coupure*\u+\v] isitemof \prem_numero}{ |
235 | \if{\nombre[\coupure*\u+\v] isitemof \prem_numero}{ |
232 | \embed{\STEP[\position[\nombre[\coupure*\u+\v]]], \size |
236 | \embed{\STEP[\position[\nombre[\coupure*\u+\v]]], \size |
233 | \autocompletion} |
237 | \autocompletion} |
234 | }{ } |
238 | }{ } |