Subversion Repositories wimsdev

Rev

Rev 13715 | Blame | Compare with Previous | Last modification | View Log | RSS feed

type=select
textarea="instruction data"
iEdit="instruction"

:Ocultar ciertas palabras en una oración (flashcard).

Ciertas etiquetas de entre las que se muestran deben ocultarse ("dar la vuelta") haciendo clic sobre ellas.
<p class="wims_credits">
Autor del modelo : <a href="mailto:bernadette.m.riou@orange.fr">Bernadette Perrin-Riou</a>
</p>
:%%%%%%%%%%%%%%%%%      ATENCIÓN      %%%%%%%%%%%%%%%%%%%%

Remove the above header if you destroy the model tags i.e. the lines starting
with a ':'. Otherwise the exercise might not be recognised by Createxo.

:%%%%%%%% Example parameters to be redefined %%%%%%%%%%%%%%%%%

:\title{Ocultar etiquetas}
:\author{Csilla, Ducrocq}
:\email{csilla.ducrocq@u-psud.fr}
:\credits{}

:Enunciado
\text{instruction=Ocultar los adjetivos haciendo clic en las etiquetas que los contienen.}

:Número de oraciones que se muestran a la vez (máximo 5)
\text{N=2}

:Nombre del fichero
Solo ingrese un nombre si desea crear un archivo de datos por separado
(en un módulo OEF).
<pre>

 &#58;El gato ??negro?? se comió el ratón ??blanco?? rápidamente.
 &#58;Hay una casa ??verde?? en la ??pequeña?? colina.
</pre>
En este caso, los datos principales no serán tomados en consideración.
de lo contrario, debe ingresar los datos principales a continuación.

\text{file=}

:Datos principales.
Añadir ?? antes y después de las palabras que deben ocultarse en las oraciones.

\text{data=El gato ??negro?? se comió el ratón ??blanco?? rápidamente.
Hay una casa ??verde?? en la ??pequeña?? colina.
Tengo flores ??rojas?? y ??azules?? meciéndose en mi jardín.
Miró al ??joven?? muchacho tristemente.}

:Se acepta texto aleatorio puesto entre llaves
$embraced_randitem
\text{accolade=item(1,1 sí,
2 no)}

:%%%%%%%%%%%%%% Nothing to modify before the statement %%%%%%%%%%%%%%%%
\text{accolade=wims(word 1 of \accolade)}

\integer{N=min(\N,5)}
\if{\file notsametext}{
  \integer{datacnt=wims(recordcnt \file)}
  \integer{N=min(\N,\datacnt)}
  \text{choix=shuffle(\datacnt)}
  \text{choix=\choix[1..\N]}
  \text{data=}
  \for{s in \choix}{
    \text{data=\data
wims(record \s of \file)}
   }
  }{
  \integer{M=rows(\data)}
  \integer{N=min(\N,\M)}
  \integer{N=min(\N,10)}
  \text{liste=shuffle(\M)}
  \text{liste=\liste[1..\N]}
  \matrix{data=\data}
  \matrix{data=\data[\liste;]}
}
\text{Numero=}
\text{Texte=}
\text{cnt=}
\text{data=\accolade=1 ?wims(embraced randitem \data)}
\text{data=wims(replace internal ' by &#146; in \data)}
\for{u=1 to \N}{
  \matrix{texte=slib(text/markgroup \data[\u;])}
  \matrix{numero=\texte[1..-4;]}
  \text{cnt_mot = rows(\numero)}
  \text{numero = wims(rows2lines \numero)}
  \text{numero = wims(lines2items \numero)}
  \text{Numero = wims(append line \numero to \Numero)}
  \text{texte = \texte[-3;]}
  \text{cc=items(\texte)}
  \text{cnt = wims(append item  \cc to \cnt)}
  \text{Texte=wims(append line \texte to \Texte)}
}
\matrix{Texte=\Texte}
\matrix{Numero=\Numero}
\text{STEP=wims(makelist r x for x=1 to \N)}
\steps{\STEP}
\statement{\instruction
\if{\N=1}{<div class="emptyline"> </div>
<div class="wimscenter">\for{j=1 to \cnt}{
   \embed{r 1,\j}
 }</div>
}{
 \for{ss=1 to \N}{<p> \ss :</p>
 <div class="wimscenter">\for{j=1 to \cnt[\ss]}{
   \embed{r \ss,\j}
 }</div>
 }
}
}
\answer{1}{\Numero[1;];\Texte[1;];&nbsp;}{type=flashcard}{option=show noanalyzeprint}
\answer{2}{\Numero[2;];\Texte[2;];&nbsp;}{type=flashcard}{option=show noanalyzeprint}
\answer{3}{\Numero[3;];\Texte[3;];&nbsp;}{type=flashcard}{option=show noanalyzeprint}
\answer{4}{\Numero[4;];\Texte[4;];&nbsp;}{type=flashcard}{option=show noanalyzeprint}
\answer{5}{\Numero[5;];\Texte[5;];&nbsp;}{type=flashcard}{option=show noanalyzeprint}