home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / printing / nup_2 / !NUp / !Help < prev    next >
Text File  |  1997-12-19  |  12KB  |  317 lines

  1. !Help file for !NUp
  2.  
  3.  
  4. License
  5. =======
  6.  
  7. The copyright to this application, NUp, is retained by the author, Simon
  8. Melhuish. NUp may be copied freely for non-commercial use. Copies may be
  9. passed to a third party, for non-commercial use, so long as no charge is
  10. made, all files, including this one, are included, and the software and
  11. documentation are not altered in any way. You may not upload NUp to any kind
  12. of bulletin board system, or similar, without the express permission of the
  13. author, although you are free to distribute copies on a one-to-one basis by
  14. electronic mail systems. “Public domain” libraries are not permitted to
  15. distribute NUp without the express permission of the author. Anyone wishing
  16. to include NUp in a CD compilation, or similar, is required to contact me for
  17. permission. Newer versions of the software and/or the documentation may be
  18. made available at a future date.
  19.  
  20. I reserve the right to change the above conditions, or to withdraw or revoke
  21. this licence in relation to any or all users at any time and for any reason.
  22.  
  23. NUp comes with absolutely no warranty. I accept no responsibilty for any
  24. problems you might think are related to the use of this software. You use it
  25. entirely at your own risk.
  26.  
  27.  
  28. Description
  29. ===========
  30.  
  31. NUp stands for N-Up printing. It is a utility application that allows several
  32. drawfiles to be printed on a single page. Other file types may be loaded
  33. using a system of helper applications.
  34.  
  35.  
  36. Minimum requirements
  37. ======= ============
  38.  
  39. NUp should run on a 1 MB machine, with RISC OS 3.1 or later. NUp itself takes
  40. only 48 kB of memory. The toolbox modules are quite big though. You will need
  41. enough free memory in addition to allow for the size of your drawfiles, plus
  42. some for helper applications for other file types.
  43.  
  44.  
  45. Running NUp
  46. ======= ===
  47.  
  48. Run NUp by double clicking its icon in a filer window. The NUp icon should
  49. now appear on the iconbar. If it doesn't you'll probably see an error box
  50. telling you to run the !Printers application first. NUp needs to ask Printers
  51. about page sizes, etc, so you must have it running.
  52.  
  53. NUp will refuse to run if another copy is already running.
  54.  
  55. The text under the iconbar icon shows two numbers. The first is the number of
  56. panels on the page currently filled by drawfiles. At the start this will of
  57. course read '0'. The second number is the number of panels per page. The
  58. value depends upon how you have NUp set up.
  59.  
  60.  
  61. Interactive help
  62. =========== ====
  63.  
  64. NUp fully supports interactive help. Run a help application (e.g the RISC OS
  65. 3 !Help application). You will now be provided with help on the NUp iconbar
  66. icon, all the NUp windows and the NUp menu.
  67.  
  68.  
  69. Loading drawfiles
  70. ======= =========
  71.  
  72. To load a drawfile into NUp drag its icon onto the NUp icon on the iconbar.
  73. The NUp main window will now open, with your drawfile loaded into one of the
  74. panels on the page. Should you close the main window you can re-open it at
  75. any time by select-clicking the NUp iconbar icon. You may drag more than one
  76. file to NUp (the iconbar icon or the main window if it is open). For each
  77. drawfile loaded the loaded panel count will increment by one. Note that you
  78. can have more panels loaded than fit one one page. For files not currently
  79. displayed only the filename is kept by NUp, to reduce memory requirements. Be
  80. sure not to delete files dragged onto NUp but not yet displayed.
  81.  
  82.  
  83. Loading other file types
  84. ======= ===== ==== =====
  85.  
  86. NUp loads drawfiles only. However, it can automatically convert certain
  87. file types to draw format (the converted files will be held in the !Scrap
  88. application - the original files are preserved). This works by using "helper"
  89. applications. Currently these can handle text, sprites and most of the
  90. formats acceptable to ChangeFSI. For the latter, you must ensure that
  91. ChangeFSI has been booted (or "seen" by the filer). Some of these conversions
  92. require several steps, and so are not especially fast.
  93.  
  94.  
  95. Loading directories
  96. ======= ===========
  97.  
  98. When a directory is dropped onto NUp it will iterate through its contents.
  99. Subdirectories will be scanned recursively. If there are files not handled by
  100. NUp or its helpers they will be ignored without any error message. Image
  101. filing systems (e.g SparkFS archives, x-files, etc) are treated as if they
  102. were normal directories.
  103.  
  104.  
  105. The NUp menu
  106. === === ====
  107.  
  108. Clicking the menu button over the NUp iconbar icon or the main window pops up
  109. the NUp menu. This has entries for program info, options, scaling, flushing,
  110. printing and quiting NUp.
  111.  
  112.  
  113. Changing the setup
  114. ======== === =====
  115.  
  116. To change NUp's setup select the "Options..." entry on the NUp menu. The
  117. "Layout Options" dialogue box thus revealed allows you to set the page
  118. orientation (landscape or portrait), the page size, the number of panels
  119. across and down, and automatic page printing and flushing.
  120.  
  121. Normally you would leave the page size set to "Printer size". However, if you
  122. have special requirements, e.g to fit the NUp panels to a sheet of sticky
  123. labels, you might want to define a "Custom size". Click the radio button, and
  124. the custom dimension entries will become writeable. The values are all in mm.
  125. The width and height are the page size _including_ margins. The margins are
  126. all _inwards_ from the edge of the page. However, negative margin values are
  127. allowed.
  128.  
  129. When you are happy with the setup click "Set". If you want to revert to the
  130. old setup click "Cancel". If you want to preserve the setup for the next time
  131. NUp is run click "Save".
  132.  
  133.  
  134. Printing
  135. ========
  136.  
  137. When you want to print the page displayed in the main window, even if it is
  138. not full, select "Print..." from the NUp menu. This will pop up a dialogue
  139. box showing the currently selected printer and the number of copies the
  140. print. You may change the latter by entering a number or clicking the up or
  141. down bump icons.
  142.  
  143. When you are satisfied click "Print". Click "Cancel" to cancel the print
  144. operation.
  145.  
  146. You you want to set the number of copies only, for a future (automatic) print
  147. operation, set the number and click "Print" with _no_ files loaded.
  148.  
  149.  
  150. Flushing Panels
  151. ======== ======
  152.  
  153. There are two menu entries for flushing (clearing) panels. "Flush all" clears
  154. all currently loaded drawfiles from NUp. "Flush page" clears only the panels
  155. displayed in the main window. If there were more than a pageful of drawfiles
  156. loaded the next pageful will now be displayed in the main window.
  157.  
  158.  
  159. "Auto print" and "Auto flush"
  160. ============ === ============
  161.  
  162. These two options in the setup dialogue govern the automatic printing and
  163. flushing of the main window. With "Auto print" selected the page will be
  164. printed automatically as soon as it is filled. With "Auto flush" selected the
  165. page will be flushed automatically after it is printed. If you have a large
  166. number of files to print you can select both these options, so that when you
  167. drag them to NUp pages will be filled and printed automatically. There might
  168. be an unfilled page left at the end, in which case you will have to select
  169. "Print..." manually.
  170.  
  171.  
  172. Scaling
  173. =======
  174.  
  175. The "Scale" menu entry leads to a "Scale view" dialogue box. This has buttons
  176. to set the scaling to any of various preset values, or you can enter your
  177. desired value directly. There is a "Scale to fit" button, which will select
  178. the best scaling to fit the window to the current screen mode. Click on
  179. "Scale" when you are happy with the setting, or "Cancel" to use the old
  180. value.
  181.  
  182. Note that the size of the printed version is not affected by this scale
  183. factor.
  184.  
  185.  
  186. Advanced setup
  187. ======== =====
  188.  
  189. If you are familiar with the operation of system aliases you might like to
  190. use your boot sequence, etc, to redefine the way that NUp calls its helper
  191. applications. If you look at !NUp.!Run you will see lines defining aliases of
  192. the form Alias$NUpHelper_xxx, where xxx is the filetype. Redefining any of
  193. these after NUp has loaded will affect the conversion of any files of that
  194. type subsequently loaded.
  195.  
  196. For instance, you might enter the line:
  197.   Set Alias$NUpHelper_fff <NUp$Dir>.helpers.Txt2NUp %%0 Trinity.Medium 20
  198. This would change the font used for text files.
  199.  
  200. If you like, you can change the aliases completely, to point to your own
  201. helper applications.
  202.  
  203.  
  204. Helper applications
  205. ====== ============
  206.  
  207. The supplied helper applications can be found in !NUp.helpers
  208. These support the conversion of text to draw, sprite to draw, and other
  209. bitmap types to draw, via sprites.
  210.  
  211. The operation is fairly simple. When a non-draw file is dragged onto NUp, it
  212. checks to see if an alias is defined. If it is, it executes the alias. It is
  213. then the responsibility of the helper application, run by the alias, to load
  214. the file, convert it to draw format and save it to the NUp application. NUp
  215. sees this just as another draw file and loads it through the normal
  216. mechanism. However, NUp has to keep track of which file has a helper running.
  217. It will queue demands for helpers until the previous one has completed. This
  218. is because some filetypes (i.e sprite and text) can result in more than one
  219. output file (one per sprite image or one per page). To tell NUp when it has
  220. finished with a file the helper application must send a NUpHelperDyingMessage
  221. (0x4f441 - registered) message to NUp. The data part of this message is the
  222. name of the input file. In fact this is optional, but if not present the
  223. first byte of the data part must be 0. A trivial application in the helpers
  224. directory (!NUp.helpers.nupobit) performs this task.
  225.  
  226.  
  227. Controlling NUp remotely
  228. =========== === ========
  229.  
  230. The task for which I originally wrote NUp was to handle draw files produced
  231. automatically by another application. To fully automate everything it became
  232. apparent that I should add a facility for this application (or any other) to
  233. take control of NUp's setup, etc. This is done using the wimp message
  234. NUpControlMessage (0x4f440 - registered). The format of the data block is
  235. non-trivial, and possibly subject to change; so I won't describe it here.
  236. However, I have provided an application in the helpers directory called
  237. "nupcont". Running this will send control messages to NUp (make sure NUp is
  238. running first).
  239.  
  240. The switches to nupcont to set the type of control message are:
  241.  
  242.   f    flush page
  243.  
  244.   F    flush all
  245.  
  246.   p    print
  247.            c N  after 'p' sets number of copies to N
  248.          e.g nupcont -pc 4
  249.            prints 4 copies
  250.  
  251.   o    set options
  252.          parameters (compulsary) are:
  253.            x y landscape auto_print auto_flush
  254.          e.g nupcont -o 2 2 1 0 1
  255.            2 by 2, landscape, auto print off, auto flush on
  256.  
  257.   c    custom page size
  258.          parameters (compulsary) are (unit is 0.1 mm):
  259.            lmarg bmarg rmrg tmarg width height
  260.  
  261.   d    use default page size
  262.  
  263.  
  264. Tips
  265. ====
  266.  
  267. If NUp gets stuck waiting for a helper that failed (e.g a JPEG that ChangeFSI
  268. didn't understand) you can get it going again by doing a "flush".
  269.  
  270. If a file does not load due to lack of memory (i.e if you get this message:
  271. "Memory could not be allocated for the new diagram") once you have freed
  272. enough memory (by closing other applications, etc) NUp can be forced to have
  273. another go at loading the file by either clicking on a printer icon, or
  274. clicking "Set" in the "Layout Options" dialogue.
  275.  
  276.  
  277. Problems
  278. ========
  279.  
  280. At present I am not aware of any bugs. Please see below for contact details
  281. if you find any.
  282.  
  283. Be sure to have !Printers running before trying to run NUp.
  284.  
  285. If any of Acorn's toolbox modules (toolbox, window, drwafile, etc) were not
  286. supplied with this distribution you will find them on Acorn's FTP site.
  287.  
  288.  
  289. Contacting the author
  290. ========== === ======
  291.  
  292. I am currently contactable for suggestions, bug reports, flattery, etc, at:
  293.  
  294. sjm@jb.man.ac.uk
  295.  
  296. or
  297.  
  298. sjm@melhuish.demon.co.uk
  299.  
  300. Or by post as:
  301.  
  302. Dr. Simon J. Melhuish,
  303. N.R.A.L.,
  304. Jodrell Bank,
  305. Macclesfield,
  306. Cheshire.
  307. SK11 9DL
  308.  
  309.  
  310. You might like to visit my home page:
  311. http://www.jb.man.ac.uk/~sjm/
  312. where you will find information about me, and Jodrell Bank's work on the
  313. Cosmic Microwave Background.
  314.  
  315. My software page can now be access from the ProgInfo box off the iconbar
  316. menu. With your web browser loaded, click on "Web site".
  317.