home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / postscri / 5625 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  2.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!news.utdallas.edu!corpgate!bnrgate!nott!cunews!revcan!ecicrl!clewis
  2. From: clewis@ferret.ocunix.on.ca (Chris Lewis)
  3. Newsgroups: comp.lang.postscript
  4. Subject: Re: Text formatters turn PostScript upside down -- why?
  5. Message-ID: <4010@ecicrl.ocunix.on.ca>
  6. Date: 20 Nov 92 00:28:22 GMT
  7. References: <1992Nov14.222532.8727@cs.brown.edu> <4438@vidiot.UUCP>
  8. Organization: Elegant Communications Inc., Ottawa, Canada
  9. Lines: 36
  10.  
  11. In article <4438@vidiot.UUCP> brown@vidiot.UUCP (Vidiot) writes:
  12. |In article <1992Nov14.222532.8727@cs.brown.edu> jgm@cs.brown.edu (Jonathan Monsarrat) writes:
  13. |<Why do text formatters/converters like dvips (for TeX) and grops (for Troff)
  14. |<define everything upside down in PostScript?
  15.  
  16. |<Just to be mean?
  17.  
  18. |Upside down?  Nope.  I believe it has to do with printing the page from top
  19. |down, which is how the text is formatted.  But, PostScript's origin is the
  20. |lower-left corner.  So, groff moves it to the top-left corner, so that the
  21. |output can be top down.
  22.  
  23. |OK, so it looks like the document should print upside-down, but it really
  24. |doesn't.  I'm not positive (James Clark will have to say for sure), but I
  25. |think that the fonts are re-encoded upside-down.  I couldn't find anyplace
  26. |else where it could be.  But a little test I did with my stuff seems to prove
  27. |out that theory.
  28.  
  29. |So, in the end, everything comes out right-side up.
  30.  
  31. |Is it mean to upside-down the upside-down?  While it is a necessary evil,
  32. |it definately keeps you on your PostScript toes.
  33.  
  34. It's not necessary.
  35.  
  36. This is really simply a matter of the guy writing the driver deciding
  37. which set of coordinates that he wants to think in.  As a counter example,
  38. the PostScript that Psroff generates is right-side-up w.r.t. PostScript
  39. with no rotates, scales or translates of any kind.  Then I didn't have
  40. to think about font transform matrices, and it only costs a subtraction
  41. in the driver.  There is no real penalty, because psroff has to cope
  42. with multiple frame resolutions/orientations anyways.
  43. -- 
  44. Chris Lewis; clewis@ferret.ocunix.on.ca; Phone: Canada 613 832-0541
  45. Psroff 3.0 info: psroff-request@ferret.ocunix.on.ca
  46. Ferret list: ferret-request@ferret.ocunix.on.ca
  47.