Rev 5639 | Rev 12171 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=imaudio |
5281 | bpr | 2 | textarea="data" |
3 | |||
4 | :Ecrire un mot correspondant à l'image (ou au texte présenté) |
||
5 | Attention, ce modèle ne fonctionnera bien que si vous chargez les images sur wims. |
||
6 | <p> |
||
7 | Pour construire un exercice avec ce modèle, il suffit de taper la liste des images et |
||
8 | des étiquettes correspondantes |
||
9 | </p> |
||
10 | $image_help |
||
11 | <p> |
||
12 | Auteur du modèle : Bernadette Perrin-Riou <bpr@math.u-psud.fr> |
||
13 | </p> |
||
14 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
15 | |||
16 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
||
17 | (Ce sont les lignes qui commencent par un ':'.) |
||
18 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
19 | |||
20 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
21 | |||
22 | |||
23 | :\title{Trouver la bonne étiquette} |
||
24 | :\author{Bernadette, Perrin-Riou} |
||
25 | :\email{bpr@math.u-psud.fr} |
||
26 | :Consigne |
||
27 | \text{instruction=Clique sur le mot correspondant à l'image. |
||
28 | (l'exercice ne fonctionnera que quand les images seront chargées |
||
29 | dans l'exercice)} |
||
30 | |||
31 | :Données |
||
32 | \text{data=amphitheatre.png,l'amphithéâtre |
||
33 | aqueduc.png, l'aqueduc |
||
34 | arcdetriomphe.png,l'arc de triomphe |
||
35 | cirque.png, le cirque |
||
36 | domus.png, la domus |
||
37 | temple.png, le temple |
||
38 | theatre.png, le théâtre |
||
39 | thermes.png, les thermes |
||
40 | } |
||
41 | |||
42 | :Nombre de perturbateurs. |
||
43 | \integer{cntpertub=3} |
||
44 | :La taille verticale des cases en pixels. |
||
45 | \text{sizev=40} |
||
46 | :La taille horizontale des cases en pixels |
||
47 | \text{sizeh=200} |
||
48 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
||
49 | |||
50 | \text{mot = randrow(\data)} |
||
51 | \text{image=\mot[1]} |
||
52 | \text{ext=item(2,wims(replace internal . by , in wims(lowercase \image)))} |
||
53 | \text{mot =\mot[2]} |
||
54 | \text{liste=column(2, \data)} |
||
55 | \text{perturb=wims(listcomplement \mot in \liste)} |
||
56 | \text{perturb=shuffle(\perturb)} |
||
57 | \text{perturb=\perturb[1..\cntpertub]} |
||
58 | |||
59 | |||
60 | \statement{ |
||
61 | \instruction |
||
62 | <p style="text-align:center;"> |
||
5639 | bpr | 63 | \if{\ext isitemof png,gif,jpg,jpeg}{ |
5281 | bpr | 64 | \img{\imagedir/\image} |
65 | } |
||
66 | {\image}</p> |
||
67 | |||
68 | <p style="text-align:center;"> |
||
69 | \embed{r1,\sizeh x \sizev} |
||
70 | </p> |
||
71 | } |
||
11375 | bpr | 72 | \answer{}{\mot;\perturb}{type=clickfill} |