Rev 2071 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5903 | bpr | 1 | <b>符号化文字.</b> (名称: <span class="tt">symtext</span>) |
133 | bpr | 2 | <p> |
3 | 显然本选项不能用于中文. |
||
4 | |||
5 | <p> |
||
6 | |||
5903 | bpr | 7 | 本类型可在类型定义或在其它回答类型中声明选项 <span class="tt">symtext</span> 而被激活. |
8 | 在第一种情形, 回答栏是一个 <span class="tt">textarea</span>, 允许输入几行文字. |
||
133 | bpr | 9 | 在第二种情形, 回答栏保持原始类型. |
10 | <p> |
||
11 | |||
2071 | zjchen | 12 | 正确答案是满足symtext句法 |
13 | !! !href cmd=help&special_parm=symtext symtext句法 |
||
14 | 的一个句子 (只要知道 generic |
||
15 | !! !href cmd=help&special_parm=symtext,generic generic |
||
5903 | bpr | 16 | 格式就够了). 例如 (<span class="tt">generic</span> 格式): |
17 | <ul><li> |
||
18 | <span class="tt">a _or b</span> 可以理解为 "a or b", "b or a", "either a |
||
133 | bpr | 19 | or b", "either b or a". |
5903 | bpr | 20 | |
21 | </li><li> |
||
22 | <span class="tt">Bill _and [my friend]</span> 可以理解为 "Bill and my friend", |
||
133 | bpr | 23 | "my friend and Bill", "Bill as well as my friend", "my friend as well as |
24 | Bill". |
||
5903 | bpr | 25 | |
26 | </li><li> |
||
27 | <span class="tt">x _equals y</span> 可以理解为 "x equals y", "y is equal to x", |
||
133 | bpr | 28 | "x and y are equal", 等. |
29 | |||
30 | </ul> <p> |
||
31 | |||
32 | 建议用纯文字的形式给出首选的回答. 例如若正确答案是 "A and B" 且两者不分先后, |
||
5903 | bpr | 33 | 那么标准答案最好采用 <span class="tt">A and B|A _and B</span> 而不是 <span class="tt">A _and B</span>. |
133 | bpr | 34 | 这样在向学生显示正确答案时, 不会出现让学生摸不到头脑的 "A _and B". |
35 | <p> |
||
36 | |||
37 | 如果在正确答案中只有一行, 那么不与此行匹配的回答都是错的. |
||
5903 | bpr | 38 | 反之, 如果正确答案包含几行 (用分号 '<b><span class="tt">;</span></b>' 分隔), |
133 | bpr | 39 | 那么与补充行匹配的回答都是错的, 而当回答中出现正确答案中找不到的词时, |
40 | 都被认为是不完整的, 且被退回重新输入. |
||
41 | 此外尽管所有的词都包含在正确答案中, 但不与任何一行匹配的回答都判为错误. |
||
42 | <p> |
||
43 | |||
5903 | bpr | 44 | 通常可把要识别的词放在第 2 行, 加上类型 <span class="tt">case</span>, <span class="tt">nocase</span> 或 |
45 | <span class="tt">atext</span>. |
||
133 | bpr | 46 | <p> |
47 | |||
5903 | bpr | 48 | 也可以给出部分正确的答案, 只需在选项中声明 <span class="tt">goodlim=n</span>, 其中 <span class="tt">n</span> |
49 | 是一个大于 1 的整数, 这样凡是与第 2 至 <span class="tt">n</span> 行匹配的回答都认为是部分正确的, |
||
133 | bpr | 50 | 其得分按行的先后次序递减. |
51 | <p> |
||
52 | |||
53 | 选项域中出现的 symtext 的选项都能被识别. |
||
54 | <p> |
||
55 | |||
56 | symtext 的输出可从变量 <tt>\result<i>n</i></tt> 得到, |
||
57 | 其中 <i>n</i> 是回答栏的序号. |
||
5903 | bpr | 58 | 这可被用于 <span class="tt">\feedback</span>. |
133 | bpr | 59 | |
60 | <p> |
||
2071 | zjchen | 61 | !! !href cmd=help&special_parm=symtext symtex句法详述 |
62 | !!. |