Rev 13716 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 11360 | bpr | 1 | type=select |
| 13716 | obado | 2 | textarea="instruction data" |
| 3 | iEdit="instruction" |
||
| 4096 | bpr | 4 | |
| 5 | :Cacher certains mots d'une phrase (type flashcard). |
||
| 6 | |||
| 7 | Des étiquettes sont présentées. Il s'agit d'en cacher certaines. |
||
| 13475 | obado | 8 | <p class="wims_credits"> |
| 15179 | lemaire | 9 | Auteur du modèle : <a href="mailto:bernadette.m.riou@orange.fr">Bernadette Perrin-Riou</a> |
| 4096 | bpr | 10 | </p> |
| 11 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
| 12 | |||
| 13 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
||
| 14 | (Ce sont les lignes qui commencent par un ':'.) |
||
| 15 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
| 16 | |||
| 17 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
| 18 | :\title{Cacher des étiquettes} |
||
| 5147 | bpr | 19 | :\author{Bernadette, Perrin-Riou} |
| 5724 | bpr | 20 | :\email{bpr@math.u-psud.fr} |
| 21 | :\credits{} |
||
| 13475 | obado | 22 | |
| 4096 | bpr | 23 | :Consigne |
| 24 | \text{instruction=Cacher les adjectifs en cliquant sur leur étiquette.} |
||
| 13475 | obado | 25 | |
| 4096 | bpr | 26 | :Nombre de questions proposées (maximum 5) |
| 27 | \text{N=2} |
||
| 13475 | obado | 28 | |
| 4096 | bpr | 29 | :Nom du fichier |
| 7718 | bpr | 30 | Ne remplissez que si vous vous désirez transférer le source de cet exercice dans un compte Modtool |
| 4096 | bpr | 31 | et utiliser un fichier de données (dans un module OEF) |
| 32 | du type |
||
| 33 | <pre> |
||
| 4674 | bpr | 34 | :Le chat ??noir?? a mangé la souris ??blanche.?? |
| 35 | :Le chat ??blanc?? a mangé la souris ??noire.?? |
||
| 4096 | bpr | 36 | </pre> |
| 7718 | bpr | 37 | Dans ce cas, les données principales ne seront pas prises en compte. |
| 4096 | bpr | 38 | Sinon, remplissez les données principales. |
| 39 | |||
| 40 | \text{file=} |
||
| 41 | |||
| 42 | :Données principales. |
||
| 43 | Mettre les phrases en entourant par ?? les mots à cacher. |
||
| 44 | \text{data=Le chat ??noir?? a mangé la souris ??blanche.?? |
||
| 45 | La maison ??verte?? est sur la colline. |
||
| 46 | Dans le jardin, il y a des fleurs ??blanches?? et ??rouges?? } |
||
| 47 | |||
| 5797 | bpr | 48 | :Mise en aléatoire par des accolades emboitables |
| 49 | $embraced_randitem |
||
| 50 | \text{accolade=item(1,1 oui, |
||
| 51 | 2 non)} |
||
| 52 | |||
| 4096 | bpr | 53 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
| 5797 | bpr | 54 | \text{accolade=wims(word 1 of \accolade)} |
| 55 | |||
| 4096 | bpr | 56 | \integer{N=min(\N,5)} |
| 57 | \if{\file notsametext}{ |
||
| 58 | \integer{datacnt=wims(recordcnt \file)} |
||
| 59 | \integer{N=min(\N,\datacnt)} |
||
| 60 | \text{choix=shuffle(\datacnt)} |
||
| 61 | \text{choix=\choix[1..\N]} |
||
| 62 | \text{data=} |
||
| 63 | \for{s in \choix}{ |
||
| 64 | \text{data=\data |
||
| 65 | wims(record \s of \file)} |
||
| 66 | } |
||
| 67 | }{ |
||
| 68 | \integer{M=rows(\data)} |
||
| 69 | \integer{N=min(\N,\M)} |
||
| 70 | \integer{N=min(\N,10)} |
||
| 71 | \text{liste=shuffle(\M)} |
||
| 72 | \text{liste=\liste[1..\N]} |
||
| 73 | \matrix{data=\data} |
||
| 74 | \matrix{data=\data[\liste;]} |
||
| 75 | } |
||
| 76 | \text{Numero=} |
||
| 77 | \text{Texte=} |
||
| 78 | \text{cnt=} |
||
| 5797 | bpr | 79 | \text{data=\accolade=1 ?wims(embraced randitem \data)} |
| 4240 | bpr | 80 | \text{data=wims(replace internal ' by ’ in \data)} |
| 4096 | bpr | 81 | \for{u=1 to \N}{ |
| 82 | \matrix{texte=slib(text/markgroup \data[\u;])} |
||
| 83 | \matrix{numero=\texte[1..-4;]} |
||
| 84 | \text{cnt_mot = rows(\numero)} |
||
| 85 | \text{numero = wims(rows2lines \numero)} |
||
| 86 | \text{numero = wims(lines2items \numero)} |
||
| 87 | \text{Numero = wims(append line \numero to \Numero)} |
||
| 88 | \text{texte = \texte[-3;]} |
||
| 89 | \text{cc=items(\texte)} |
||
| 90 | \text{cnt = wims(append item \cc to \cnt)} |
||
| 91 | \text{Texte=wims(append line \texte to \Texte)} |
||
| 92 | } |
||
| 93 | \matrix{Texte=\Texte} |
||
| 94 | \matrix{Numero=\Numero} |
||
| 95 | \text{STEP=wims(makelist r x for x=1 to \N)} |
||
| 96 | \steps{\STEP} |
||
| 13475 | obado | 97 | |
| 98 | \statement{ |
||
| 99 | <div class="instruction">\instruction</div> |
||
| 100 | \if{\N=1}{ |
||
| 101 | <div class="emptyline"> </div> |
||
| 102 | <div class="wimscenter"> |
||
| 103 | \for{j=1 to \cnt}{ |
||
| 104 | \embed{r 1,\j} |
||
| 105 | } |
||
| 106 | </div> |
||
| 107 | }{ |
||
| 108 | \for{ss=1 to \N}{ |
||
| 109 | <p>\ss :</p> |
||
| 110 | <div class="wimscenter"> |
||
| 111 | \for{j=1 to \cnt[\ss]}{ |
||
| 112 | \embed{r \ss,\j} |
||
| 113 | } |
||
| 114 | </div> |
||
| 115 | } |
||
| 116 | } |
||
| 4096 | bpr | 117 | } |
| 13475 | obado | 118 | |
| 4096 | bpr | 119 | \answer{1}{\Numero[1;];\Texte[1;]; }{type=flashcard}{option=show noanalyzeprint} |
| 120 | \answer{2}{\Numero[2;];\Texte[2;]; }{type=flashcard}{option=show noanalyzeprint} |
||
| 121 | \answer{3}{\Numero[3;];\Texte[3;]; }{type=flashcard}{option=show noanalyzeprint} |
||
| 122 | \answer{4}{\Numero[4;];\Texte[4;]; }{type=flashcard}{option=show noanalyzeprint} |
||
| 123 | \answer{5}{\Numero[5;];\Texte[5;]; }{type=flashcard}{option=show noanalyzeprint} |
||
| 124 |