Rev 13477 | Rev 13715 | 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 |
3161 | bpr | 2 | textarea="data explain" |
3 | |||
13704 | obado | 4 | :Establish the correspondence between pairs of objects (with audios from the database). |
3161 | bpr | 5 | |
13704 | obado | 6 | Object pairs are presented in a two-column table. |
7 | You must restore the good correspondence in the pairs |
||
8 | by modifying the column on the right, by drag and drop |
||
9 | or click with the mouse. |
||
10 | Objects on the left are mandatorily audio files taken in the Shtooka base of WIMS. |
||
11 | To check if a word exist, use the Swac tool |
||
12 | (in the search engine look for <span class="tt">swac</span>). |
||
3161 | bpr | 13 | <p> |
13704 | obado | 14 | To build an exercise with this model, just type the list of object pairs. |
15 | For more possibilities, use Quicktool. |
||
5275 | bpr | 16 | </p> |
13477 | obado | 17 | <p class="wims_credits"> |
11544 | obado | 18 | Author of the model: Bernadette Perrin-Riou <bpr@math.u-psud.fr> |
3161 | bpr | 19 | </p> |
20 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
21 | |||
11544 | obado | 22 | Remove the above header if you destroy the model tags! (The lines starting |
23 | with a ':'.) Otherwise the exercise might not be taken back by Createxo. |
||
3161 | bpr | 24 | |
11544 | obado | 25 | :%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%% |
3161 | bpr | 26 | |
13704 | obado | 27 | :\title{Correspondence with pre-recorded audio} |
5147 | bpr | 28 | :\author{Bernadette, Perrin-Riou} |
3161 | bpr | 29 | :\email{bpr@math.u-psud.fr} |
5724 | bpr | 30 | :\credits{} |
3161 | bpr | 31 | |
13704 | obado | 32 | :Number of (pairs of) objects to match |
3161 | bpr | 33 | \integer{tot=3} |
34 | |||
13704 | obado | 35 | :Height of the boxes (in pixels) |
36 | Think of people who increase the font size of their browsers. |
||
37 | Do not set too small boxes. |
||
3161 | bpr | 38 | \integer{sizev=50} |
39 | |||
13704 | obado | 40 | :Width of the boxes on the left (in pixels) |
3161 | bpr | 41 | \integer{sizel=250} |
42 | |||
13704 | obado | 43 | :Width of the boxes on the right (in pixels) |
3161 | bpr | 44 | \integer{sizer=250} |
45 | |||
13704 | obado | 46 | :Audio language: the possible choices are <span class="tt">fra</span>, <span class="tt">eng</span>, <span class="tt">dut</span> (and others with fewer possibilities: <span class="tt">pol</span>, <span class="tt">wol</span>, <span class="tt">deu</span>, <span class="tt">swe</span>.) |
47 | \text{lang=eng} |
||
13477 | obado | 48 | |
49 | :Main data. |
||
13704 | obado | 50 | Define a pair of matching objects per line, separated by a comma. |
5797 | bpr | 51 | $embraced_randitem |
3161 | bpr | 52 | \matrix{data= |
13704 | obado | 53 | village, town |
54 | house, building |
||
55 | father, mother |
||
56 | street, highway |
||
57 | blue, green |
||
3161 | bpr | 58 | } |
59 | |||
13704 | obado | 60 | :Instructions |
3161 | bpr | 61 | $embraced_randitem |
13704 | obado | 62 | \text{explain=Establish the correspondence of meaning between the written words and the spoken words.} |
3161 | bpr | 63 | |
11544 | obado | 64 | :Embraced random items |
5797 | bpr | 65 | $embraced_randitem |
11544 | obado | 66 | \text{accolade=item(1,1 yes, |
67 | 2 no)} |
||
5797 | bpr | 68 | |
11544 | obado | 69 | :%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%% |
5797 | bpr | 70 | \text{accolade=wims(word 1 of \accolade)} |
3161 | bpr | 71 | \integer{datacnt=rows(\data)} |
72 | \integer{tot=\tot>\datacnt?\datacnt} |
||
73 | |||
74 | \text{shuf=item(1..\tot,shuffle(\datacnt))} |
||
75 | \text{data=row(\shuf,\data)} |
||
5797 | bpr | 76 | \text{data=\accolade=1 ? wims(embraced randitem \data)} |
3161 | bpr | 77 | \text{datal=column(1,\data)} |
78 | \text{datar1=column(2,\data)} |
||
79 | \text{datar=} |
||
80 | \for{k =1 to \tot}{ |
||
81 | \text{audio=\datar1[\k]} |
||
12914 | obado | 82 | \text{audio=slib(lang/swac \audio,\lang)} |
3161 | bpr | 83 | \text{audio=\audio[1;1]} |
84 | \text{datar=wims(append item \audio to \datar)} |
||
85 | } |
||
86 | \text{size=\sizev[]x\sizel[]x\sizer} |
||
5797 | bpr | 87 | \text{explain=\accolade=1 ? wims(embraced randitem \explain)} |
3161 | bpr | 88 | |
11544 | obado | 89 | :%%%%%%%%%%%%% Now the statement in HTML. %%%%%%%%%%%%%%%%%%%% |
3161 | bpr | 90 | |
11544 | obado | 91 | ::You don't need to modify this in general. |
3161 | bpr | 92 | |
93 | \statement{\explain |
||
6946 | bpr | 94 | <div class="wimscenter"> |
3161 | bpr | 95 | \embed{reply 1,\size} |
6946 | bpr | 96 | </div> |
3161 | bpr | 97 | } |
98 | |||
11544 | obado | 99 | :%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5 |
3161 | bpr | 100 | |
13704 | obado | 101 | \answer{The answer}{\datal;\datar}{type=correspond} |
3161 | bpr | 102 |