home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / enterprs / cpm / utils / f / pwinstl.arc / LESSON3.MSS < prev    next >
Text File  |  1993-03-27  |  12KB  |  313 lines

  1.  
  2.                        Lesson 3
  3.  
  4.                        CUTTING and PASTING
  5.  
  6.  
  7.     In two short lessons, you have learned a good deal about
  8. Perfect Writer:  how to create and print a letter, plus commands
  9. for moving the cursor, scrolling the screen, reading documents
  10. from disk, creating two windows, and for quitting Perfect Writer.
  11. In this lesson we will present the commands used in revising text
  12. -- commands that represent the real power of Perfect Writer.  
  13.  
  14.     Our first step will be to split the screen into two windows,
  15. displaying in the top window the short letter created in Lesson 1
  16. called "Myletter." As before, you will be working in the top
  17. window, following instructions displayed in the bottom window.
  18.  
  19.      Scroll down by selecting:
  20.  
  21.                 Escape...Forward...This window
  22.  
  23.  
  24.     At this time, create two windows by selecting:
  25.  
  26.                 Escape...Operations...Windows...2
  27.  
  28.     Immediately, the window divides in half, with the cursor in
  29. the top window.  From now on, scroll and read from the bottom
  30. window by selecting:
  31.  
  32.  
  33.                  Escape...Forward...Other window
  34.  
  35.  
  36.     Now, using the Read Document command, instruct Perfect
  37. Writer to display "MYLETTER" in the top window.  With the cursor
  38. in the top window, select:
  39.  
  40.  
  41.                       Escape...Documents...Read
  42.  
  43.     When Perfect Writer asks "Document to Read," type
  44. "myletter," followed by the Return key.
  45.  
  46.     Perfect Writer retrieves your letter from disk and places
  47. it in the top window.  It is identified in the Status Line as
  48. "MYLETTER."
  49.  
  50.                      REVISING TEXT
  51.  
  52.     Now, if you are like most writers, you probably wanted to
  53. revise your letter the moment you started typing it.  If you had
  54. written it on an ordinary typewriter, your only means of
  55. revision would be to take a pencil (and perhaps scissors and paste)
  56. to your paper copy, afterwards retyping it. Each revision would
  57. require retyping the letter anew . .  .(Whew!)
  58.  
  59.     With Perfect Writer, however, all changes are made on the
  60. screen where the copy is still `soft', and you can move the words
  61. and characters about as much as you like.  
  62.  
  63.     Let's begin making changes. Using either the arrow keys or
  64. menu commands, position the cursor two blank spaces after the
  65. word "Hello!" and type  the following new sentence:
  66.  
  67.               "You'll never guess what I'm doing!"
  68.  
  69.     If you make a typing error, use the Delete key to erase
  70. and retype. Notice that as you type, Perfect Writer automatically
  71. INSERTS the words, pushing all other characters aside to make
  72. room.
  73.  
  74.     But what else happens?  There are so many words in the
  75. new sentence that existing text is pushed completely off the
  76. screen and wrapped back in an awkward display. 
  77.  
  78.     How to fix this?  Perfect Writer provides a command that
  79. will adjust the paragraph.  Called the "Fill Paragraph" command,
  80. it readjusts the paragraph by aligning all text flush with the
  81. left margin and "filling" each line with no more than 65
  82. characters.  Without moving the cursor, select:
  83.  
  84.              Escape...Appearance...Paragraph...Fill
  85.  
  86.     Perfect Writer automatically adjusts the paragraph.  Now
  87. wasn't that easy?  The Fill Paragraph command is very handy for
  88. readjusting text on the screen.  It requires only that the cursor
  89. be somewhere within the paragraph. 
  90.  
  91.     Now, let's change the next sentence.  Position the cursor on
  92. the comma (,) just after "Writer" in the second line.  Type a
  93. period to end the sentence, and select:
  94.  
  95.                Escape...Appearance...Line...Insert
  96.  
  97.      As you can see, this command inserts blank lines, pushing
  98. all text to the right of the cursor down one line.  This will
  99. give you a little working room to insert whatever new text you
  100. want, thus eliminating the annoying sight of words being pushed
  101. ahead of the cursor as you type.
  102.  
  103.     Press the space bar twice and type the following:
  104.  
  105.                 "Would you like to hear about it?"
  106.  
  107.      Close up the paragraph by selecting:
  108.  
  109.                   Escape...Cut...This character
  110.  
  111.     This deletes the invisible "new line" character inserted by
  112. the "Insert" command. This procedure of opening and closing lines
  113. isn't really necessary, since, as we saw previously, Perfect
  114. Writer will push all other text aside when inserting words and
  115. characters.  But, as we mentioned, it is sometimes easier to
  116. insert a revision when existing text isn't in the way.
  117.  
  118.                              CUTTING
  119.  
  120.     Now, let's cut the original ending to the old sentence:
  121.  ", and thought I would write to tell you about it."
  122.  
  123.     Perfect Writer offers several means of cutting text.  Two of
  124. these you've already used: the Delete key, which deletes
  125. characters backwards across a line, one character at a time, and
  126. "Escape...Cut...This character," which deletes the character the
  127. cursor is on.  These commands can be slow, especially if you have
  128. a lot of cutting to do. 
  129.  
  130.     Perfect Writer offers a variety of other commands for
  131. cutting sections of text larger than a single character.  The
  132. CUT...WORD option cuts the word immediately following the cursor.
  133. The cursor must be ON or BEFORE the first letter of the word to
  134. cut the entire word.  Cut one or two words using this command:
  135.  
  136.                        Escape...Cut...Word
  137.  
  138.     If you have only a few words to cut, this command is very
  139. handy.  However, it too can be slow.
  140.  
  141.     ESCAPE...CUT...LINE END  cuts all characters from the
  142. position of the cursor to the end of the current line. 
  143.  
  144.  
  145.     ESCAPE...CUT...ENTIRE LINE cuts all characters on the line,
  146. plus the line itself.  Lines below are moved up to fill the space.
  147. The cursor may be positioned anywhere on the line to be cut. 
  148.  
  149.     ESCAPE...CUT...SENTENCE cuts all characters from the
  150. position of the cursor to the end of the current sentence --
  151. until a period, question mark, exclamation point, or paragraph
  152. break is reached.  Trailing blank space is also cut.
  153.  
  154.      Using one of these commands, cut the rest of the sentence.
  155. Following the cut, fill the paragraph by selecting:
  156.  
  157.               Escape...Appearance...Paragraph...Fill
  158.  
  159.                          RESTORING CUTS
  160.  
  161.     Now, let's make a mistake -- on purpose!  Let's cut a line
  162. that we really don't want to.  Move the cursor to the first line
  163. of the paragraph and cut the entire line by selecting:
  164.  
  165.                    Escape...Cut...Entire line
  166.  
  167.      On some word processors, that line would be gone for good.
  168. And, if you really hadn't wanted to delete it, you would now have
  169. to write it again from memory.  Perfect Writer provides a
  170. safeguard against accidental cuts.
  171.  
  172.     Perfect Writer saves every deletion larger than a single
  173. character in a "Save Area." It can be recalled using the Paste
  174. option on the Top menu.  Without moving the cursor, select:
  175.  
  176.                          Escape...Paste
  177.  
  178.     The cut line is immediately restored.
  179.  
  180.      Perfect Writer saves consecutive cuts in the order in which
  181. they are cut.  As an example, cut the first line of the paragraph
  182. word by word, issuing several Cut...Word commands:
  183.  
  184.                        Escape...Cut...Word
  185.  
  186.      Then, issue the Paste command:
  187.                                               Escape...Paste
  188.  
  189.     All of the words--which were cut individually--are replaced
  190. in their correct order.
  191.  
  192.     One important thing to understand about the PASTE command is
  193. that it saves only the most RECENT cut.  That is, if you cut
  194. something, move the cursor, and then make another cut, Perfect
  195. Writer, thinking you don't want the first cut text any longer,
  196. DISCARDS it, saving only the second (most recent) cut that you
  197. make.  
  198.  
  199.     Whenever you make a cut, a tiny `plus sign' (+) appears at
  200. the right end of the Status Line.  This plus sign means that
  201. Perfect Writer is continuing to gather cut material into the
  202. Save Area.  Moving the cursor will cause this plus sign to
  203. disappear -- a signal that Perfect Writer has stopped gathering
  204. material.  Making any other cuts after this plus sign has
  205. disappeared will result in the first batch of cuts being LOST! 
  206.  
  207.     The PASTE command has some very handy applications.  In a
  208. later lesson, we will see how it is used in moving and copying
  209. material, not only within a document, but between documents.
  210.  
  211.  
  212.                        CUTTING LARGE AREAS
  213.  
  214.      Large, even VERY large, cuts are possible with Perfect
  215. Writer. You can cut not only words and lines of your document,
  216. but whole paragraphs and pages of text in one simple operation.
  217. For example, let us cut an entire paragraph, and then restore it
  218. using the Paste command.
  219.  
  220.     Position the cursor at the beginning of the paragraph, and
  221. select:
  222.                    Escape...Cut...Paragraph
  223.  
  224.     Perfect Writer cuts the entire paragraph.  Of course, as
  225. with other cuts, the paragraph has been saved temporarily in the
  226. Save Area and can be restored using the Paste command (Do this
  227. now).
  228.  
  229.      To cut an area larger than a paragraph, the procedure is
  230. slightly different. You must first mark the area to be cut using
  231. a special "Text marking" procedure.
  232.  
  233.      Move the cursor to the beginning of the letter by selecting
  234.  
  235.                     Escape...Backward...Home.
  236.  
  237.     Begin "Text marking" by selecting:
  238.  
  239.                       Escape...Text marking
  240.  
  241.     Now, move the cursor to the end of the letter, using the
  242. arrow keys.  As the cursor moves down the text, each line will
  243. begin blinking, showing you the area of text you will be cutting.
  244. Use the right arrow key, to move to the end of the last line.
  245. When the entire letter is marked (blinking), select the command
  246. for cutting a marked area:
  247.  
  248.                        Escape...Cut...Marked area
  249.  
  250.     Perfect Writer cuts the letter.  Of course, you can call it
  251. back using the Paste option. Do that now: 
  252.  
  253.                          Escape...Paste
  254.  
  255.  
  256.  
  257.  
  258.                         SAVING A DOCUMENT
  259.  
  260.  
  261.     When you have finished revising your letter, you will want
  262. to save it on disk.  With the cursor still in the top window,
  263. select the Save Document command:
  264.  
  265.  
  266.                     Escape...Documents...Save
  267.  
  268.     When Perfect Writer responds "Document to save," press the
  269. Return key. Perfect Writer immediately copies your letter to disk
  270. under the name you originally gave it, completely overwriting the
  271. old version.  During this operation the message "Saving: MYLETTER"
  272. is briefly displayed.
  273.  
  274.     IMPORTANT: The Save Document command is one you will want to
  275. use at regular intervals while working at the computer, during
  276. pauses in your work or ANYTIME you leave the computer.  This is
  277. important, because ACCIDENTS DO HAPPEN: your child touches the
  278. power switch, someone trips over the plug, unhooking you from the
  279. wall, lightning strikes, shutting off the electricity -- the
  280. possibilities are endless!  When such a thing happens, if only
  281. for an instant, everything in computer memory is LOST!  But, if
  282. you have been using the Save Document command faithfully, you can
  283. recover from such accidents, and what might have been a
  284. catastrophe, won't be.  So, guard against loss of data by using
  285. the Save Document command OFTEN.)
  286.  
  287.      The commands you have learned in this lesson will allow you
  288. to do a good deal of editing with Perfect Writer.  However,
  289. Perfect Writer provides a host of other commands:  for searching,
  290. handling two documents, copying and moving text, and many
  291. other operations, all of which make editing with Perfect Writer a
  292. marvelous experience.  In the lessons that follow, we will be
  293. examining these.
  294.  
  295.     When you are ready to exit Perfect Writer, select:
  296.  
  297.  
  298.                         Escape...Exit PW
  299.  
  300.       IMPORTANT:  Perfect Writer may respond with the message:
  301. "Document(s) not saved! Do you still wish to exit?" Answer 'y'
  302. for Yes, since you do not want to save any modifications you may
  303. have made to the lesson.
  304.  
  305.     Perfect Writer will return you to the PSI Menu, from where
  306. you may exit to your operating system or proceed to Lesson 4.
  307.  
  308.     To continue on to Lesson 4, select "Write or revise a
  309. document" from the PSI menu and type "lesson4," followed by the
  310. Return key.  
  311.  
  312.  
  313.                         End of Lesson 3