home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / editor / ws_train.arc / EX4.WS < prev    next >
Text File  |  1987-01-30  |  6KB  |  130 lines

  1.                   EXERCISE 4:  BLOCK OPERATIONS
  2.  
  3.      Mos⌠ oµ thσ command≤ wσ havσ seeε s∩ fa≥ worδ oε certaiε ì
  4. amount≤ oµ text«  Fo≥ examplσ Ctrl-∙ delete≤ onσ line¼ Ctrl-⌠ ì
  5. delete≤ onσ word¼ Ctrl-τ delete≤ onσ character¼ anΣ Ctrl-Γ ì
  6. reformat≤ onσ paragraph.
  7.  
  8.      Iε thi≤ exercise¼ wσ wil∞ seσ ho≈ t∩ operatσ oε block≤ oµ ì
  9. tex⌠ oµ an∙ sizσ yo⌡ choose¼ froφ ß singlσ characte≥ t∩ you≥ ì
  10. entirσ document«  Yo⌡ wil∞ learε t∩ movσ block≤ oµ text¼ t∩ cop∙ ì
  11. them¼ t∩ deletσ theφ froφ thσ document¼ anΣ t∩ savσ theφ oε disk«  ì
  12. But¼ befo≥ yo⌡ caε tr∙ an∙ oµ thesσ operations¼ yo⌡ mus⌠ learε ì
  13. ho≈ t∩ specif∙ thσ tex⌠ t∩ bσ operateΣ upon.
  14.  
  15. SELECTING A TEXT BLOCK
  16.  
  17.      Tw∩ command≤ arσ useΣ fo≥ selectinτ ß blocδ oµ text║ start-ì
  18. blocδ i≤ Ctrl-k-Γ anΣ enΣ-blocδ i≤ Ctrl-k-k«  Tr∙ theφ ou⌠ b∙ ì
  19. firs⌠ movinτ thσ curso≥ t∩ herσ ╪ anΣ hittinτ Ctrl-k-b¼ theε ì
  20. movinτ i⌠ t∩ herσ ╪ anΣ hittinτ Ctrl-k-k«  (Alternatively¼ yo⌡ ì
  21. can use function keys FN7 and FN8).
  22.  
  23.      Wha⌠ happened┐  A≤ sooε a≤ yo⌡ markeΣ thσ beginninτ oµ thσ ì
  24. block¼ aε off-colo≥ "<B>ó appeareΣ oε thσ screen¼ t∩ reminΣ yo⌡ ì
  25. wherσ thσ beginninτ was«  Wheε yo⌡ completeΣ thσ blocδ b∙ hittinτ ì
  26. Ctrl-k-k¼ i⌠ changeΣ color¼ s∩ tha⌠ yo⌡ coulΣ seσ wha⌠ wa≤ ì
  27. marked.
  28.  
  29.      If¼ wheε yo⌡ seσ thσ blocδ displayed¼ yo⌡ seσ tha⌠ yo⌡ diΣ ì
  30. no⌠ marδ i⌠ exactl∙ a≤ yo⌡ wan⌠ i⌠ t∩ be¼ i⌠ i≤ ß simplσ matte≥ ì
  31. t∩ fi° i⌠ up«  Fo≥ instance¼ iµ thσ enΣ oµ thσ blocδ i≤ iε thσ ì
  32. wronτ place¼ movσ thσ curso≥ t∩ thσ poin⌠ wherσ yo⌡ wanteΣ i⌠ t∩ ì
  33. enΣ anΣ hi⌠ Ctrl-k-δ again«  Wha⌠ coulΣ yo⌡ d∩ iµ thσ beginninτ ì
  34. of the block were not exactly where you wanted it to be? (1)
  35.  
  36.      Tr∙ movinτ thσ blocδ limit≤ around«  Selec⌠ thi≤ entirσ ì
  37. paragrapΦ a≤ ß block«  No≈ changσ thσ limit≤ s∩ tha⌠ jus⌠ thi≤ ì
  38. sentencσ i≤ thσ selecteΣ block«  ╔ thinδ yo⌡ caε ge⌠ thσ hanτ oµ it.
  39.  
  40. OPERATIN╟ O╬ SELECTE─ BLOCK╙ -- MOVIN╟ ┴ BLOCK
  41.  
  42.      Beinτ ablσ t∩ marδ ß blocδ oµ tex⌠ woulΣ no⌠ bσ ver∙ ì
  43. interestinτ iµ wσ coulΣ no⌠ theε operatσ oε thσ selecteΣ block«  ì
  44. Let'≤ star⌠ b∙ movinτ thi≤ paragraph«  Firs⌠ selec⌠ thσ paragrapΦ ì
  45. usinτ Ctrl-k-Γ anΣ Ctrl-k-k«  Theε movσ thσ curso≥ t∩ thσ thσ ì
  46. placσ yo⌡ wan⌠ t∩ movσ thσ blocδ to«  Tr∙ puttinτ i⌠ jus⌠ beforσ ì
  47. thσ headinτ abovσ thi≤ paragrah«  Wheε yo⌡ havσ thσ curso≥ a⌠ thσ ì
  48. ne≈ location¼ givσ thσ move-blocδ command¼ Ctrl-k-v«  
  49.  
  50.      A≤ yo⌡ see¼ blocδ operation≤ arσ ß two-ste≡ process«  firs⌠ ì
  51. yo⌡ selec⌠ thσ blocδ t∩ bσ operateΣ on¼ theε yo⌡ givσ thσ commanΣ ì
  52. to carry out the appropriate operation.
  53.  
  54.      Caε yo⌡ movσ thσ markeΣ paragrapΦ bacδ t∩ it≤ origina∞ ì
  55. location? (2)  Do it.è
  56. OPERATIN╟ O╬ SELECTE─ BLOCK╙ -- COPYING ┴ BLOCK
  57.  
  58.      Copyinτ ß blocδ i≤ simila≥ t∩ movinτ one«  Wha⌠ i≤ thσ ì
  59. difference? (3⌐  T∩ tr∙ ou⌠ thσ block-cop∙ command¼ yo⌡ mus⌠ firs⌠ ì
  60. select a block of text.  Select this paragraph.
  61.  
  62.      Okay¼ no≈ tha⌠ yo⌡ havσ selecteΣ thσ abovσ paragraph¼ movσ ì
  63. thσ curso≥ t∩ thσ "Xó whicΦ follow≤ thi≤ paragrapΦ anΣ givσ thσ ì
  64. block-cop∙ command¼ Ctrl-k-c«   
  65.  
  66. X
  67.  
  68.      D∩ yo⌡ seσ wha⌠ happened┐  ┴ duplicatσ oµ thσ selecteΣ tex⌠ ì
  69. wa≤ inserteΣ jus⌠ beforσ thσ "X,ó bu⌠ thσ origina∞ paragrapΦ wa≤ ì
  70. no⌠ changed«  Thu≤ block-cop∙ differ≤ froφ block-move¼ whicΦ ì
  71. erase≤ thσ orignia∞ afte≥ i⌠ i≤ moved.
  72.  
  73. OPERATIN╟ O╬ SELECTE─ BLOCK╙ -- DELETING ┴ BLOCK
  74.  
  75.      Yo⌡ caε als∩ deletσ ß blocδ oncσ i⌠ i≤ selected«  Tr∙ i⌠ ou⌠ ì
  76. b∙ markinτ thσ followinτ paragraph¼ anΣ givinτ thσ block-deletσ ì
  77. command¼ Ctrl-k-y« 
  78.  
  79. áááááááááá     No¼ don'⌠ deletσ me!!í  Please¼ I'φ ì
  80. áááááááááát∩ younτ t∩ die!!í  Havσ yo⌡ n∩ mercy?┐  ì
  81. ááááááááááDon'⌠ senΣ mσ t∩ worΣ processinτ ì
  82. ááááááááááheaven!!!!
  83.  
  84.      Bσ cautiou≤ wheε yo⌡ usσ thσ block-deletσ command¼ becausσ ì
  85. oncσ yo⌡ issuσ it¼ thσ selecteΣ tex⌠ i≤ gone«  Whilσ somσ ì
  86. program≤ providσ aε "undoó commanΣ fo≥ deletions¼ WordSta≥ doe≤ ì
  87. not.
  88.  
  89. OPERATIN╟ O╬ SELECTE─ BLOCK╙ -- SAVING IT ON DISK
  90.  
  91.      Iµ yo⌡ writσ somethinτ tha⌠ yo⌡ thinδ migh⌠ bσ hand∙ iε ì
  92. othe≥ documents¼ yo⌡ caε savσ i⌠ oε thσ disδ fo≥ futurσ use«  A≤ ì
  93. witΦ move¼ copy¼ anΣ delete¼ yo⌡ begiε b∙ specifyinτ thσ blocδ t∩ ì
  94. be operated on.
  95.  
  96.      Oncσ thσ blocδ i≤ selected¼ yo⌡ givσ thσ block-writσ ì
  97. command¼ Ctrl-k-w«  Tr∙ i⌠ ou⌠ b∙ markinτ thσ followinτ ì
  98. paragraph«  Wheε i⌠ i≤ marked¼ hi⌠ Ctrl-k-w«  Oµ course¼ thσ ì
  99. prograφ wil∞ neeΣ ß filσ namσ iµ i⌠ goinτ t∩ writσ thσ blocδ oε ì
  100. disk¼ s∩ yo⌡ wil∞ bσ askeΣ t∩ suppl∙ one«  Namσ i⌠ TES╘ anΣ savσ ì
  101. i⌠ oε you≥ flopp∙ disδ (don'⌠ forge⌠ t∩ suppl∙ thσ drivσ a≤ wel∞ ì
  102. as the file name).
  103.  
  104.                Thi≤ paragrapΦ i≤ s∩ ho⌠ tha⌠ i⌠ i≤ ì
  105. áááááááááágoinτ t∩ bσ saveΣ oε thσ disk«  I⌠ mus⌠ ì
  106. áááááááááábσ ß mucΦ bette≥ paragrapΦ thaε thσ onσ ì
  107. ááááááááááwσ jus⌠ deleted«  I⌠ ha≤ gooΣ breeding¼ ì
  108. áááááááááácome≤ froφ ß gooΣ family«  Clas≤ wil∞ ì
  109. áááááááááátell.è
  110.      A≤ yo⌡ see¼ thσ blocδ i≤ stil∞ includeΣ iε thσ document¼ bu⌠ ì
  111. therσ i≤ als∩ ß cop∙ oε your disk¼ unde≥ thσ namσ TEST.  Onσ ì
  112. las⌠ questioε -- wha⌠ woulΣ havσ happeneΣ iµ therσ werσ alread∙ ß ì
  113. filσ nameΣ TEST oε you≥ disk┐ (4⌐ (tr∙ aε experimen⌠ insteaΣ oµ ì
  114. just looking at the answer). 
  115.  
  116. RECAPPING
  117.  
  118.      WitΦ thi≤ exercise¼ yo⌡ havσ learneΣ t∩ selec⌠ o≥ designatσ ì
  119. arbitrar∙ block≤ oµ tex⌠ and¼ oncσ selected¼ t∩ operatσ oε them«  ì
  120. Yo⌡ learneΣ t∩ move¼ copy¼ o≥ deletσ ß selecteΣ blocδ o≥ t∩ writσ ì
  121. ß cop∙ oµ thσ blocδ oε disk«  Thσ followinτ command≤ werσ ì
  122. covered║  
  123. ì
  124.           Ctrl-k-b  (or FN7)
  125. ááááááááááCtrl-k-k  (or FN8)
  126. ááááááááááCtrl-k-v
  127. ááááááááááCtrl-k-c
  128. ááááááááááCtrl-k-y
  129. ááááááááááCtrl-k-w
  130.