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