Rev 20 | Rev 4349 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 20 | Rev 4158 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | !goto proc |
2 | !goto proc |
3 | !endif |
3 | !endif |
4 | slib_title=Cut out embedded choices for OEF |
- | |
5 | slib_parms=1\ |
4 | |
6 | ,the input text (embedding delimiter: `??') |
- | |
7 | slib_author=Gang Xiao |
5 | slib_author=Gang Xiao |
8 | slib_out=Text output with each choice in isolated lines |
- | |
9 | slib_comment=<b>This version is deprecated. Please use text/cutchoice2\ |
- | |
10 | for new applications.</b>\ |
- | |
11 | <p>For example, on the input text\ |
- | |
12 | <p><tt>The class has ??3,5,6,7?? pupils with average score of ??20,30,40??\ |
- | |
13 | </tt><p>\ |
- | |
14 | will be transformed to\ |
- | |
15 | <pre>\ |
6 | |
16 | The class has\ |
- | |
17 | 3,5,6,7\ |
- | |
18 | pupils with average score of\ |
- | |
19 | 20,30,40\ |
- | |
20 | </pre>\ |
- | |
21 | The lines of even numbers may then be singled out for creating embedded\ |
- | |
22 | choices. |
- | |
23 | !exit |
7 | !exit |
24 | 8 | ||
25 | :proc |
9 | :proc |
26 | slib_out=!lines2words $wims_read_parm |
10 | slib_out=!lines2words $wims_read_parm |
27 | slib_out=!replace internal ?? by $\ |
11 | slib_out=!replace internal ?? by $\ |