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 | : |
4 | :Type the property of an object chosen randomly from a list |
5 | 5 | ||
6 | <p> |
6 | <p> |
7 |
|
7 | An item is randomly selected from a list and you are asked to type its property. |
8 | </p><p> |
8 | </p><p> |
9 |
|
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{ |
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 |
|
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> |
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 |
|
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 |
|
34 | gift, gifts |
37 | cadeau,cadeaux |
- | |
38 | caillou,cailloux |
- | |
39 |
|
35 | pebble, pebbles |
40 |
|
36 | horse, horses |
41 |
|
37 | sky, skies |
42 |
|
38 | hole, holes |
43 |
|
39 | child, children |
44 |
|
40 | man, men |
45 |
|
41 | woman, women |
46 |
|
42 | mouse, mice |
47 |
|
43 | tooth, teeth |
48 |
|
44 | foot, feet |
49 | } |
45 | } |
50 | 46 | ||
51 | :Type of response analysis. |
47 | :Type of response analysis. |
52 |
|
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 ( |
50 | \text{atype=item(1,case (no error tolerance), |
54 | nocase ( |
51 | nocase (tolerate lowercase / uppercase), |
55 | atext (ignore |
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 | : |
68 | :Instructions |
72 |
|
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 |
|
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 | :: |
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{ |
90 | \answer{The answer}{\prop}{type=\atype} |
94 | 91 |