Subversion Repositories wimsdev

Rev

Rev 13477 | Rev 13714 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13477 Rev 13704
Line 2... Line 2...
2
textarea="data explain"
2
textarea="data explain"
3
 
3
 
4
:Taper la propriété d'un objet choisi aléatoirement dans une liste
4
:Type the property of an object chosen randomly from a list
5
 
5
 
6
<p>
6
<p>
7
On présente un objet tiré au hasard dans une liste et demande de taper sa propriété selon la demande de l'exercice.
7
An item is randomly selected from a list and you are asked to type its property.
8
</p><p>
8
</p><p>
9
Pour construire un exercice avec ce modèle, il suffit de donner la liste d'objets et leurs propriétés.
9
To build an exercise with this model, just give the list of objects and their properties.
10
</p>
10
</p>
11
<p>Author of the model: Gang Xiao <qualite@wimsedu.info></p>
11
<p>Author of the model: Gang Xiao <qualite@wimsedu.info></p>
12
 
12
 
13
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
13
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
14
 
14
 
15
Remove the above header if you destroy the model tags! (The lines starting
15
Remove the above header if you destroy the model tags! (The lines starting
16
with a ':'.) Otherwise the exercise might not be taken back by Createxo.
16
with a ':'.) Otherwise the exercise might not be taken back by Createxo.
17
 
17
 
18
:%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%%
18
:%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%%
19
 
19
 
20
:\title{Propriété tapée}
20
:\title{Typed property}
21
:\author{XIAO, Gang}
21
:\author{XIAO, Gang}
22
:\email{qualite@wimsedu.info}
22
:\email{qualite@wimsedu.info}
23
:\credits{}
23
:\credits{}
24
 
24
 
25
:Size of the field to type.
25
:Size of the field to type.
26
Il faut prévoir suffisamment de place pour la propriété la plus longue.
26
Sufficient space must be provided for the longest property.
27
\integer{size=20}
27
\integer{size=20}
28
 
28
 
29
:Main data.
29
:Main data.
30
<p>Définir un objet par ligne, d'abord le nom de l'objet à afficher, ensuite sa propriété telle qu'elle doit être tapée, séparés par une virgule.
30
<p>Define an object by line, first the name of the object to be displayed, then its property as it should be typed, separated by a comma.
31
</p><p>
31
</p><p>
32
Vous pouvez déclarer des synonymes de propriétés à faire reconnaitre, en les séparant par des traits verticaux (exemple&nbsp;: sombre|foncé).</p>
32
You can declare synonyms of properties to be recognized, separated by vertical lines (example: dark|gloomy).</p>
33
\matrix{data=
33
\matrix{data=
34
bambou,bambous
-
 
35
bijou,bijoux
-
 
36
boeuf,boeufs
34
gift, gifts
37
cadeau,cadeaux
-
 
38
caillou,cailloux
-
 
39
cheval,chevaux
35
pebble, pebbles
40
chou,choux
36
horse, horses
41
ciel,cieux
37
sky, skies
42
clou,clous
38
hole, holes
43
détail,détails
39
child, children
44
oeil,yeux
40
man, men
45
réseau,réseaux
41
woman, women
46
tableau,tableaux
42
mouse, mice
47
travail,travaux
43
tooth, teeth
48
trou,trous
44
foot, feet
49
}
45
}
50
 
46
 
51
:Type of response analysis.
47
:Type of response analysis.
52
Les types <span class="tt">case</span> et <span class="tt">nocase</span> sont surtout adaptés pour les applications linguistiques. Dans les autres cas, préférez <span class="tt">atext</span>.
48
The <span class="tt">case</ span> and <span class="tt">nocase</ span> types are mostly suitable for language applications.
-
 
49
In other cases, prefer <span class="tt"> atext </span>.
53
\text{atype=item(1,case (aucune tolérance d'erreur),
50
\text{atype=item(1,case (no error tolerance),
54
	nocase (tolère minuscule/majuscule),
51
	nocase (tolerate lowercase / uppercase),
55
	atext (ignore pluriel/singulier et articles))}
52
	atext (ignore plural / singular and articles))}
56
 
53
 
57
:Embraced random items
54
:Embraced random items
58
$embraced_randitem
55
$embraced_randitem
59
\text{accolade=item(1,1 yes,
56
\text{accolade=item(1,1 yes,
60
2 no)}
57
2 no)}
Line 66... Line 63...
66
\text{prop=\data[2]}
63
\text{prop=\data[2]}
67
\text{atype=wims(word 1 of \atype)}
64
\text{atype=wims(word 1 of \atype)}
68
 
65
 
69
:%%%%%%%%%%%%% Now the statement in HTML. %%%%%%%%%%%%%%%%%%%%
66
:%%%%%%%%%%%%% Now the statement in HTML. %%%%%%%%%%%%%%%%%%%%
70
 
67
 
71
:Le texte pour expliquer ce qu'il faut faire.
68
:Instructions
72
Pour évoquer l'objet tiré, écrire <span class="tt">\name</span>.
69
To evoke the picked object, write <span class="tt">\name</span>.
73
$embraced_randitem
70
$embraced_randitem
74
\text{explain=
71
\text{explain=
75
Tapez le pluriel du nom <span style="color:blue;font-weight:bold;">\name</span> :
72
Type the plural of the word <span style="color:blue;font-weight:bold;">\name</span>:
76
}
73
}
77
 
74
 
78
:%% Do not modify
75
:%% Do not modify
79
\text{explain=\accolade=1 ? wims(embraced randitem \explain)}
76
\text{explain=\accolade=1 ? wims(embraced randitem \explain)}
80
 
77
 
81
::On n'a pas besoin de modifier l'énoncé directement en général.
78
::One does not need to modify the statement directly in general.
82
 
79
 
83
\statement{
80
\statement{
84
	<label for="reply1" class="oef_explain">\explain</label>
81
	<label for="reply1" class="oef_explain">\explain</label>
85
	<span class="oef_input">
82
	<span class="oef_input">
86
	\embed{r1,\size
83
	\embed{r1,\size
Line 88... Line 85...
88
	</span>
85
	</span>
89
}
86
}
90
 
87
 
91
:%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5
88
:%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5
92
 
89
 
93
\answer{La réponse}{\prop}{type=\atype}
90
\answer{The answer}{\prop}{type=\atype}
94
 
91