Subversion Repositories wimsdev

Rev

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

Rev 13481 Rev 13714
Line 1... Line 1...
1
type=order
1
type=order
2
textarea="data1 data2 data3 data4 data5"
2
textarea="instruction data1 data2 data3 data4 data5"
-
 
3
iEdit="instruction"
3
 
4
 
4
:Mix of letters
5
:Mix of letters
5
<p>Make a word with letters. Up to 5 word lists can be entered.
6
<p>Make a word with letters. Up to 5 word lists can be entered.
6
   A random word in each list is taken each time.
7
   A random word in each list is taken each time.
7
   An indication can be made for each word.</p>
8
   An indication can be made for each word.</p>
Line 22... Line 23...
22
:\credits{}
23
:\credits{}
23
 
24
 
24
:Instructions
25
:Instructions
25
\text{instruction=Compose a word with all the proposed letters.}
26
\text{instruction=Compose a word with all the proposed letters.}
26
 
27
 
27
:Nombre de mots (au maximum 5)
28
:Number of words (maximum 5)
28
Le nombre de mots doit être inférieur à 5 et inférieur au nombre de listes
29
The number of words must be less than 5
29
remplies ci-dessous.
30
 and less than the number of lists completed below.
30
\integer{N=3}
31
\integer{N=3}
31
 
32
 
32
:First word list
33
:First word list
33
Put a word (or group of words) per line, possibly followed by an indication.
34
Put a word (or group of words) per line, possibly followed by an indication.
34
If it is a group of words, replace the space with <span class="tt">_</span>.
35
If it is a group of words, replace the space with <span class="tt">_</span>.
Line 52... Line 53...
52
 
53
 
53
:Fifth word list
54
:Fifth word list
54
\text{data5=}
55
\text{data5=}
55
 
56
 
56
:%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%%
57
:%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%%
57
\css{<style type="text/css">
58
\css{<style>
58
  .word_jumble{
59
  .word_jumble{
59
    font-size:large;
60
    font-size:large;
60
    padding:6px;
61
    padding:6px;
61
    margin-left:10px;
62
    margin-left:10px;
62
    border: 1px solid #555;
63
    border: 1px solid #555;
Line 74... Line 75...
74
\matrix{data2=\data2}
75
\matrix{data2=\data2}
75
\text{mot2=wims(nonempty items \data2[;1])}
76
\text{mot2=wims(nonempty items \data2[;1])}
76
\text{mot2=items(\mot2)>=2 ? shuffle(\mot2)}
77
\text{mot2=items(\mot2)>=2 ? shuffle(\mot2)}
77
\text{mot2=\mot2[1]}
78
\text{mot2=\mot2[1]}
78
\if{\mot2!=}{
79
\if{\mot2!=}{
79
 \text{indication2=wims(select \data2 where column 1 issametext \mot2)}
80
  \text{indication2=wims(select \data2 where column 1 issametext \mot2)}
80
 \text{indication2=\indication2[2]}
81
  \text{indication2=\indication2[2]}
81
 \text{indication2=\indication2 issametext ? xxx}
82
  \text{indication2=\indication2 issametext ? xxx}
82
 \text{mot=wims(append item \mot2 to \mot)}
83
  \text{mot=wims(append item \mot2 to \mot)}
83
 \matrix{indication=wims(append line \indication2 to \indication)}
84
  \matrix{indication=wims(append line \indication2 to \indication)}
84
}
85
}
-
 
86
 
85
\matrix{data3=\data3}
87
\matrix{data3=\data3}
86
\text{mot3=wims(nonempty items \data3[;1])}
88
\text{mot3=wims(nonempty items \data3[;1])}
87
\text{mot3=items(\mot3)>=2 ? shuffle(\mot3)}
89
\text{mot3=items(\mot3)>=2 ? shuffle(\mot3)}
88
\text{mot3=\mot3[1]}
90
\text{mot3=\mot3[1]}
89
\if{\mot3!=}{
91
\if{\mot3!=}{
Line 102... Line 104...
102
  \text{indication4=wims(select \data4 where column 1 issametext \mot4)}
104
  \text{indication4=wims(select \data4 where column 1 issametext \mot4)}
103
  \text{indication4=\indication4[2]}
105
  \text{indication4=\indication4[2]}
104
  \text{indication4=\indication4 issametext ? xxx}
106
  \text{indication4=\indication4 issametext ? xxx}
105
  \text{mot=wims(append item \mot4 to \mot)}
107
  \text{mot=wims(append item \mot4 to \mot)}
106
  \matrix{indication=wims(append line \indication4 to \indication)}
108
  \matrix{indication=wims(append line \indication4 to \indication)}
107
}
109
}
108
 
110
 
109
\matrix{data5=\data5}
111
\matrix{data5=\data5}
110
\text{mot5=wims(nonempty items \data5[;1])}
112
\text{mot5=wims(nonempty items \data5[;1])}
111
\text{mot5=items(\mot5)>=2 ? shuffle(\mot5)}
113
\text{mot5=items(\mot5)>=2 ? shuffle(\mot5)}
112
\text{mot5=\mot5[1]}
114
\text{mot5=\mot5[1]}
Line 125... Line 127...
125
\text{mot=\mot[\bat]}
127
\text{mot=\mot[\bat]}
126
\matrix{indication=\indication[\bat;]}
128
\matrix{indication=\indication[\bat;]}
127
\text{mot1=wims(text expand \mot[1] using 01)}
129
\text{mot1=wims(text expand \mot[1] using 01)}
128
\text{mot1=wims(words2items \mot1)}
130
\text{mot1=wims(words2items \mot1)}
129
\text{mot1=wims(replace internal _ by &nbsp; in \mot1)}
131
\text{mot1=wims(replace internal _ by &nbsp; in \mot1)}
130
 
132
 
131
\text{mot2=wims(text expand \mot[2] using 01)}
133
\text{mot2=wims(text expand \mot[2] using 01)}
132
\text{mot2=wims(words2items \mot2)}
134
\text{mot2=wims(words2items \mot2)}
133
\text{mot2=wims(replace internal _ by &nbsp; in \mot2)}
135
\text{mot2=wims(replace internal _ by &nbsp; in \mot2)}
134
 
136
 
135
\text{mot3=wims(text expand \mot[3] using 01)}
137
\text{mot3=wims(text expand \mot[3] using 01)}
136
\text{mot3=wims(words2items \mot3)}
138
\text{mot3=wims(words2items \mot3)}
137
\text{mot3=wims(replace internal _ by &nbsp; in \mot3)}
139
\text{mot3=wims(replace internal _ by &nbsp; in \mot3)}
138
 
140
 
139
\text{mot4=wims(text expand \mot[4] using 01)}
141
\text{mot4=wims(text expand \mot[4] using 01)}
140
\text{mot4=wims(words2items \mot4)}
142
\text{mot4=wims(words2items \mot4)}
141
\text{mot4=wims(replace internal _ by &nbsp; in \mot4)}
143
\text{mot4=wims(replace internal _ by &nbsp; in \mot4)}
142
 
144
 
143
\text{mot5=wims(text expand \mot[5] using 01)}
145
\text{mot5=wims(text expand \mot[5] using 01)}
144
\text{mot5=wims(words2items \mot5)}
146
\text{mot5=wims(words2items \mot5)}
145
\text{mot5=wims(replace internal _ by &nbsp; in \mot5)}
147
\text{mot5=wims(replace internal _ by &nbsp; in \mot5)}
-
 
148
 
146
\text{Mot=}
149
\text{Mot=}
147
\text{STEP=wims(makelist r x for x=1 to \N)}
150
\text{STEP=wims(makelist r x for x=1 to \N)}
148
\text{STEP=r1}
151
\text{STEP=r1}
149
\nextstep{\STEP}
152
\nextstep{\STEP}
150
 
153
 
151
::You don't need to modify this in general.
154
::You don't need to modify this in general.
152
 
155
 
153
\statement{
156
\statement{
154
  <div class="spacer">
-
 
155
  \for{a=1 to \step-1}{
157
  \for{a=1 to \step-1}{
156
    \if{\a <= \N}{
158
    \if{\a <= \N}{
157
    <span class="word_jumble">
159
      <div class="word_jumble">\Mot[\a;]
158
      \Mot[\a;]
-
 
159
      \if{ \indication[\a;] notsametext xxx }{ <em class="indication">(\indication[\a;])</em>}
160
      \if{ \indication[\a;] notsametext xxx }{<em class="indication">(\indication[\a;])</em>}</div>
160
    </span>
-
 
161
    }
161
    }
162
  }
162
  }
163
  </div>
-
 
164
  \if{\step <= \N}{
163
  \if{\step <= \N}{
165
    <p class="instruction">\instruction</p>
164
    <p class="instruction">\instruction</p>
166
    <div class="wimscenter">
165
    <div class="wimscenter">
167
      \embed{r \step,50 x 50}
166
      \embed{r \step,50 x 50}
168
      \if{ \indication[\step;] notsametext xxx }{
167
      \if{ \indication[\step;] notsametext xxx }{
169
        (<span class="indication">\indication[\step;]</span>)
168
      <span class="indication">(\indication[\step;])</span> }
170
      }
-
 
171
    </div>
169
    </div>
172
  }
170
  }
173
}
171
}
174
 
172
 
175
\answer{}{\mot1}{type=dragfill}{option=nonstop}
173
\answer{}{\mot1}{type=dragfill}{option=nonstop}