Subversion Repositories wimsdev

Rev

Rev 12172 | Rev 13716 | 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
5275 bpr 2
textarea="data"
3
 
12172 mquerol 4
:Escriure la paraula que s'ha escoltat (des dels àudios existents al servidor WIMS).
5275 bpr 5
 
12172 mquerol 6
Es proposa un àudio i s'ha d'escriure el text exactament. L'àudio s'agafa
7
de la base de dades d'àudio de paraules registrades de WIMS. Si l'exercici es troba en una classe,
8
amb una adaptació, es pot utilitzar amb àudios posats a la classe.
9
<p>
10
Per construir un exercici amb aquest model, simplement escriviu la llista de
11
paraules sempre que existeixen a la base d'àudio (per comprovar-ho, escriviu
12
swac al motor de cerca i utilitzeu l'eina proposada).
5276 bpr 13
</p><p>
12172 mquerol 14
Per obtenir més possibilitats, utilitzeu Quicktool.
13476 obado 15
</p><p class="wims_credits">
12172 mquerol 16
Autor del model: Bernadette Perrin-Riou <bpr@math.u-psud.fr>
5275 bpr 17
</p>
18
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
19
 
20
Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle !
21
(Ce sont les lignes qui commencent par un ':'.)
22
Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo.
23
 
24
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
25
 
26
 
12172 mquerol 27
:\title{Escoltar i escriure}
5275 bpr 28
:\author{Bernadette, Perrin-Riou}
29
:\email{bpr@math.u-psud.fr}
12172 mquerol 30
:\credits{}
13476 obado 31
 
12172 mquerol 32
:Enunciat
33
\text{instruction=Escriviu la paraula oïda, sense errors ortogràfics.}
5275 bpr 34
 
12172 mquerol 35
:Llista de paraules
5275 bpr 36
\text{liste = doctor,teacher,journalist,policeman, fireman, postman}
37
 
12172 mquerol 38
:Llengua d'àudio: les opcions possibles són <span class="tt">fra</span>, <span class="tt">eng</span>,  <span class="tt">dut</span> (i altres amb menys possibilitats  <span class="tt">pol</span>,  <span class="tt">wol</span>,  <span class="tt">deu</span>,  <span class="tt">swe</span>)
5275 bpr 39
\text{lang = eng}
13476 obado 40
 
12172 mquerol 41
:La mida vertical de les caixes en nombre de caràcters
5275 bpr 42
\integer{size=12}
13476 obado 43
 
12172 mquerol 44
:Depenent de l'opció, es proposen totes les paraules o una sola a l'atzar
45
\text{choix=item(1,1 totes,
46
2 una sola)}
5275 bpr 47
 
48
:%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%%
12172 mquerol 49
\text{choix=wims(word 1 of \choix)}
50
\text{Audio =}
51
\text{mots=\choix=1 ? shuffle(randrow(\liste)): randitem(randrow(\liste))}
52
\integer{cnt=items(\mots)}
53
\integer{cnt=min(10,\cnt)}
54
\for{j=1 to \cnt}{
55
  \text{audio = slib(lang/swac \mots[\j],\lang)}
56
  \text{Audio = wims(append item \audio[1;1] to \Audio)}
57
}
58
\text{etape=wims(makelist r x for x=1 to \cnt)}
59
\text{etape=wims(replace , by ; in \etape)}
60
\steps{\etape}
5275 bpr 61
 
62
\statement{
11375 bpr 63
\instruction
12172 mquerol 64
<div class="wimscenter">\Audio[\step]</div>
5275 bpr 65
 
6946 bpr 66
<div class="wimscenter">
12172 mquerol 67
 \embed{r \step, \size
5275 bpr 68
 default
6946 bpr 69
 autocomplete="off"}
70
</div>
5275 bpr 71
}
12172 mquerol 72
\answer{}{\mots[1]}{type=case}{option=nonstop}
73
\answer{}{\mots[2]}{type=case}{option=nonstop}
74
\answer{}{\mots[3]}{type=case}{option=nonstop}
75
\answer{}{\mots[4]}{type=case}{option=nonstop}
76
\answer{}{\mots[5]}{type=case}{option=nonstop}
77
\answer{}{\mots[6]}{type=case}{option=nonstop}
78
\answer{}{\mots[7]}{type=case}{option=nonstop}
79
\answer{}{\mots[8]}{type=case}{option=nonstop}
80
\answer{}{\mots[9]}{type=case}{option=nonstop}
81
\answer{}{\mots[10]}{type=case}{option=nonstop}