Subversion Repositories wimsdev

Rev

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