Rev 11375 | 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=imaudio |
5281 | bpr | 2 | textarea="data" |
3 | |||
12171 | mquerol | 4 | :Trieu una etiqueta corresponent a la imatge (o al text que es presenta) |
5 | Tingueu present que aquest model només funcionarà bé si carregueu les imatges a wims. |
||
5281 | bpr | 6 | <p> |
12171 | mquerol | 7 | Per construir un exercici amb aquest model, simplement escriu la llista d'imatges i |
8 | etiquetes corresponents |
||
5281 | bpr | 9 | </p> |
10 | $image_help |
||
11 | <p> |
||
12171 | mquerol | 12 | Autor del model: Bernadette Perrin-Riou <bpr@math.u-psud.fr> |
5281 | bpr | 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 | |||
12171 | mquerol | 23 | :\title{Trobar l'etiqueta correcta} |
5281 | bpr | 24 | :\author{Bernadette, Perrin-Riou} |
25 | :\email{bpr@math.u-psud.fr} |
||
12171 | mquerol | 26 | :\credits{} |
27 | :Enunciat |
||
28 | \text{instruction=Feu clic a la paraula corresponent a la imatge. |
||
29 | (L'exercici només funcionarà quan es carreguin les imatges |
||
30 | a l'exercici)} |
||
5281 | bpr | 31 | |
12171 | mquerol | 32 | :Dades |
5281 | bpr | 33 | \text{data=amphitheatre.png,l'amphithéâtre |
34 | aqueduc.png, l'aqueduc |
||
35 | arcdetriomphe.png,l'arc de triomphe |
||
36 | cirque.png, le cirque |
||
37 | domus.png, la domus |
||
38 | temple.png, le temple |
||
39 | theatre.png, le théâtre |
||
40 | thermes.png, les thermes |
||
41 | } |
||
42 | |||
12171 | mquerol | 43 | :Nombre de disruptors |
5281 | bpr | 44 | \integer{cntpertub=3} |
12171 | mquerol | 45 | :La mida vertical de les caixes en píxels |
5281 | bpr | 46 | \text{sizev=40} |
12171 | mquerol | 47 | :La mida horitzontal de les caixes en píxels |
5281 | bpr | 48 | \text{sizeh=200} |
49 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
||
50 | |||
51 | \text{mot = randrow(\data)} |
||
52 | \text{image=\mot[1]} |
||
53 | \text{ext=item(2,wims(replace internal . by , in wims(lowercase \image)))} |
||
54 | \text{mot =\mot[2]} |
||
55 | \text{liste=column(2, \data)} |
||
56 | \text{perturb=wims(listcomplement \mot in \liste)} |
||
57 | \text{perturb=shuffle(\perturb)} |
||
58 | \text{perturb=\perturb[1..\cntpertub]} |
||
59 | |||
60 | |||
61 | \statement{ |
||
62 | \instruction |
||
12171 | mquerol | 63 | <p class="wimscenter"> |
5639 | bpr | 64 | \if{\ext isitemof png,gif,jpg,jpeg}{ |
5281 | bpr | 65 | \img{\imagedir/\image} |
66 | } |
||
67 | {\image}</p> |
||
68 | |||
12171 | mquerol | 69 | <p class="wimscenter"> |
5281 | bpr | 70 | \embed{r1,\sizeh x \sizev} |
71 | </p> |
||
72 | } |
||
11375 | bpr | 73 | \answer{}{\mot;\perturb}{type=clickfill} |