Rev 13715 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=select |
13715 | obado | 2 | textarea="data pre post" |
3 | iEdit="pre post" |
||
23 | reyssat | 4 | |
5 | :Selezionare parole in un testo. |
||
6 | |||
7 | L'esercizio presenta un testo in cui alcune parole sono "selezionabili". |
||
13501 | czzmrn | 8 | È necessario indicare le parole che vanno selezionate a seconda |
23 | reyssat | 9 | delle richieste effettive dell'esercizio. |
10 | <p> |
||
11 | Per costruire un esercizio utilizzando questo modello è sufficiente |
||
12 | inserire la lista di oggetti e le loro proprietà. |
||
13479 | obado | 13 | </p><p class="wims_credits"> |
15179 | lemaire | 14 | Autore del modello: <a href="mailto:qualite@wimsedu.info">Gang Xiao</a></p> |
23 | reyssat | 15 | |
16 | :%%%%%%%%%%%%%%%%% ATTENZIONE %%%%%%%%%%%%%%%%%%%% |
||
17 | |||
18 | Se si rimuovono le indicazioni del modulo modelli (le righe che |
||
19 | cominciano con ':') è necessario rimuovere tutta questa parte |
||
20 | introduttiva del file. Altrimenti Createxo potrebbe non accettare il |
||
21 | codice dell'esercizio. |
||
22 | |||
23 | :%%%%%%%% Parametri che possono essere ridefiniti %%%%%%%%%%%%%%%%% |
||
24 | |||
25 | :\title{Seleziona un testo} |
||
5147 | bpr | 26 | :\author{XIAO, Gang} |
8002 | bpr | 27 | :\email{qualite@wimsedu.info} |
5724 | bpr | 28 | :\credits{} |
23 | reyssat | 29 | |
30 | :Minimo numero di parole che devono essere selezionate in ogni esercizio, minimo 1. |
||
31 | \integer{minmark=1} |
||
32 | |||
33 | :Massimo numero di parole che devono essere selezionate. |
||
34 | \integer{maxmark=8} |
||
35 | |||
36 | :Contenuto effettivo dell'esercizio. |
||
37 | Occorre definire una domanda per riga, separate da un punto e virgola (e |
||
38 | quindi i testi non devono contenere ";".) <p> |
||
8002 | bpr | 39 | Le parole da selezionare devono essere scritte tra due coppie di punti di |
13501 | czzmrn | 40 | domanda "??". Ogni campo contiene una lista di parole separate da virgole.</p> |
41 | Il primo elemento prima della virgola è <ul> |
||
42 | <li>una parola errata</li> |
||
43 | <li>una lista di parole errate tra parentesi graffe</li> |
||
44 | <li>nulla, può essere lasciata vuota</li> |
||
45 | </ul> |
||
46 | Il secondo elemento è la parola corretta. |
||
47 | <pre> |
||
48 | Le chat ??manges,mange?? la souris. |
||
49 | Le chat ??{mangent,menge},mange?? la souris. |
||
50 | Le chat ??,mange?? la souris. |
||
51 | </pre> |
||
23 | reyssat | 52 | Allo studente saranno mostrate parole pescate in modo casuale da queste liste |
13501 | czzmrn | 53 | che andranno a comporre il testo. |
8530 | czzmrn | 54 | </p> |
23 | reyssat | 55 | Ogni frase può contenere fino a cento parole "selezionabili" |
56 | $embraced_randitem |
||
57 | |||
58 | \text{data= |
||
8002 | bpr | 59 | {Jack,Jean,Louis,Michel,Pierre} ??et,est?? forain, il |
23 | reyssat | 60 | ??{tien,tiens},tient?? ??un,une?? baraque de tir ??a,à?? la noix de coco. |
8002 | bpr | 61 | ??Ont,On?? ??trouvent,trouve?? des ??Baraque,Baraques?? Noix de Coco dans |
23 | reyssat | 62 | ??tous,toutes?? les foires. Les ??,gens?? ??arrive,arrivent??, |
63 | ??donne,donnent?? des ??,sous?? |
||
8002 | bpr | 64 | ??est,et?? ??envoie,envoient?? des ??,boules?? sur une noix de coco |
23 | reyssat | 65 | ??{poser,posé},posée?? en haut d'une ??,colonne??. |
66 | Ceux qui ??fait,font?? |
||
8002 | bpr | 67 | ??{dégringolé,dégringolée},dégringoler?? une noix de coco |
23 | reyssat | 68 | ??{peu,peut,peux},peuvent?? ??{le,les},la?? |
69 | ??{gardée,gardé},garder??. |
||
70 | ; |
||
71 | |||
72 | ??{Quel,Quels,Quelles},Quelle?? |
||
73 | idée ??est-je,ai-je?? |
||
74 | ??{d'acheté,d'achetée,d'achetés},d'acheter?? ??{cept,cette,ces,ce},cet?? |
||
75 | oiseau ? L'oiselier me dit : "??{S'est,Cet},C'est?? un ??{mal,malle},mâle??. |
||
8002 | bpr | 76 | ??Attender,Attendez?? une ??,semaine?? qu'il |
23 | reyssat | 77 | ??{s'abitue,s'abituent,s'habituent},s'habitue??, ??est,et?? il chantera". |
8002 | bpr | 78 | ??Hors,Or??, l'oiseau ??sobstine,s'obstine?? ??a,à?? ??ce,se?? |
23 | reyssat | 79 | ??tait,taire?? et il ??fais,fait?? ??tous,tout?? de ??{traver,travert},travers??. |
80 | ; |
||
81 | |||
82 | Les ??désert,déserts?? de ??sables,sable?? ??occupe,occupent?? de |
||
83 | ??large,larges?? parties {de la planète,du monde,de la Terre}. |
||
84 | Il n'y ??{pleu,pleus,pleuvent},pleut?? |
||
85 | presque ??,pas??. Très ??peut,peu?? de plantes et ??,d'animaux?? y |
||
86 | ??vit,vivent??. Les ??,dunes?? ??son,sont?? des collines de |
||
87 | ??,sable?? que le vent ??à,a?? |
||
8002 | bpr | 88 | ??{construit,construits,construite},construites??. Les |
23 | reyssat | 89 | ??grains,graines?? de ??{certain,certaine,certains},certaines?? |
90 | plantes ??reste,restent?? sous le ??sole,sol?? du désert pendant |
||
91 | des années. ??{Ils,Elle},Elles?? ??ce,se?? ??met,mettent?? |
||
92 | ??a,à?? ??{poussées,poussée,poussés},pousser?? dès qu'il y a |
||
93 | ??une,un?? orage. |
||
94 | ; |
||
95 | |||
96 | } |
||
97 | |||
98 | :Testo che precede la domanda. Sono permessi comandi html, può essere vuoto. |
||
99 | $embraced_randitem |
||
8530 | czzmrn | 100 | \text{pre= |
101 | Seleziona le parole sbagliate nel testo francese che segue. |
||
23 | reyssat | 102 | } |
103 | |||
104 | :Testo che segue la domanda. Sono permessi comandi html, può essere vuoto. |
||
105 | \text{post=} |
||
106 | |||
13501 | czzmrn | 107 | :Scelte casuali di elementi inseriti tra parentesi graffe |
8530 | czzmrn | 108 | $embraced_randitem |
13556 | czzmrn | 109 | \text{accolade=item(1,1 sì, |
8530 | czzmrn | 110 | 2 no)} |
111 | |||
23 | reyssat | 112 | :Opzioni dell'esercizio. |
8002 | bpr | 113 | L'opzione <span class="tt wims_code_words">split</span> permette di assegnare un punteggio anche a risposte |
23 | reyssat | 114 | parziali, purché senza errori. |
115 | \text{option=split} |
||
116 | |||
117 | :%%%%%%%%%%% Parte che precede l'enunciato: da non modificare %%%%%%%%%%%%% |
||
118 | |||
8530 | czzmrn | 119 | \text{accolade=wims(word 1 of \accolade)} |
23 | reyssat | 120 | \text{data=wims(singlespace \data)} |
121 | \text{data=wims(nonempty rows \data)} |
||
122 | \text{data=randomrow(\data)} |
||
8530 | czzmrn | 123 | \text{data=\accolade=1 ? wims(embraced randitem \data)} |
23 | reyssat | 124 | \text{data=slib(text/cutchoice2 \data)} |
125 | \integer{qs=floor(rows(\data)/2)} |
||
126 | \text{list=} |
||
127 | \text{ind=} |
||
128 | \for{i=1 to \qs}{ |
||
129 | \text{d=\data[2*\i;]} |
||
130 | \text{list=\list \d;} |
||
131 | \if{\d[1] issametext }{\text{ind=\ind[]2,}}{\text{ind=\ind[]1,}} |
||
132 | } |
||
133 | |||
134 | \text{can=positionof(1,\ind)} |
||
135 | \text{cancnt=items(\can)} |
||
136 | \integer{tomark=randint(min(\minmark,\cancnt)..min(\maxmark,\cancnt))} |
||
137 | \text{can=\cancnt>1?shuffle(\can)} |
||
138 | \text{good=item(1..\tomark,\can)} |
||
139 | \text{good=wims(sort numeric items \good)} |
||
140 | |||
141 | \text{show=} |
||
142 | \for{i=1 to \qs}{ |
||
143 | \text{d=\i isitemof \good?\list[\i;1]:\list[\i;2]} |
||
144 | \text{show=\show[]\d,} |
||
145 | } |
||
146 | |||
8530 | czzmrn | 147 | \text{pre=\accolade=1 ? wims(embraced randitem \pre)} |
23 | reyssat | 148 | |
149 | :%%%%%%%%%%%%% Enunciato (in html). %%%%%%%%%%%%%%%%%%%% |
||
150 | |||
151 | ::In questa parte non dovrebbe esserci nulla da modificare. |
||
152 | |||
13501 | czzmrn | 153 | \statement{ |
154 | <div>\pre</div> |
||
23 | reyssat | 155 | \data[1;] |
156 | \for{k=1 to \qs}{ |
||
157 | \embed{r1,\k} \data[2*\k+1;] |
||
158 | } |
||
159 | \post |
||
160 | } |
||
161 | |||
162 | :%%%%%%%%%%%%% Non modificare nulla da qui in poi. %%%%%%%%%%%%%%%%% |
||
163 | |||
164 | \answer{Field 1}{\good;\show}{type=mark}{option=\option} |
||
165 |