home *** CD-ROM | disk | FTP | other *** search
/ Kids Cube / 1_Art.iso / pep / chapt13.txt < prev    next >
Text File  |  1994-10-15  |  16KB  |  300 lines

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