home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / p / pep13.zip / CHAPT13.TXT < prev    next >
Text File  |  1992-12-17  |  14KB  |  268 lines

  1. <Chapter 13:  Add-ons>
  2.      Add-ons are PEP modules that are loaded only when you request them.
  3. There are six add-ons supplied with PEP:
  4.  
  5.   The PIC add-on <[13.7]> reads a 123/SYMPHONY graph file which becomes
  6. the open object.
  7.   The BITMAP add-on <[13.2]> exports pictures to files in the PCX format.
  8.   The FRAME add-on <[13.5]> generates decorative borders by replicating
  9. objects.
  10.   The GRID add-on <[13.6]> facilitates inserting grids of horizontal and
  11. vertical lines.
  12.   The BLOT add-on <[13.3]> imports text with word wrap from ASCII files.
  13.   The DRAT add-on <[13.4]> creates an organization chart from an ASCII
  14. input file.
  15.  
  16.      In order to use an add-on, you must first load it into your
  17. computer's memory by using the ADD-ONS/INSTALL command. Up to eight
  18. add-ons may be installed into PEP. When an add-on is installed its name
  19. appears under the INSTALL command in a slot in the ADD-ONS menu. These
  20. menu slots are numbered 1 through 8. To invoke an add-on, type the digit
  21. (1 through 8) of the menu item into which it has been installed.
  22.  
  23. <Section 13.1:  Install>
  24.      The ADD-ONS/INSTALL command displays a menu of the names of all files
  25. in the home directory with the extension ADD. Choose a name to load the
  26. corresponding add-on into PEP. That add-on can then be executed from the
  27. ADD-ONS menu. The name of the add-on appears in the ADD-ONS menu next to
  28. the digit that you type to invoke the add-on.
  29.  
  30. <Section 13.2:  The BITMAP Add-on>
  31.      Use the BITMAP add-on to output (or export) a picture of the open
  32. object to a file in the PCX format. Pictures in PCX files are accepted by
  33. many word processors and publishing programs. By using the BITMAP add-on,
  34. you will be able to incorporate pictures drawn in PEP, into documents
  35. produced by any of these compatible packages.
  36.  
  37.      Note: the PCX pictures produced by PEP are monochrome, black and
  38. white images. Picture elements in background color are drawn white, and
  39. elements in any other color are drawn black.
  40.  
  41.      When running the BITMAP add-on, first use the ROTATION, STRETCHES,
  42. IMAGE, and WINDOW commands, if necessary, to define the properties of the
  43. image that you want to produce. These commands are similar to the
  44. corresponding commands that appear in the PRINT menu as described in
  45. Chapter <[6]>. Then use the OUTPUT command to enter a file name, and
  46. output a PCX image to that file.
  47.  
  48. <Section 13.2.1:  Output>
  49.      After you have specified the image that you want to export using the
  50. ROTATION, STRETCHES, IMAGE, and WINDOW commands described below, use the
  51. ADD-ONS/BITMAP/OUTPUT command to create a bitmap image according to these
  52. specifications, and to output it to a file. Type the command letter, and
  53. then enter a file name. A file is created with that name, and a bitmap
  54. image is written to the file in the PCX format. The file is given the
  55. extension PCX.
  56.  
  57. <Section 13.2.2:  Rotation>
  58.      Use the ADD-ONS/BITMAP/ROTATION command to export a rotated picture
  59. of the open object. Press the command letter to display a menu of the
  60. eight rotation options: 0, 90, 180, 270 (degrees clockwise), \, -, /, |
  61. (mirror images).
  62.  
  63. <Section 13.2.3:  Stretches>
  64.      Use the ADD-ONS/BITMAP/STRETCHES command to control the magnification
  65. applied to the open object when it is being written to the output file.
  66. This XY input command allows you to set either or both of the X and Y
  67. stretch factors. These numbers may be integers, decimals or fractions. The
  68. maximum stretch is 255.
  69.  
  70.      Note: the stretch factors are overridden when an output image size
  71. has been requested. A side effect of executing the STRETCHES command is to
  72. turn the image size override off.
  73.  
  74. <Section 13.2.4:  Image>
  75.      Using the ADD-ONS/BITMAP/IMAGE command, you can explicitly set the
  76. number of pixels wide and the number of pixels high that the exported PCX
  77. picture will be. There are two modes: ON and OFF. If the mode is ON, the
  78. output image is forced to be a specified size. When the open object is
  79. exported, PEP will ignore the stretch factors displayed in the BITMAP menu
  80. and calculate new ones. The new stretches are chosen so that the exported
  81. picture will have the required size. If the mode is OFF, the output image
  82. size is determined by the stretches and the size of the open object. The
  83. IMAGE command toggles the image mode between ON and OFF. When you turn
  84. IMAGE ON, the command becomes an XY input command so that you can set the
  85. horizontal (X) and vertical (Y) image size that you want PEP to produce.
  86. Note: executing the STRETCHES command described above automatically turns
  87. the image mode OFF.
  88.  
  89. <Section 13.2.5:  Window>
  90.      If you do not want to export the entire open object, you can use the
  91. ADD-ONS/BITMAP/WINDOW command to specify a rectangular sub-window which
  92. can then be exported. There are two windowing modes: OFF and ON. Press the
  93. command letter to toggle between these modes. The boundary of the window
  94. is given by four coordinates which appear in two sets of XY input lines
  95. under the command name in the menu. You can type in these numbers, using
  96. WINDOW as an XY input command.
  97.  
  98.      Or you can specify the window graphically using the cursor. Proceed
  99. as follows: press the command letter to turn windowing ON. Then position
  100. the cross-hair cursor at one corner of the desired window and press
  101. RETURN. The cross-hair is replaced by a stretchable box cursor. Position
  102. the mobile corner of that cursor at the opposite corner of the desired
  103. window and press RETURN again. The area outlined by the box cursor becomes
  104. the exported sub-window.
  105.  
  106. <Section 13.3:  The BLOT Add-on>
  107.      The BLOT add-on can be used to import text into boxes in the open
  108. object with word wrap and to import text from a file into multiple
  109. objects. Use the FILE command to identify the source text file and the
  110. SIZE command to specify the size of box to receive the text. When the
  111. source file has been specified, a cross-hair cursor appears. Position this
  112. cursor at the upper left corner of the area you want to fill and press
  113. RETURN. Text from the file is imported and flows into a box of the
  114. specified size at the chosen point. If the source file contains more text,
  115. you can position the cross-hair cursor and press RETURN again to continue
  116. the import at another point. If you leave the add-on to close the open
  117. object, the source text file remains open and you can continue the text
  118. import into a new object.
  119.  
  120. <Section 13.3.1:  File>
  121.      Use the ADD-ONS/BLOT/FILE command to specify the source text file.
  122. Press the command letter to get a menu of all files in the current
  123. directory with the extension TXT. Choose one to be the source for text
  124. import.
  125.  
  126. <Section 13.3.2:  Size>
  127.      Use the ADD-ONS/BLOT/SIZE command to set the width and depth of the
  128. box into which text will flow. This is an XY input command.
  129.  
  130. <Section 13.4:  The DRAT Add-on>
  131.      Use the DRAT add-on to create an org-chart or tree diagram from an
  132. ASCII input file. Indentation of lines in the input determines the
  133. hierarchy in the tree that is created.
  134.  
  135. <Section 13.4.1:  Draw>
  136.      When you invoke the ADD-ONS/DRAT/DRAW command, a menu is displayed of
  137. all the files in the current directory with the extension TXT. When you
  138. select one of these, the open object is cleared, the selected file is
  139. read, and a tree-diagram is constructed from it.
  140.  
  141.      The construction of the tree diagram is shown in <[FIG25]>. The nodes
  142. of this tree are the individual lines of text in the source file. The
  143. hierarchy in the tree is determined by the indentation of the text in the
  144. file. The more indented a line is in the source file, the further down it
  145. appears in the diagram. This new picture becomes the open object. The
  146. prior contents of the open object are lost.
  147.  
  148. <Section 13.5:  The FRAME Add-on>
  149.      Using the FRAME add-on, you can add borders to the open object. You
  150. can control the size and position of the borders, and by nesting multiple
  151. borders, you can control the thickness and complexity. The FRAME add-on
  152. generates these borders by replicating objects in a rectangular pattern.
  153. One such rectangle is called a frame.
  154.  
  155.      Each frame produced by this add-on is a GROUP. It acts as a single
  156. element for DELETE, MODIFY, and COLLECT operations. If you want to operate
  157. on the individual objects that compose the frame, you must first use the
  158. MODIFY/EXPLODE <[4.23]> command to ungroup it.
  159.  
  160.      To create a frame, first use the BOX command to set the size and
  161. position of the border you want to create. Then use the FILE and OBJECT
  162. commands to construct the border.
  163.  
  164. <Section 13.5.1:  File>
  165.      Use the ADD-ONS/FRAME/FILE command to identify the source file for
  166. the objects from which the frame is to be constructed. Press the command
  167. letter to display a name menu of all files in the current directory with
  168. the extension PDL and choose a source file from this menu.
  169.  
  170.      Two collections of objects specifically designed for creating frames
  171. have been included with PEP. These are the files FRAME.PDL and
  172. NEWFRAME.PDL. Of course, you can also use objects from any other files to
  173. construct frames including objects that you have created yourself.
  174. However, note that new objects must first be saved to a file on disk
  175. before they can be accessed by the FRAME add-on.
  176.  
  177. <Section 13.5.2:  Object>
  178.      Use the ADD-ONS/FRAME/OBJECT command to select an object from the
  179. source file and construct a border by replicating it. If an object with
  180. that name is already present in the loaded PDL file, that object is used
  181. to construct the frame. Otherwise, the object you chose is first imported
  182. from the source file, and then used to build the frame.
  183.  
  184.      Once an object has been specified, FRAME checks the source file for a
  185. companion object to use at the corners of the frame. By convention, the
  186. name of a companion object is the tilde character (~) followed by the
  187. original object name. If no companion object is found, the original object
  188. is used for both the edges and the corners of the frame.
  189.  
  190.      Use the OBJECT command a second time if you want to construct another
  191. frame immediately inside the one just created. This new frame is nested
  192. within the old one. Any number of frames may be so nested to create a
  193. border of arbitrary thickness and complexity. The border shown in
  194. <[FIG19]> is made up of three nested frames. To construct a new frame
  195. which is not nested, simply use the BOX command described below to define
  196. a new position for the next constructed frame.
  197.  
  198. <Section 13.5.3:  Box>
  199.      Use the ADD-ONS/FRAME/BOX command to define the size and position of
  200. the frame to be created. Press the command letter, position the
  201. stretchable box cursor, and press RETURN. The next created frame is
  202. constructed inside the box so defined. Alternatively, the four coordinates
  203. defining the box can be typed directly into either or both of the two XY
  204. coordinate pairs following the BOX command menu item.
  205.  
  206. <Section 13.5.4:  Replace>
  207.      Use the ADD-ONS/FRAME/REPLACE command to replace the most recently
  208. created frame with another. Press the command letter to enable replacing,
  209. then use the OBJECT command above to construct a new frame which then
  210. replaces the old one.
  211.  
  212. <Section 13.6:  The GRID Add-on>
  213.      The GRID add-on can be used to insert grids of horizontal and
  214. vertical lines into the open object. First use the NUMBER command to
  215. specify how many rows and columns you want and use the UNITS command to
  216. set the width and height of a grid cell. Then position the cross-hair
  217. cursor and press RETURN. A grid of horizontal and vertical lines is
  218. inserted with its upper left corner placed at the cursor position. The
  219. grid is a GROUP. It acts as a single element for DELETE, MODIFY, and
  220. COLLECT operations. If you want to operate individually on the horizontal
  221. and vertical lines that compose the grid, you must first use the
  222. MODIFY/EXPLODE command <[4.23]> to ungroup it.
  223.  
  224. <Section 13.6.1:  Number>
  225.      The ADD-ONS/GRID/NUMBER command is an XY input command. Use it to set
  226. the number of grid spaces required horizontally and vertically. X equals
  227. the number of columns in the grid, and Y equals the number of rows.
  228.  
  229. <Section 13.6.2:  Unit-size>
  230.      The ADD-ONS/GRID/UNIT-SIZE command is an XY input command. Use it to
  231. set the grid line spacing horizontally and vertically. X equals the width
  232. of one grid cell, and Y equals the height
  233.  
  234. <Section 13.7:  The PIC Add-on>
  235.      Use the PIC add-on to import PIC format graph files created by Lotus
  236. 1-2-3 and Symphony.
  237.  
  238.      The registered version of PEP includes a special font file, LICS.FON,
  239. that supports the Lotus International Character Set. LICS.FON is similar
  240. in appearance to BORIC.FON, but the bold and italic characters have been
  241. replaced by the extended characters of the LICS set. If an imported PIC
  242. graph file contains international characters, you can display these in PEP
  243. by installing the LICS font as PEP font 0 or 1. (See SETUP/INSTALL/0-FONT
  244. <[12.5.1]>). Normally, the first title in a PIC graph uses font 0, and all
  245. other text uses font 1. Note: the LICS font is not part of the shareware
  246. PEP package.
  247.  
  248. <Section 13.7.1:  Load>
  249.      The ADD-ONS/PIC/LOAD command displays a name menu of all the files in
  250. the current directory with the extension PIC. Use it to choose the PIC
  251. file you wish to import. The imported PIC data becomes the open object.
  252. The former contents of the open object are lost.
  253.  
  254. <Section 13.7.2:  Size>
  255.      Use the ADD-ONS/PIC/SIZE command to control the size of the imported
  256. PIC file images. You may set a size explicitly, or import the file in its
  257. native size.
  258.  
  259. <Section 13.7.3:  Patterns>
  260.      When you import a PIC file, you can optionally convert solid fill
  261. regions into pattern fill. This feature is useful for adapting color PIC
  262. files for black and white printing. The ADD-ONS/PIC/PATTERNS command is a
  263. multiple choice command with two values: ENABLED and DISABLED. Press the
  264. command letter to toggle between these two choices. If PATTERNS are
  265. ENABLED (the default choice), then solid regions in the PIC data are
  266. automatically converted to pattern fill. The pattern used is determined by
  267. the color of the region.