Subversion Repositories wimsdev

Rev

Rev 13716 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

type=order
textarea="data instruction"
iEdit="instruction"

:Cronologia
Esdeveniments per ordenar-los cronològicament.
<p class="wims_credits">
Autor del model: <a href="mailto:bernadette.m.riou@orange.fr">Bernadette Perrin-Riou</a>
</p>
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%

Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle !
(Ce sont les lignes qui commencent par un ':'.)
Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo.

:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
:\title{Cronologia}
:\author{Bernadette, Perrin-Riou}
:\email{}
:\credits{}

:Enunciat
\text{instruction=Mettre les dates en bas et les événements correspondants sur la ligne du haut.}

:Nombre màxim de paraules (màxim 10)
\text{N=5}

:Color de la fletxa
\text{couleur=orange}

:Amplada de les etiquetes
\text{facteur=100}

:Alçada de les etiquetes
\integer{height=100}

:Gruix de la fletxa
Poseu un enter entre 1 i 3
\integer{wi=1}

:Utilitza els dos elements de les dades principals (0), només la primera columna (1), només la segona columna (2), mostra la primera columna i demana la primera columna (3).
\text{choix=0}

:Dades principals.
Introduïu les dades en l'ordre que haurien d'aparèixer.
\text{data=1515,Bataille de Marignan
1680,Création de la Comédie Française
1789,Révolution française
1830,Les Trois Glorieuses
1831,Révolte des Canuts à Lyon
1848,Décret abolissant l'esclavage
1889,Inauguration de la tour Eiffel à Paris
1944,Les femmes acquièrent le droit de vote
1981,Abolition de la peine de mort}

:S'accepta text aleatori posat entre claus
$embraced_randitem
\text{accolade=item(1,1 sí,
2 no)}

:%%%%%%%%%%%%%% Rien à modifier ensuite %%%%%%%%%%%%%%%%
\text{accolade=wims(word 1 of \accolade)}
\real{M=\N-0.3}
\text{xrange=-1,\N+1}
\text{yrange=\choix iswordof 0 ? -5,5:-2,5}
\text{yrange=\choix=1 ? -5,2}
\text{yrange=\choix=3 ? -5,4}
\text{cnt=rows(\data)}
\text{shu=shuffle(\cnt)}
\text{shu=\shu[1..\N]}
\text{shu=wims(sort numeric item \shu)}
\text{data=row([\shu],\data)}
\text{data=\accolade=1 ? wims(embraced randitem \data)}
\matrix{rep=\data}
\integer{size=(1.5*\facteur)*(\M+1)}
\integer{height2=4*\height}
\text{size=\size,\height2}
\text{fleche=xrange \xrange
yrange \yrange
lines \couleur,\M,\wi/2,-1,\wi/2,-1,-\wi/2,\M,-\wi/2,\M,-\wi,\N+0.5,0,\M,\wi,\M,\wi/2
fill 0,0,\couleur
}

\text{STEP=\choix=0 ? wims(values x for x=1 to 2*\N)}
\text{STEP=\choix=1 ? wims(values 2*x-1 for x=1 to \N)}
\text{STEP=\choix=2 or \choix=3? wims(values 2*x for x=1 to \N)}
\text{STEP=wims(makelist r x for x in  \STEP)}
\steps{\STEP}
\text{positionbas=}
\text{positionhaut=}
\text{positionbas2=}
\for{j=0 to \N-1}{
  \text{fleche=\choix=0 or \choix=1 or \choix=3 ? \fleche
  line \j-0.1,-\wi/2,\j-0.1,-2*\wi,\couleur}
  \text{fleche=\choix=0 or \choix=2 or \choix=3? \fleche
  line \j-0.1,\wi/2,\j-0.1,2*\wi,\couleur}
  \text{ans=pari([2*\j+1,2*\j+2])}
  \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)}
  \text{positionbas=\positionbas
 r\ans[1],\v[1] x \v[2]}
 \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)}
 \text{positionbas2=\positionbas2
 r\ans[2],\v[1] x \v[2]}
  \text{v=slib(draw/convpixel \j-0.5,4,\size,\xrange,\yrange,0,pixels)}
  \text{positionhaut=\positionhaut
r\ans[2],\v[1] x \v[2]}

 \text{fleche=\choix=3? \fleche
 text black, \j-0.2,3,medium,\data[\j+1;1]}
 }
  \text{position=\choix=1 or \choix=0? \positionbas}
  \text{position=\choix=2 or \choix=0? \position
 \positionhaut}
 \text{position=\choix=3? \positionbas2}
 \text{urlfleche=draw(\size
\fleche)}
\statement{
\instruction
<div class="wimscenter">
\special{imagefill \urlfleche,\size[1]x\size[2],\facteur x \height
\position}
</div>
}

\answer{}{\rep[1;1]}{type=clickfill}{option=shuffle}
\answer{}{\rep[1;2]}{type=clickfill}{option=shuffle}
\answer{}{\rep[2;1]}{type=clickfill}{option=shuffle}
\answer{}{\rep[2;2]}{type=clickfill}{option=shuffle}
\answer{}{\rep[3;1]}{type=clickfill}{option=shuffle}
\answer{}{\rep[3;2]}{type=clickfill}{option=shuffle}
\answer{}{\rep[4;1]}{type=clickfill}{option=shuffle}
\answer{}{\rep[4;2]}{type=clickfill}{option=shuffle}
\answer{}{\rep[5;1]}{type=clickfill}{option=shuffle}
\answer{}{\rep[5;2]}{type=clickfill}{option=shuffle}
\answer{}{\rep[6;1]}{type=clickfill}{option=shuffle}
\answer{}{\rep[6;2]}{type=clickfill}{option=shuffle}
\answer{}{\rep[7;1]}{type=clickfill}{option=shuffle}
\answer{}{\rep[7;2]}{type=clickfill}{option=shuffle}
\answer{}{\rep[8;1]}{type=clickfill}{option=shuffle}
\answer{}{\rep[8;2]}{type=clickfill}{option=shuffle}
\answer{}{\rep[9;1]}{type=clickfill}{option=shuffle}
\answer{}{\rep[9;2]}{type=clickfill}{option=shuffle}
\answer{}{\rep[10;1]}{type=clickfill}{option=shuffle}
\answer{}{\rep[10;2]}{type=clickfill}{option=shuffle}