Rev 15179 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11377 | bpr | 1 | type=order |
13716 | obado | 2 | textarea="data instruction" |
3 | iEdit="instruction" |
||
3426 | bpr | 4 | |
13765 | bpr | 5 | :Événements à placer correctement sur une frise chronologique. |
13488 | obado | 6 | <p class="wims_credits"> |
15179 | lemaire | 7 | Auteur du modèle : <a href="mailto:bernadette.m.riou@orange.fr">Bernadette Perrin-Riou</a> |
3426 | bpr | 8 | </p> |
9 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
10 | |||
11 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
||
12 | (Ce sont les lignes qui commencent par un ':'.) |
||
13 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
14 | |||
15 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
16 | :\title{Frise chronologique} |
||
5147 | bpr | 17 | :\author{Bernadette, Perrin-Riou} |
5724 | bpr | 18 | :\email{} |
19 | :\credits{} |
||
13488 | obado | 20 | |
3426 | bpr | 21 | :Consigne |
22 | \text{instruction=Mettre les dates en bas et les événements correspondants sur la ligne du haut.} |
||
13488 | obado | 23 | |
3426 | bpr | 24 | :Nombre de mots maximum (maximum 10) |
25 | \text{N=5} |
||
13488 | obado | 26 | |
5744 | bpr | 27 | :Couleur de la flèche |
3426 | bpr | 28 | \text{couleur=orange} |
13488 | obado | 29 | |
3426 | bpr | 30 | :Largeur des étiquettes |
31 | \text{facteur=100} |
||
13488 | obado | 32 | |
3426 | bpr | 33 | :Hauteur des étiquettes |
34 | \integer{height=100} |
||
13488 | obado | 35 | |
5744 | bpr | 36 | :Largeur de la flèche |
37 | Mettre un entier entre 1 et 3 |
||
38 | \integer{wi=1} |
||
13488 | obado | 39 | |
7993 | bpr | 40 | :Utilise les deux items des données principales (0), seulement la première colonne (1), seulement la deuxième colonne (2), affiche la première colonne et demande la première colonne (3). |
3541 | bpr | 41 | \text{choix=0} |
13488 | obado | 42 | |
3426 | bpr | 43 | :Données principales. |
5129 | bpr | 44 | Mettre les données dans l'ordre où elles doivent apparaître. |
3426 | bpr | 45 | \text{data=1515,Bataille de Marignan |
46 | 1680,Création de la Comédie Française |
||
47 | 1789,Révolution française |
||
48 | 1830,Les Trois Glorieuses |
||
49 | 1831,Révolte des Canuts à Lyon |
||
50 | 1848,Décret abolissant l'esclavage |
||
51 | 1889,Inauguration de la tour Eiffel à Paris |
||
52 | 1944,Les femmes acquièrent le droit de vote |
||
53 | 1981,Abolition de la peine de mort} |
||
54 | |||
7167 | bpr | 55 | :Mise en aléatoire par des accolades emboitables |
56 | $embraced_randitem |
||
57 | \text{accolade=item(1,1 oui, |
||
58 | 2 non)} |
||
59 | |||
3426 | bpr | 60 | :%%%%%%%%%%%%%% Rien à modifier ensuite %%%%%%%%%%%%%%%% |
7167 | bpr | 61 | \text{accolade=wims(word 1 of \accolade)} |
3426 | bpr | 62 | \real{M=\N-0.3} |
63 | \text{xrange=-1,\N+1} |
||
7129 | bpr | 64 | \text{yrange=\choix iswordof 0 ? -5,5:-2,5} |
3541 | bpr | 65 | \text{yrange=\choix=1 ? -5,2} |
7129 | bpr | 66 | \text{yrange=\choix=3 ? -5,4} |
3426 | bpr | 67 | \text{cnt=rows(\data)} |
68 | \text{shu=shuffle(\cnt)} |
||
69 | \text{shu=\shu[1..\N]} |
||
70 | \text{shu=wims(sort numeric item \shu)} |
||
71 | \text{data=row([\shu],\data)} |
||
7167 | bpr | 72 | \text{data=\accolade=1 ? wims(embraced randitem \data)} |
3426 | bpr | 73 | \matrix{rep=\data} |
74 | \integer{size=(1.5*\facteur)*(\M+1)} |
||
75 | \integer{height2=4*\height} |
||
76 | \text{size=\size,\height2} |
||
77 | \text{fleche=xrange \xrange |
||
78 | yrange \yrange |
||
18080 | bpr | 79 | polyline \couleur,\M,\wi/2,-1,\wi/2,-1,-\wi/2,\M,-\wi/2,\M,-\wi,\N+0.5,0,\M,\wi,\M,\wi/2 |
7129 | bpr | 80 | fill 0,0,\couleur |
3426 | bpr | 81 | } |
82 | |||
3541 | bpr | 83 | \text{STEP=\choix=0 ? wims(values x for x=1 to 2*\N)} |
84 | \text{STEP=\choix=1 ? wims(values 2*x-1 for x=1 to \N)} |
||
7129 | bpr | 85 | \text{STEP=\choix=2 or \choix=3? wims(values 2*x for x=1 to \N)} |
3541 | bpr | 86 | \text{STEP=wims(makelist r x for x in \STEP)} |
3426 | bpr | 87 | \steps{\STEP} |
88 | \text{positionbas=} |
||
89 | \text{positionhaut=} |
||
7129 | bpr | 90 | \text{positionbas2=} |
3426 | bpr | 91 | \for{j=0 to \N-1}{ |
7129 | bpr | 92 | \text{fleche=\choix=0 or \choix=1 or \choix=3 ? \fleche |
18080 | bpr | 93 | segment \j-0.1,-\wi/2,\j-0.1,-2*\wi,\couleur} |
7129 | bpr | 94 | \text{fleche=\choix=0 or \choix=2 or \choix=3? \fleche |
18080 | bpr | 95 | segment \j-0.1,\wi/2,\j-0.1,2*\wi,\couleur} |
3426 | bpr | 96 | \text{ans=pari([2*\j+1,2*\j+2])} |
7129 | bpr | 97 | \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)} |
98 | \text{positionbas=\positionbas |
||
99 | r\ans[1],\v[1] x \v[2]} |
||
3426 | bpr | 100 | \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)} |
7129 | bpr | 101 | \text{positionbas2=\positionbas2 |
102 | r\ans[2],\v[1] x \v[2]} |
||
103 | \text{v=slib(draw/convpixel \j-0.5,4,\size,\xrange,\yrange,0,pixels)} |
||
104 | \text{positionhaut=\positionhaut |
||
3426 | bpr | 105 | r\ans[2],\v[1] x \v[2]} |
7129 | bpr | 106 | |
107 | \text{fleche=\choix=3? \fleche |
||
108 | text black, \j-0.2,3,medium,\data[\j+1;1]} |
||
3426 | bpr | 109 | } |
7129 | bpr | 110 | \text{position=\choix=1 or \choix=0? \positionbas} |
111 | \text{position=\choix=2 or \choix=0? \position |
||
3426 | bpr | 112 | \positionhaut} |
7129 | bpr | 113 | \text{position=\choix=3? \positionbas2} |
3426 | bpr | 114 | \text{urlfleche=draw(\size |
115 | \fleche)} |
||
7129 | bpr | 116 | \statement{ |
117 | \instruction |
||
5744 | bpr | 118 | <div class="wimscenter"> |
3426 | bpr | 119 | \special{imagefill \urlfleche,\size[1]x\size[2],\facteur x \height |
120 | \position} |
||
5744 | bpr | 121 | </div> |
3426 | bpr | 122 | } |
3541 | bpr | 123 | |
3426 | bpr | 124 | \answer{}{\rep[1;1]}{type=clickfill}{option=shuffle} |
125 | \answer{}{\rep[1;2]}{type=clickfill}{option=shuffle} |
||
126 | \answer{}{\rep[2;1]}{type=clickfill}{option=shuffle} |
||
127 | \answer{}{\rep[2;2]}{type=clickfill}{option=shuffle} |
||
128 | \answer{}{\rep[3;1]}{type=clickfill}{option=shuffle} |
||
129 | \answer{}{\rep[3;2]}{type=clickfill}{option=shuffle} |
||
130 | \answer{}{\rep[4;1]}{type=clickfill}{option=shuffle} |
||
131 | \answer{}{\rep[4;2]}{type=clickfill}{option=shuffle} |
||
132 | \answer{}{\rep[5;1]}{type=clickfill}{option=shuffle} |
||
133 | \answer{}{\rep[5;2]}{type=clickfill}{option=shuffle} |
||
134 | \answer{}{\rep[6;1]}{type=clickfill}{option=shuffle} |
||
135 | \answer{}{\rep[6;2]}{type=clickfill}{option=shuffle} |
||
136 | \answer{}{\rep[7;1]}{type=clickfill}{option=shuffle} |
||
137 | \answer{}{\rep[7;2]}{type=clickfill}{option=shuffle} |
||
138 | \answer{}{\rep[8;1]}{type=clickfill}{option=shuffle} |
||
139 | \answer{}{\rep[8;2]}{type=clickfill}{option=shuffle} |
||
140 | \answer{}{\rep[9;1]}{type=clickfill}{option=shuffle} |
||
141 | \answer{}{\rep[9;2]}{type=clickfill}{option=shuffle} |
||
142 | \answer{}{\rep[10;1]}{type=clickfill}{option=shuffle} |
||
7129 | bpr | 143 | \answer{}{\rep[10;2]}{type=clickfill}{option=shuffle} |