Rev 11375 | Rev 13477 | 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 | :Choisir parmi des étiquettes ce qui correspond à 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> |
||
11544 | obado | 12 | Author of the model: Bernadette Perrin-Riou <bpr@math.u-psud.fr> |
5281 | bpr | 13 | </p> |
14 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
15 | |||
11544 | obado | 16 | Remove the above header if you destroy the model tags! (The lines starting |
17 | with a ':'.) Otherwise the exercise might not be taken back by Createxo. |
||
5281 | bpr | 18 | |
11544 | obado | 19 | :%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%% |
5281 | bpr | 20 | |
21 | |||
22 | :\title{Reconnaître une image} |
||
23 | :\author{Bernadette, Perrin-Riou} |
||
24 | :\email{bpr@math.u-psud.fr} |
||
5724 | bpr | 25 | :\credits{} |
5281 | bpr | 26 | :Consigne |
27 | \text{instruction=Ecris le mot correspondant à l'image (l'exercice ne fonctionnera que quand les images seront chargées |
||
28 | dans l'exercice)} |
||
29 | |||
30 | :Données |
||
31 | \text{data=amphitheatre.png,l'amphithéâtre |
||
32 | aqueduc.png, l'aqueduc |
||
33 | arcdetriomphe.png,l'arc de triomphe |
||
34 | cirque.png, le cirque |
||
35 | domus.png, la domus |
||
36 | temple.png, le temple |
||
37 | theatre.png, le théâtre |
||
38 | thermes.png, les termes |
||
39 | } |
||
40 | |||
41 | :La taille des cases en pixels. |
||
42 | \text{sizeh=40} |
||
11544 | obado | 43 | :%%%%%%%%%%%%% Now the statement in HTML. %%%%%%%%%%%%%%%%%%%% |
5281 | bpr | 44 | |
45 | \text{mot = randrow(\data)} |
||
7341 | bpr | 46 | \text{mot=wims(embraced randitem \mot)} |
5281 | bpr | 47 | \text{image=\mot[1]} |
48 | \text{ext=item(2,wims(replace internal . by , in wims(lowercase \image)))} |
||
49 | \text{mot =\mot[2]} |
||
50 | |||
51 | \statement{ |
||
52 | \instruction |
||
5723 | bpr | 53 | <p class="wimscenter"> |
7341 | bpr | 54 | \if{\ext isitemof png,gif,jpg,jpeg}{ |
5281 | bpr | 55 | \img{\imagedir/\image} |
56 | } |
||
57 | {\image}</p> |
||
58 | |||
6946 | bpr | 59 | <div class="wimscenter"> |
5281 | bpr | 60 | \embed{r1,\sizeh |
61 | default |
||
6946 | bpr | 62 | autocomplete="off"} |
63 | </div> |
||
5281 | bpr | 64 | } |
6946 | bpr | 65 | \answer{}{\mot}{type=case} |