home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / text / print / hwgpost / readme.first < prev    next >
Encoding:
Text File  |  1994-11-13  |  15.3 KB  |  408 lines

  1.  
  2. HWGPOST is not PD or 'free' SW!
  3. *******************************
  4.  
  5. Users of previous HWGPOST versions, please note: This text has changed in
  6. some places. Please read it again.
  7.  
  8.  
  9. What is this?
  10. =============
  11.  
  12. What you get here is the fifth version of HWGPOST that is publically
  13. available. It is rather raw. My intention is to abuse you as beta
  14. tester. ;^)
  15.  
  16. HWGPOST is project that I started because I had some problems with
  17. post.library 1.7 (and 1.86 where post.library stayed the same) not handling
  18. some PostScript code correctly. So I built on the post 1.7 source. HWGPOST
  19. is IMHO a major step towards PostScript Level 2 already and as time and
  20. motivation permits it will hopefully become a R&W book compliant PostScript
  21. Level 2 interpreter library with maybe some Display PostScript extensions.
  22.  
  23. Currently this archive is probably mostly useful to users of post.library
  24. up to 1.7.
  25.  
  26.  
  27. Major new features for HWGPOST beta 5
  28. =====================================
  29.  
  30.     - transparent DOS EPS file with binary headers handling.
  31.     - heavy magic to make old FreeHand files work.
  32.     - A fix to make cvi/cvr more flexible.
  33.     - HWGPOST.datatype
  34.     - default font lookup if a font is not available.
  35.  
  36. Sorry, setsystemparams and setpagedevice still have to wait.
  37.  
  38.  
  39. Requirements
  40. ============
  41.  
  42. OS:      >=V37 (= KS2.04)
  43.  
  44. Memory: As much as possible. HWGPOST tends to need noticeable more memory
  45.         than post.library 1.7 for complex PostScript files. You should have
  46.         at least 2MB to have fun with it.
  47.  
  48. HD:     Suggested
  49.  
  50.  
  51. Compatibility
  52. =============
  53.  
  54. HWGPOST should be compatible to all applications using post.library 1.7
  55. with the exception of the "callextfunc" and some other special non standard
  56. operators, e.g. I have found no problems with PostView. If you have any
  57. compatibility problems, please report them to me.
  58.  
  59.     AmigaTeX
  60.  
  61.         The AmigaTeX postscript files installPSfont.pro, psfilt.pro, and
  62.         pstopk.pro (in TEX:ps) contain redefinitions of the "findfont"
  63.         operator. If you comment out these definitions and replace the
  64.         init.ps, AmigaTeX works well with HWGPOST.
  65.  
  66.  
  67. Legal stuff/Distribution/bla
  68. ============================
  69.  
  70. I need to explain something first. I built on the post 1.7 sources by Adrian
  71. Aylward. He did an amazing job with post up to and including 1.7.  I do not
  72. claim to having put it all together myself from the the very first byte.
  73. But I have thrown out or reworked almost every single line of it and there
  74. is not much left that is not replaced or truly unchanged. Adrian
  75. Aylward set up many useful concepts. I reworked most of them and threw
  76. some out completely for going towards PostScript Level 2.
  77.  
  78. While it may not look so from the outside, HWGPOST is a major step away from
  79. its origins, and so I claim the right to have something new here. Note that I
  80. did not take over any code from other sources than post 1.7 except for
  81. some fixes to post 1.7 that people sent me (Thanks especially to Tom
  82. Rokicki for his fixes and other unrelated things). No GNU code, no IBM
  83. code, nor anything else. To be honest I tried to look at some ghostscript
  84. code once for a particular feature, but I found it so ugly that I threw it
  85. out faster than you can say "out" (I never even found the code for the
  86. feature I was looking for). This means, that all that you read in the
  87. history file is only related to my work.
  88.  
  89. Because of all the above, there will be different rules on HWGPOST that
  90. start out right _now_ even with this beta version:
  91.  
  92.     - Unlike with post 1.7, I am restricting commercial use somewhat:
  93.  
  94.           For use in commercial products or claims of compatibilty to
  95.           HWGPOST to enhance the value of a commercial product, you need to
  96.           contact me first to work something out.
  97.  
  98.           (Except for Tom Rokicki. He may use HWGPOST whenever he finds it
  99.            acceptable for AmigaTeX)
  100.  
  101.     - If you are just a user of HWGPOST, consider it Giftware. I like
  102.       money, too, but it doesn't have to be money. Anything nice will do.
  103.       Books, A3k-Accelerator/Networking boards, Ax000s, HDs, SW, non
  104.       technical things, whatever. If you intend to use HWGPOST and forget
  105.       about me intentionally, don't expect any support or bug fixes.
  106.  
  107.     - If you want to use HWGPOST commercially (e.g. to make money by using
  108.       it in your office), I feel that you should consider this very fact
  109.       when thinking about a gift. If you think HWGPOST to be good enough to
  110.       support you making a living, you should value it as such.
  111.  
  112. !!  - ANY USER OF HWGPOST IS REQUIRED TO REGISTER the use of HWGPOST
  113. !!    with me via email or smail.
  114.  
  115. All (important) rights reserved, so to speak. This is currently a private
  116. undertaking for fun, but I have not yet lost hope that there is maybe some
  117. reward in it for me, too. :-)
  118.  
  119. If you don't like the above, I don't want you to use HWGPOST. In fact I
  120. dare to declare use of HWGPOST then outright illegal. You should live with
  121. post 1.7 or something else then.
  122.  
  123. Oh well, if you are one of those using pirated [KS/WB] SW, don't bother
  124. asking for help. I won't help you and I specifically _don't_ allow you to use
  125. HWGPOST either in this case.
  126.  
  127.  
  128.  
  129. Why this beta?
  130. ==============
  131.  
  132. A lot of stuff is in place within HWGPOST already even though it is
  133. probably still far from completion. Actually it is so much that I hope to
  134. find bugs with your help now. I do not have test cases and PostScript files
  135. anymore to test all that PostScript Level 2. You will read some "untested"
  136. comments in the history file. I have checked for basic functionality with
  137. all my changes, but nobody knows where the bugs hide yet. So I am asking
  138. you for bug reports to make HWGPOST get better.
  139.  
  140. I am interested in:
  141.  
  142.     - Enforcer hits, mungwall problems, reproducable crashes
  143.     - deviation of behaviour compared to Adobe Level 2 products
  144.     - Short and precise PostScript example files that break with HWGPOST
  145.  
  146. and I need your complete computer and OS configuration with any bug report
  147. including any non C= WB things that you run like
  148. MagicMenu/ReqTools/CpuBlit.
  149.  
  150. I am also interested in a short note if you have files using specific
  151. Level 2 features available with HWGPOST that _don't_ break.
  152.  
  153. Thank you for your help!
  154.  
  155.  
  156. Common Problems, Q&A
  157. ====================
  158.  
  159. This will evolve into a list of problems people run into that are
  160. definitely not a problem with HWGPOST.
  161.  
  162.     Problem: PS files fail because the name "SymbolEncoding" is not known.
  163.  
  164.     Solution: Throw out the "Symbol" font you have, buy the Adobe Type
  165.               Manager and/or install a working Symbol font. You are using a
  166.               Symbol font that violates Adobe PostScript specs by relying
  167.               on an external definition of SymbolEncoding. This name does
  168.               not exist in the standard. Your current Symbol font is broken.
  169.  
  170.     Problem: A font does not work right or causes errors.
  171.  
  172.     Solution: Have you preregistered it correctly in HWGPOSTResources? If
  173.               you depend on the PATH_FONT feature, is the name truly
  174.               correct including case? Have you double checked?
  175.  
  176.               NOTE: If there is a bug with fonts, I will need the font
  177.                     to fix it. If it is a commercial font, you have to
  178.                     smail me one legal copy for my own use if I don't have
  179.                     it already. I won't and can't buy fonts just to get
  180.                     your problems fixed.
  181.  
  182.     Problem: A PS file causes "undefinedresource" errors.
  183.  
  184.     Solution: The most likely cause is that a font could not be found.
  185.  
  186.               Depending on your setup do some of this:
  187.  
  188.                 - check what fonts are needed (by reading the PS file
  189.                   or checking on the font search with a tool like
  190.                   snoopdos)
  191.  
  192.                 - if you do't have the font, you need to get it.
  193.  
  194.                 - Check if the HWGPOSTResources entry is correct if
  195.                   applicable.
  196.  
  197.                 - Check if ENV:HWGPOST/PATH_FONT is set up correctly
  198.                   if applicable.
  199.  
  200.                 - Set /@DefaultFontName (as in init.ps) to a default
  201.                   font name of your choice.
  202.  
  203.  
  204. What should a bug report look like?
  205. ===================================
  206.  
  207. I prefer bug reports created with the C= 'report' tool. Any bug report
  208. _must_ contain step by step instructions to reproduce the bug on a standard
  209. WB setup. Telling me "You need to install this pack of special OS hacks to
  210. make the bug appear or those non standard libraries from somewhere"
  211. usually leads to no result. If it is a bug related to a PostScript
  212. program, I'd need a short example program to reproduce it. If the bug
  213. is dependent on the exact layout of the program (e.g. with eexec
  214. problems), you should think about using lha and uuencode to preserve
  215. any spaces, tabs, newlines, or other special characters in the file
  216. that might otherwise be lost in email.
  217.  
  218. _AN_ABSOLUTE_MUST_ is the output of C:VERSION FULL (or a version comment in
  219. the file or printed in a window if C:VERSION does not yield useful
  220. results) _and_ C:LIST for any program involved. This includes but is not
  221. limited to:
  222.  
  223.     - The OS (Use ShowConfig)
  224.     - The frontend (post, postband, postview, etc)
  225.     - The library post.library
  226.     - The support files init.ps, HWGPOSTResources
  227.     - For printing, the printer driver
  228.  
  229. If you don't give me this information with each bug report, I might decline
  230. to look at it.
  231.  
  232. Oh, and please don't swamp me with hundreds of kilobytes email without
  233. asking first. Thank you.
  234.  
  235.  
  236. What is included?
  237. =================
  238.  
  239.     - README.FIRST      (This file)
  240.  
  241.     - post.library      (Using C= IEEE libs for all Amigas)
  242.  
  243.     - post.library.20   (Compiled for >=68020 using inline coprocessor math)
  244.  
  245.     - History           (Informal overview on the changes since post 1.7)
  246.  
  247.     - init.ps           (A new init.ps. You _will_ have to use it)
  248.  
  249.     - HWGPOSTResources  (Example declaration of available external
  250.                          resources, e.g. fonts. Referenced by init.ps)
  251.  
  252.     - PATH_FONT         (Example file to demonstrate automatic font lookup
  253.                          by the resource mechanism. This should be copied
  254.                          into a directory "ENV:HWGPOST".)
  255.  
  256.     - postlib.h         (The include file with some infos on how to use
  257.                          new features of HWGPOST)
  258.  
  259.     - hwgpostlib.doc    (Docs on how to use the programmers interface of
  260.                          HWGPOST for your own programs)
  261.  
  262.     - post              (A hacked up post 1.7 frontend to try out HWGPOST.
  263.                          Nothing fancy)
  264.  
  265.     - devs/datatypes/PostScipt
  266.     - devs/datatypes/PostScipt.info
  267.     - devs/datatypes/PostSciptBIN
  268.     - devs/datatypes/PostSciptBIN.info
  269.  
  270.                         (The datatype descriptor files for >= OS 3.0.
  271.                          To be placed into DEVS:datatypes)
  272.  
  273.     - classes/datatypes/HWGPOST.datatype
  274.  
  275.                         (The datatype for >= OS 3.0. To be placed into
  276.                          SYS:classes/datatypes)
  277.  
  278.  
  279. Don't ask me for my sources. Currently I have no plans whatsoever to
  280. release them in full or part to anyone. After reading through the History
  281. you might understand why.
  282.  
  283.  
  284. Special note on the 'post' frontend
  285. ===================================
  286.  
  287. The included 'post' frontend is a major (ugly) hackup of the original
  288. (ugly) source to suit my testing needs. It may or may not do what you
  289. expect and it might or might not be compatible to the original 'post'.
  290. Anything can happen. If you don't get the output you expect, please send me
  291. a detailed bug report and fall back on PostView or the old 'post' frontend
  292. for now.
  293.  
  294. To get more information on the supported options try 'post ?' and type
  295. another '?' at the command line template. For gray scale displays,
  296. play with the MAXDEPTH option. On an A2024, 'MAXDEPTH=2' and
  297. 'DISPLAYID 0x41000' give rather nice results compared to the standard
  298. B&W setup.
  299.  
  300. You won't be able to use your display HW to the fullest as the hacked up
  301. frontend does not check the display database at all.
  302.  
  303.  
  304. Special note on the HWGPOST.datatype
  305. ====================================
  306.  
  307. The datatype will render all PS files per default with 75 dpi in B&W.
  308. If no BoundingBox comment can be found in the file header the data
  309. type will currently default to an A4 page size (this might change
  310. though). You should read the History file for now to find out what
  311. kind of PostScript files the datatype will accept. Reading the History
  312. file might not be a bad idea in any case.
  313.  
  314. You can override this behaviour by setting an environment variable.
  315. These are the docs taken straight from the History file:
  316.  
  317.         - The datatype now optionally handles color displays,
  318.           densities and other default sizes. How? Via a new
  319.           environment variable: "ENV:HWGPOST/DATATYPECONFIG"
  320.  
  321.           The first line of this environment variable is evaluated in
  322.           DOS ReadArgs() style with this template:
  323.  
  324.               COLORS/K/N,BPC/K/N,XDEN/K/N,YDEN/K/N,DENSITY/K/N,
  325.               DEFWIDTH/K/N,DEFHEIGHT/K/N
  326.  
  327.             COLORS:     Either 1 or 3. Only B&W or RGB supported!
  328.             BPC:        Bits per color. Anything from 1 to 8. Note
  329.                         that BPC*COLORS must be <= 8 or strange things
  330.                         may happen due to the OS limit of 8 bitplanes.
  331.             XDEN,YDEN:  Densities (dpi). Default is 75 dpi.
  332.             DENSITY:    Convenience operator to set both densities.
  333.             DEFWIDTH,
  334.             DEFHEIGHT:  If no bounding box is specified in the file,
  335.                         these values are used. You need to specify
  336.                         them in units of 1/100 inch though, not in
  337.                         1/72 inch like PostScript likes it. The
  338.                         default values for these parameters will give
  339.                         an A4 like bitmap size.
  340.  
  341.            This environment variable should do the job for a while.
  342.  
  343. Note that the datatype will always display only the first page of any
  344. file. This is intentional as there is no reliable, easy, or fast way
  345. to render an arbitrary page.
  346.  
  347. I tested the datatype only with OS 3.1
  348.  
  349.  
  350. Installation
  351. ============
  352.  
  353. 1. Save your existing post.library, init.ps, and post. HWGPOST might break your
  354.    setup and I don't want you to be out in the cold.
  355.  
  356. 2. I am sure you have the POST: and PSFONTS: assigns that are needed for post 1.7.
  357.    If not. Create them, and put all your type 1 fonts into PSFONTS:
  358.  
  359. 3. Put init.ps, HWGPOSTResources, and (if you want to) post into POST:
  360.  
  361. 3.1 Edit HWGPOSTResources for _your_ font setup in PSFONTS: You'll probably
  362.     need to throw out and add some lines.
  363.  
  364. 3.2 Put PATH_FONT into "ENV:HWGPOST". Edit it to suit your needs. For a
  365.     permanent setup, copy it into ENVARC:HWGPOST, too!
  366.  
  367. 4. Copy your choice of post.library[.020] into LIBS:
  368.  
  369. 5. Shut down any running applications using post.library and do an "avail
  370.    flush".
  371.  
  372. 6. If you run >= OS 3.0, you can install the datatype files. You might
  373.    want to reboot after doing so to be on the safe side.
  374.  
  375. 7. Try HWGPOST and send me detailed bug reports with reproducable examples!
  376.  
  377.  
  378. My TODO list
  379. ============
  380.  
  381. Well, lots of stuff as time permits:
  382.  
  383.     - Finish up Binary Object Sequences
  384.     - User path operators
  385.     - missing filters
  386.     - device parameters
  387.     - insideness operators
  388.     - missing color spaces
  389.     - rest of the Level 2 graphics stuff
  390.     - VM garbage collection
  391.     - whatever else is needed for a languagelevel of 2
  392.  
  393.  
  394. My Address
  395. ==========
  396.  
  397.  *  Heinz Wrobel
  398.  *  Karlstr. 16
  399.  *  82131 Gauting
  400.  *  Germany
  401.  *  FAX +49 89 850 51 25 (I don't like phone calls)
  402.  *  <heinz@hwg.muc.de>
  403.  
  404. Have fun!
  405.  
  406. Heinz Wrobel
  407.  
  408.