Rev 14021 | Rev 14312 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14021 | Rev 14311 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | !if $(replytype$i) iswordof flashcard |
12 | !if $(replytype$i) iswordof flashcard |
13 | !set inputsize1=!word 1 of $inputsize |
13 | !set inputsize1=!word 1 of $inputsize |
14 | !else |
14 | !else |
15 | !set inputsize1=$inputsize |
15 | !set inputsize1=$inputsize |
16 | !endif |
16 | !endif |
17 | - | ||
18 | !!! i -> iii |
17 | !!! i -> iii |
19 | !!! i_ -> i dans print version |
18 | !!! i_ -> i dans print version |
20 | !if $printing=yes or $cmd=hint |
19 | !if $printing=yes or $cmd=hint |
21 | !set cnt_$iii= !linecnt $(Rg$iii) |
20 | !set cnt_$iii= !linecnt $(Rg$iii) |
22 | !! i__ is the question number |
21 | !! i__ is the question number |
Line 45... | Line 44... | ||
45 | !else |
44 | !else |
46 | !set prompt_=!line $i__ of $(Rg$iii) |
45 | !set prompt_=!line $i__ of $(Rg$iii) |
47 | !endif |
46 | !endif |
48 | !set prompt_=!item $inputsize1 of $prompt_ |
47 | !set prompt_=!item $inputsize1 of $prompt_ |
49 | !set prompt_=<span style="display:inline-block;">$prompt_</span> |
48 | !set prompt_=<span style="display:inline-block;">$prompt_</span> |
50 | !endif |
49 | !endif |
51 | !else |
50 | !else |
52 | !if $prompt_=$empty |
51 | !if $prompt_=$empty |
53 | !set prompt_=!line $i__ of $(Rg$iii) |
52 | !set prompt_=!line $i__ of $(Rg$iii) |
54 | !set prompt_=!items2lines $prompt_ |
53 | !set prompt_=!items2lines $prompt_ |
55 | !set prompt__=$prompt_ |
54 | !set prompt__=$prompt_ |
56 | !if $(replytype$i__) iswordof menu checkbox radio click |
55 | !if $(replytype$i__) iswordof menu checkbox radio click |
Line 81... | Line 80... | ||
81 | by </div>$ $<div class="drag_label" style="display:inline-block;"> \ |
80 | by </div>$ $<div class="drag_label" style="display:inline-block;"> \ |
82 | in <div class="drag_label" style="display:inline-block;">$(prompt_$iii)</div> |
81 | in <div class="drag_label" style="display:inline-block;">$(prompt_$iii)</div> |
83 | !endif |
82 | !endif |
84 | !reset prompt_ |
83 | !reset prompt_ |
85 | !endif |
84 | !endif |
86 | !endif |
85 | !endif |
87 | !endif |
86 | !endif |
88 | !else |
87 | !else |
89 | !set prompt_=!line $i__ of $(Rg$iii) |
88 | !set prompt_=!line $i__ of $(Rg$iii) |
90 | !if $(replytype$i__) iswordof compose reorder |
89 | !if $(replytype$i__) iswordof compose reorder |
91 | !set prompt_=!shuffle $prompt_ |
90 | !set prompt_=!shuffle $prompt_ |
Line 116... | Line 115... | ||
116 | !set t_=!translate a to r in $t_ |
115 | !set t_=!translate a to r in $t_ |
117 | !set n_=!text select 0123456789()+-* in $n_ |
116 | !set n_=!text select 0123456789()+-* in $n_ |
118 | !set n_=$[$n_] |
117 | !set n_=$[$n_] |
119 | !bound n_ between integer 1 and 100 default $ |
118 | !bound n_ between integer 1 and 100 default $ |
120 | !if $t_ notitemof r,c or $n_=$empty |
119 | !if $t_ notitemof r,c or $n_=$empty |
121 | !exit |
120 | !exit |
122 | !endif |
121 | !endif |
123 | 122 | ||
124 | !if $t_=c and $(choicelist$n_)=$empty or\ |
123 | !if $t_=c and $(choicelist$n_)=$empty or\ |
125 | $t_=r and $(replygood$n_)=$empty |
124 | $t_=r and $(replygood$n_)=$empty |
126 | !exit |
125 | !exit |
127 | !endif |
126 | !endif |
128 | 127 | ||
129 | !if $t_$n_ notitemof $embedded |
128 | !if $t_$n_ notitemof $embedded |
130 | !set embedded=!append item $t_$n_ to $embedded |
129 | !set embedded=!append item $t_$n_ to $embedded |
131 | !set embcnt=!itemcnt $embedded |
130 | !set embcnt=!itemcnt $embedded |
132 | !endif |
131 | !endif |
133 | !set i=$n_ |
132 | !set i=$n_ |
134 | - | ||
135 | !if $q_form=yes |
133 | !if $q_form=yes |
136 | !if $t_=c |
134 | !if $t_=c |
137 | !set p_=$ch_choose,$(choicelist$i) |
135 | !set p_=$ch_choose,$(choicelist$i) |
138 | !if $idontknow>0 and noidontknow notwordof $(choiceoption$i) |
136 | !if $idontknow>0 and noidontknow notwordof $(choiceoption$i) |
139 | !set p_=$p_,$ch_noidea |
137 | !set p_=$p_,$ch_noidea |
Line 151... | Line 149... | ||
151 | !endif |
149 | !endif |
152 | !endif |
150 | !endif |
153 | !formselect choice$i from 0 to $[$N_-1] prompt $p_ |
151 | !formselect choice$i from 0 to $[$N_-1] prompt $p_ |
154 | !set choice$i=$C_ |
152 | !set choice$i=$C_ |
155 | !else |
153 | !else |
- | 154 | !if $thisstep=$empty or r$n_ isitemof $thisstep |
|
156 | !read anstype/$(replytype$i).input noprompt |
155 | !read anstype/$(replytype$i).input noprompt |
- | 156 | !else |
|
- | 157 | XXXX |
|
- | 158 | !endif |
|
157 | !endif |
159 | !endif |
158 | !else |
160 | !else |
159 | !distribute item oef_indgood, oef_indbad, oef_indforget, oef_indneutral, oef_empty, oef_indprec, oef_indpartial\ |
161 | !distribute item oef_indgood, oef_indbad, oef_indforget, oef_indneutral, oef_empty, oef_indprec, oef_indpartial\ |
160 | into colorr_good, colorr_bad, colorr_forget, colorr_neutral, colorr_none, colorr_prec, colorr_partial |
162 | into colorr_good, colorr_bad, colorr_forget, colorr_neutral, colorr_none, colorr_prec, colorr_partial |
161 | !set cl=colorr_none |
163 | !set cl=colorr_none |