%% This file is generated by preprocessor!
%% Do not edit it by hand.
%% Edit the source file cpp/fill.cpp.



\language{en}
\author{XIAO Gang}
\email{xiao@unice.fr}
\format{html}
\text{data=wims(record 0 of table)}
\integer{end=rows(\data)}
\integer{confparm1=\confparm1 notitemof 1,2,3,4?0}
\integer{confparm2=\confparm2 notitemof 1,2,3,4?0}
\text{empty=}
\integer{confparm3=\confparm3 issametext \empty or \confparm3<7 or
 \confparm3>\end?54}
\text{list=wims(values x for x=1 to \end)}
\text{confparm4=wims(listintersect \confparm4 and \list)}
\integer{given=\confparm1>0?\confparm1:randint(1..4)}
\integer{cp=\confparm2=\confparm1?0:\confparm2}
\text{remain=wims(listcomplement \given in 1,2,3,4)}
\text{remain=\candouble issametext yes and \given != 1?\given,\remain}
\integer{ask=\cp>0 and \cp isitemof \remain?\cp:randitem(\remain)}
\integer{redund=0}
 \integer{redund=2}
\title{Coloca 6 + 2 casillas}
\integer{cnt=wims(word 1 of 6 + 2)}
\text{Pdata=wims(record 0 of position)}
\text{pdata=\Pdata}
\text{empty=}
\if{\confparm4 notsametext \empty and \selective notsametext no}{
 \text{pdata=row(\confparm4,\pdata)}
}
\text{totname=column(3,\pdata)}
\text{totsymbole=column(2,\pdata)}
\integer{pdatacnt=min(\confparm3,rows(\pdata))}
\integer{cnt=min(\cnt,\pdatacnt)}
\text{sh=item(1..\cnt+\redund,shuffle(\pdatacnt))}
\text{sh=wims(sort numeric items \sh)}
\text{data=row(\sh,\pdata)}
\text{symb=\data[;2]}
\text{rsymb=\redund>0 and \pdatacnt>\cnt?;\symb[\cnt+1..\cnt+\redund]:}
text{symb=wims(replace internal , by </small>,<small> in <small>\symb</small>)}
\text{fields=}
\integer{xs=35}
\integer{ys=30}
\for{t=1 to \cnt}{
 \integer{x=\data[\t;3]>8?\data[\t;4]*\xs+\xs*2+1:\data[\t;4]*\xs+1}
 \integer{y=\data[\t;3]>8?\data[\t;3]*\ys+6:\data[\t;3]*\ys+1}
 \text{fields=\fields
r\t,\x x \y}
}
\text{size=\xs-1 x \ys-1}
\text{answers=item(1..\cnt,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15,r16,r17,r18,r19,r20)}
\steps{\answers}
\statement{Coloca los símbolos dados en la tabla siguiente.
<p> <table border=0><tr><td>
\special{imagefill \imagedir/table2.gif,700x360,\size
\fields
}
</td></tr></table>
}
\text{size=\xs x \ys-1}
\answer{Box 1}{\symb[1]\rsymb}{type=dragfill}
\answer{Box 2}{\symb[2]}{type=dragfill}
\answer{Box 3}{\symb[3]}{type=dragfill}
\answer{Box 4}{\symb[4]}{type=dragfill}
\answer{Box 5}{\symb[5]}{type=dragfill}
\answer{Box 6}{\symb[6]}{type=dragfill}
\answer{Box 7}{\symb[7]}{type=dragfill}
\answer{Box 8}{\symb[8]}{type=dragfill}
\answer{Box 9}{\symb[9]}{type=dragfill}
\answer{Box 10}{\symb[10]}{type=dragfill}
\answer{Box 11}{\symb[11]}{type=dragfill}
\answer{Box 12}{\symb[12]}{type=dragfill}
\answer{Box 13}{\symb[13]}{type=dragfill}
\answer{Box 14}{\symb[14]}{type=dragfill}
\answer{Box 15}{\symb[15]}{type=dragfill}
\answer{Box 16}{\symb[16]}{type=dragfill}
\answer{Box 17}{\symb[17]}{type=dragfill}
\answer{Box 18}{\symb[18]}{type=dragfill}
\answer{Box 19}{\symb[19]}{type=dragfill}
\answer{Box 20}{\symb[20]}{type=dragfill}
