home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / t / teach241.zip / TWCAI8.CHP < prev    next >
Text File  |  1992-12-07  |  15KB  |  491 lines

  1. #OFF
  2. %
  3. #EF
  4. #T15,1,Merging with the TW Editor
  5.     |JUMP START|   |REFERENCE MANUAL|   |MERGING|   |CUT & PASTE|   |ABOUT|
  6. #HH,1,5,80,1,1,0
  7. #R7
  8.                        ╓─┐  ╥         ╥  ∞          ╓─┐
  9.                        ╙─┐ ─╫─ ╓┐ ╥┐ ─╫─ ╥ ╥┐ ╓┐    ╟─┤
  10.                        ╙─┘  ╙┘ ╙┴ ╨   ╙┘ ╨ ╨└ ╙┤    ╙─┘
  11.                                               ╙┘
  12.                           ┌╥┬┐                ╥  ╥  ╥
  13.                            ║┴│ ╓╖ ╥┐ ╓┐ ╓╖    ║ ─╫─ ╨
  14.                            ╨ ┴ ╙─ ╨  ╙┤ ╙─    ╨  ╙┘ ∞
  15.  
  16.  
  17.  
  18.                                     Preview
  19.             ~b~Y~I┌────────────────────────────────────────────────────────┐~z
  20.             ~b~Y~I│ Chapter 8 mentions cut and paste, and discusses merging│~z
  21.             ~b~Y~I│ with the TW editor, offers a one page summary, and a   │~z
  22.             ~b~Y~I│ one page list of merging steps.  Invisible lines are   │~z
  23.             ~b~Y~I│ also discussed.  About 25 screens.                     │~z
  24.             ~b~Y~I└────────────────────────────────────────────────────────┘~z
  25.  
  26. #NE
  27. #HH,1,24,80,1,1,0
  28. #HF,1,25,80,25,176,1,0
  29. #WH
  30.  
  31. %
  32. #EF
  33. #T15,1,Merging with the TW Editor
  34.       |CUT & PASTE|     |MERGE|     |REFERENCE MANUAL|     |CAITEST FILE|
  35. #HH,1,5,80,1,1,0
  36. #R9
  37.  ▄█▀▀▀▀▀█▄ .∙      ~C~IMerging~Y~I is the  process of combining two similar files,
  38. ▐█▐─ô═ô─▌█▌∙.        usually with an editor or word processor.  Is called
  39.  └┤   ┌┘ .∙         ~C~Imerging~Y~I, or ~C~Imerging from DOS~Y~I.
  40.   │█▀▀▀█│
  41.   └┬███┬┘          The ~W~ICAITeach Reference Manual~Y~I mentions a way to
  42. ▒▒▒▒ ■ ▒▒▒▒          combine the template files into a single file, and
  43.                      then ~C~Icut and paste~Y~I.  You may prefer this as it
  44. allows one to select modified templates from within the working file,
  45. and ~C~Icut and paste~Y~I those modified templates, rather than just merge
  46. a blank template.
  47.  
  48.     If that's a new idea for you take a look at ~W~IReference Manual~Y~I, ~C~IChapter 6~Y~I.
  49. #HH,1,24,80,1,1,0
  50. #HF,1,25,80,25,176,1,0
  51. #WP,H
  52. #HH,1,5,80,1,1,0
  53.  
  54.  
  55.  
  56. %
  57. #EF
  58. #T15,1,Merging with the TW Editor
  59.       |CUT & PASTE|     |MERGE|     |REFERENCE MANUAL|     |CAITEST FILE|
  60. #HH,1,5,80,1,1,0
  61.  
  62. #AP,0,13
  63.  Merging, then, is putting two files together.
  64.  When constructing a CAITeach file this means
  65.  merging the various template files into a
  66.  master file that becomes the test file.
  67.  
  68.  However, depending on one's style it may be
  69.  more convenient to cut and paste modified
  70.  templates within the editor than merge
  71.  blanks from DOS---just mentioned.
  72.  
  73.  I'm going to talk about using the Tutorial-
  74.  Writer Editor for DOS merging.  Once you
  75.  can DOS merge you can cut and paste.
  76.  
  77. #HH,1,24,80,1,1,0
  78. #HF,1,25,80,25,176,1,0
  79. #WP,H
  80.  
  81.  
  82. %
  83. #EF
  84. #T15,1,Merging with the TW Editor
  85.       |CUT & PASTE|     |MERGE|     |REFERENCE MANUAL|     |CAITEST FILE|
  86. #HH,1,5,80,1,1,0
  87. #R10
  88.  ▄█▀▀▀▀▀█▄ .∙      This chapter has three big parts:
  89. ▐█▐─ô═ô─▌█▌∙.
  90.  └┤   ┌┘ .∙          ~F─~F─═ go thru merging steps in TW editor
  91.   │█▀▀▀█│
  92.   └┬███┬┘             ~F─~F─═ look at a couple of examples
  93. ▒▒▒▒ ■ ▒▒▒▒
  94.                       ~F─~F─═ look at a page summary, and a chart
  95.                            showing merging steps
  96.  
  97. #HH,1,24,80,1,1,0
  98. #HF,1,25,80,25,176,1,0
  99. #WP,H
  100. #HH,1,5,80,1,1,0
  101.  
  102. %
  103. #EF
  104. #T15,1,Merging with the TW Editor
  105.       |CUT & PASTE|     |MERGE|     |REFERENCE MANUAL|     |CAITEST FILE|
  106. #HH,1,5,80,1,1,0
  107. #R7
  108.     First, let's find ~C~ITW~Y~I's editor.  Below is an abstract of ~C~ITW~Y~I's
  109. main menu.  Study it and note the number of the option that accesses the
  110. editor.  Just the number.
  111.  
  112.           ╔════════════════════════════════════════════════════════╗
  113.           ║         The Non-Programmer's Computer Toolkit          ║
  114.           ║           for Computer Assisted Instruction            ║
  115.           ║                                                        ║
  116.           ║    1 Configure Tutorial    2 Create/Edit Chapter       ║
  117.           ║    3 Create Menu           4 Utility Programs          ║
  118.           ║    5 View Tutorial         6 Compile Chapter           ║
  119.           ║    7 Instructions          8 Print Quick Reference     ║
  120.           ║    9 Quit                                              ║
  121.           ╚════════════════════════════════════════════════════════╝
  122.  
  123.     Question coming~F...~F
  124. #HH,1,24,80,1,1,0
  125. #HF,1,25,80,25,176,1,0
  126. #WP,H
  127.  
  128.  
  129. #EF
  130. #T15,1,Merging with the TW Editor
  131. #QQ,R,2
  132. What number accesses the Editor from
  133. TW's Main Menu?
  134. 2
  135. 2
  136. #HH,1,24,80,1,1,0
  137. #HF,1,25,80,25,176,1,0
  138. #WP,H
  139.  
  140.  
  141. %
  142. #EF
  143. #T15,1,Merging with the TW Editor
  144.                |CUT & PASTE|     |MERGE|     |REFERENCE MANUAL|
  145. #HH,1,5,80,1,1,0
  146. #R8
  147.  ▄█▀▀▀▀▀█▄ .∙       After selecting the ~C~ICreate/Edit Chapter~Y~I one is
  148. ▐█▐─ô═ô─▌█▌∙.          prompted for a file name.  Enter the name of your new
  149.  └┤   ┌┘ .∙           file, and ~C~ITW~Y~I creates it, assigning the
  150.   │█▀▀▀█│              extension ~C~ICHP~Y~I.
  151.   └┬███┬┘
  152. ▒▒▒▒ ■ ▒▒▒▒         To ~F~C~Imerge~F~Y~I a file you must know the keystroke
  153.                          (accessed from ~C~IHelp~Y~I, ~C~IBlock Commands~Y~I)
  154.                     which is ~C~I[CONTROL KR]~Y~I, a very famous keystroke
  155. from ~W~IWordstar~Y~I.
  156.  
  157.                     Once in the editor press [~C~IControl KR]~Y~I and the
  158. editor prompts for a file name (~C~Iblock~Y~I) to merge.  It merges the file
  159. at the current cursor position.
  160. #HH,1,24,80,1,1,0
  161. #HF,1,25,80,25,176,1,0
  162. #WP,H
  163.  
  164.  
  165. #EF
  166. #T15,1,Merging with the TW Editor
  167. #AR,1,7
  168. To merge a file press Control-KR and
  169. answer the prompt
  170.  
  171. "Read block from file:"
  172.  
  173. File is brought in at your current
  174. cursor position.
  175. #HH,1,24,80,1,1,0
  176. #HF,1,25,80,25,176,1,0
  177. #WP,H
  178.  
  179.  
  180.  
  181.  
  182. #EF
  183. #T15,1,Merging with the TW Editor
  184. #NE
  185. #AR,1,6
  186. If you change your mind after
  187. entering a file name, [BACKSPACE]
  188. it out, and enter [SPACE] to
  189. cancel the  name.
  190.  
  191. Back to merging ...
  192.  
  193. #HH,1,24,80,1,1,0
  194. #HF,1,25,80,25,176,1,0
  195. #WP,H
  196.  
  197.  
  198.  
  199. %
  200. #EF
  201. #T15,1,Merging with the TW Editor
  202.                |CUT & PASTE|     |MERGE|     |REFERENCE MANUAL|
  203. #HH,1,5,80,1,1,0
  204. #R6
  205.                  Abstract showing File to Merge: ~W~ITEST.CHP~Y~I
  206.          ┌─────────────────────────────────────────────────────────┐
  207.          │F1-Help              * *  TutorialWriter  * *  -  EDITOR │
  208.          │Read block from file: {T-TF.CHP                          │
  209.          └─────────────────────────────────────────────────────────┘
  210.  
  211.     This abstract displayed at top of editor after ~C~I[Control KR]~Y~I,
  212. and I typed file to merge, ~Y~ITEST.CHP~Y~I.  After I press ~C~I[ENTER]~Y~I the
  213. template ~Y~I{T-TF.CHP~Y~I will merged and become a permanent part of my
  214. working  It is merged wherever my cursor is when I press ~C~I[ENTER]~Y~I.
  215.  
  216.      After the merge all I have to do is enter my question, check the
  217. lines, save it, and test it at DOS.  Have all of this summarized for you
  218. after a couple of screens, and is the subject of previous chapters.
  219.  
  220.      But, for now you need a convenient way to know your line position.
  221. That's next.
  222.  
  223. #HH,1,24,80,1,1,0
  224. #HF,1,25,80,25,176,1,0
  225. #WP,H
  226.  
  227.  
  228.  
  229.  
  230. %
  231. #EF
  232. #T15,1,Merging with the TW Editor
  233.                           |CUT & PASTE|     |MERGE|
  234. #HH,1,5,80,1,1,0
  235. #R8
  236.  
  237.                     Abstract Showing Current Cursor Position
  238.                ┌───────────────────────────────────────────────┐
  239.                │F1-Help              * *  TutorialWriter  *    │
  240.                │     ~FLine~F 5    Col 30  Insert                  │
  241.                └───────────────────────────────────────────────┘
  242.  
  243.     ~C~ITW~Y~I constantly updates the current line position as above.  Each
  244. time the cursor changes its line the number after ~C~ILine~Y~I changes.
  245.  
  246.     Since ~C~ICAITeach~Y~I files work in sets of 16, the number after ~C~ILine~Y~I is
  247. a required references.
  248. #HH,1,24,80,1,1,0
  249. #HF,1,25,80,25,176,1,0
  250. #WP,H
  251.  
  252. %
  253. #EF
  254. #T15,1,Merging with the TW Editor
  255.                            |CUT & PASTE|     |MERGE|
  256. #HH,1,5,80,1,1,0
  257.  
  258.  
  259.    Abstract Show Cursor Position
  260.  ┌─────────────────────────────────────┐
  261.  │                                     │  Here's a check .....
  262.  │  F1-Help              * *  TutorialW│
  263.  │       Line 5    Col 30  Insert      │
  264.  │ 1      =  Q 1  =  17                │  You have just merged ~W~I{T-STUDY.CHP~Y~I,
  265.  │ ;                                   │    and everything is correct.
  266.  │ STUDY                               │
  267.  │ Citation or Comment line.           │  What line was the cursor on when I
  268.  │ Rule:r...1....:....2....:....3....:.│    abstracted the figure?
  269.  │                                     │
  270.  │ █▄▄▄▄▄▄▄▄▄▄▄▄█                      │  I'll be looking for a number.
  271.  │ █┤ Library  ├█                      │
  272.  │ █┤  OPEN!   ├█                      │  Question coming~F...~F
  273.  │ █▓▓▓▓▓▓▓▓▓▓▓▓█                      │
  274.  └─────────────────────────────────────┘
  275.  
  276. #HH,1,24,80,1,1,0
  277. #HF,1,25,80,25,176,1,0
  278. #WP,H
  279.  
  280.  
  281. #EF
  282. #T15,1,Merging with the TW Editor
  283. #QQ,R,2
  284. What line was the cursor on
  285. in the previous frame.
  286. 5
  287. 5
  288. #HH,1,24,80,1,1,0
  289. #HF,1,25,80,25,176,1,0
  290. #WP,H
  291.  
  292.  
  293. %
  294. #EF
  295. #T15,1,Merging with the TW Editor
  296.                |CUT & PASTE|     |MERGE|     |REFERENCE MANUAL|
  297. #HH,1,5,80,1,1,0
  298. #R9
  299.  ▄█▀▀▀▀▀█▄ .∙      Not much too it after you get the hang of it.
  300. ▐█▐─ô═ô─▌█▌∙.
  301.  └┤   ┌┘ .∙       After you've composed your question, check the
  302.   │█▀▀▀█│            ~C~ILine~Y~I number against your question number
  303.   └┬███┬┘             line. I always renumber the first part of
  304. ▒▒▒▒ ■ ▒▒▒▒           my question number line (~C~Iline 1 on all
  305.                       templates~Y~I) immediately  after merging.
  306.  
  307. ~C~INumAid~Y~I helps me a lot here, but we all work differently.
  308.  
  309.    Next, is a summary of these first several frames --- all put on
  310. one frame for your review.  ~C~IThen, I'll show the same thing~Y~I on a
  311. table.  You might way to ~W~Iscan~Y~I, and ~C~I[PageBack]~Y~I later.
  312.  
  313. #HH,1,24,80,1,1,0
  314. #HF,1,25,80,25,176,1,0
  315. #WP,H
  316.  
  317.  
  318. #NC
  319. #BO,30,12,55,16,2,1,1,3,14,4
  320. So, prepare for another
  321.  
  322. laundry list...
  323.  
  324. %
  325. #EF
  326. #T15,1,Merging with the TW Editor
  327.  ▄█▀▀▀▀▀█▄ .∙         Steps for Merging in ~W~ITW Editor~Y~I~F...~F
  328. ▐█▐─ô═ô─▌█▌∙.
  329.  └┤   ┌┘ .∙             1. Create a new file by selecting the
  330.   │█▀▀▀█│                   ~C~ICreate/Edit Chapter Option~Y~I.  ~C~ITW~C~I
  331.   └┬███┬┘                   assigns the extension ~C~ICHP~Y~I.
  332. ▒▒▒▒ ■ ▒▒▒▒
  333.                          2. Do a ~C~IControl KR~Y~I keystroke.  Hold down
  334.                             the ~C~Icontrol~Y~I key, press the ~C~IK~Y~I and ~C~IR~Y~I.
  335.  
  336. 3. Answer the prompt at the top of the screen by entering the name of the
  337.    template you wish to merge.  A path may be necessary.
  338.  
  339. 4. Observe the line locator, top left, which indicates the line on which
  340.    the cursor is located.
  341.  
  342. 5. When ready for the next template locate your cursor, do another ~C~IControl KR~Y~I.
  343.  
  344. 6. When finished check your line sequences, save the file, test with the
  345.    renumbering utility, test at DOS with ~W~I{TEACHTW~Y~I, and finally run from
  346.    within ~W~ITutorialWriter~Y~I with the ~C~I#U~Y~I command.
  347. #HH,1,24,80,1,1,0
  348. #HF,1,25,80,25,176,1,0
  349. #WP,H
  350.  
  351.  
  352. %
  353. #EF
  354. #T15,1,Merging with the TW Editor
  355.  
  356.  
  357. #AR,0,9
  358. Use Quick Reference and NumAid
  359. as keyboard-side reference.
  360.  
  361. Add notes to master templates.
  362.  
  363. Your task is writing, not programming.
  364.  
  365. I've put it in a Table for you.  Just
  366. a summary of the last summary.
  367. #HH,1,24,80,1,1,0
  368. #HF,1,25,80,25,176,1,0
  369. #WP,H
  370.  
  371. %
  372. #EF
  373. #T15,1,Merging with the TW Editor
  374.                       ~W~ISummary: Merging Sequence and Editing Table~Y~I
  375.  
  376.  Create File in ~C~ITW~Y~I Editor           Any name, use extension ~C~ICHP~Y~I
  377.  
  378.  Position cursor                    File is merged at current cursor position
  379.  
  380.  Execute ~C~IControl KR~Y~I                 See ~C~IHelp block~Y~.  ~G~IF1 - Block Commands~Y~I
  381.  
  382.  Compose question in template       Template provides format.  Delete unneeded.
  383.  
  384.  Monitor ~C~Iline~Y~I Position              ~C~ILine~Y~I position, upper left. If you delete
  385.                                        a line you must create another.
  386.  
  387.  Check ~C~ILine~Y~I sequences               ~W~IQuick Reference~Y~I and ~W~INumbering Aid~Y~I
  388.  
  389.  Save File - Exit                   Check file at ~C~IDOS~Y~I with ~W~I{RENUM~Y~I.
  390.  
  391.  Reedit                             Load into editor any other file. Merge templates
  392.                                       as needed.
  393.  
  394. #HH,1,24,80,1,1,0
  395. #HF,1,25,80,25,176,1,0
  396. #WP,H
  397.  
  398.  
  399. %
  400. #EF
  401. #T15,1,Merging with the TW Editor
  402.  
  403. #AP,0,11
  404. Helpful Hints ...
  405.  
  406. Keep Quick Reference and NumAid available.
  407.  
  408. If you can't remember something, add it to
  409. the master template. Later, edit it out or
  410. just leave it as Line 2, or line 5 (except
  411. first five spaces) are not displayed or used.
  412.  
  413. Compose and test in units of five, or ten.
  414. Test.  Finally merge all into your final file.
  415.  
  416. #HH,1,24,80,1,1,0
  417. #HF,1,25,80,25,176,1,0
  418. #WP,H
  419.  
  420.  
  421. #NC
  422. #BO,30,12,55,16,2,1,1,3,14,4
  423. Let's finish with
  424.  
  425. a question.
  426.  
  427.  
  428. #EF
  429. #T15,1,Merging with the TW Editor
  430.  
  431. #QQ,B,10
  432. Enter the number of the false statement.
  433.  
  434. 1. The keystroke for merging into the TW Editor is Control KR.
  435.  
  436. 2. It is possible to create invisible lines at the end of
  437.    a file created in the TW Editor.
  438.  
  439. 3. One is working in a file, and about to save.  Line 49 should
  440.    start with the a semicolon
  441.    the TW Editor.
  442. 3
  443. 3
  444.  
  445.  
  446. %
  447. #EF
  448. #T15,1,Merging with the TW Editor
  449. #R5
  450.  ▄█▀▀▀▀▀█▄ .∙
  451. ▐█▐─ô═ô─▌█▌∙.         About those invisible lines~F...~F
  452.  └┤   ┌┘ .∙
  453.   │█▀▀▀█│             Assume your last was is ~G~INone~Y~I, and you wish to
  454.   └┬███┬┘               check for invisible lines. Here's how.
  455. ▒▒▒▒ ■ ▒▒▒▒
  456.                       Put you cursor on the line with ~G~INone~Y~I
  457.  
  458.     Press ~C~I[DownArrow]~Y~I twice.  If the cursor drops more than
  459. two lines you have invisible lines.
  460.  
  461.     To delete, put your cursor on the line below ~G~INone~Y~I, do a bunch of
  462. ~G~IControl Y's~Y~I.  If ~C~I[DownArrow]~Y~I lets you drop one row, do more ~G~IControl Y's~Y~I
  463. and repeat until the ~C~I[DownArrow]~Y~I will not drop more two lines below ~G~INone~Y~I.
  464.  
  465.     Of course if your editor has an ~C~Iend-of-file~Y~I marker you can see
  466. space between your last line and the marker---which are what I've called
  467. "invisible lines."  Many editors have ~C~Iend-of-file~Y~I markers.
  468. #HH,1,24,80,1,1,0
  469. #HF,1,25,80,25,176,1,0
  470. #WP,H
  471.  
  472. %
  473. #EF
  474. #T15,1,Merging with the TW Editor
  475. |JUMP START|     |REFERENCE MANUAL|     |ABOUT|
  476. #HH,1,5,80,1,1,0
  477.  
  478.  
  479. #R10
  480.  ▄█▀▀▀▀▀█▄ .∙      I think the ~G~IReference Manual~Y~I also has a few
  481. ▐█▐─ô═ô─▌█▌∙.        comments worth reading on ~G~Imerging~Y~I.
  482.  └┤   ┌┘ .∙
  483.   │█▀▀▀█│
  484.   └┬███┬┘          This concludes this chapter.
  485. ▒▒▒▒ ■ ▒▒▒▒
  486.  
  487. #HH,1,24,80,1,1,0
  488. #HF,1,25,80,25,176,1,0
  489. #WP,H
  490. #X
  491.