home *** CD-ROM | disk | FTP | other *** search
- P S F I N S T A L L A T I O N (manual)
- =================================
- and other notes
-
- If you are using Xenix 2.3.x, you shoud be reading the file
-
- Readme.Xenix
-
- and use: Install.xenix
-
- If yow are using AT&T Unix 3.2.2, you should be reading the file
-
- Readme.Unix
-
- and use: Install.unix
-
- If your are using a different system or wish to manually install psf,
- you are reading the correct file. (you might also wish to read
- Readme.Unix to get some additional information..)
-
-
-
- MANUAL INSTALLATION
- ^^^^^^^^^^^^^^^^^^^
-
- 1. Edit the Makefile to reflect the binary target directory for the psf
- system.
-
- 2. Psf requires a "printer definition file" named "psfprint.def" that
- describes the postscript printer. The file name is compiled into
- various psf modules. Edit the Makefile to provide the desired file
- path/name.
-
- 3. Compile all sources with "make all".
-
- 4. Generate a "printer definition file". This is done by the
- command:
- selectdef defs/*.def
-
- "selectdef" will access all of printer definitions in the defs/
- directory and copy your selected printer definition into the current
- directory with a name of "psfprint.def" (or different name if you
- changed it in (2) above). The copy operation could be done manually
- - however you will not get a "psizes.ps" programme generated.
-
- Selectdef also generates a postscript programme file "psizes.ps" that
- will print out the actual imageable area recorded in the printer roms
- for each page size known to your printer. The psizes.ps file should
- be sent to the printer with:
-
- cat psizes.ps | lp
- or
- cat psizes.ps > /dev/lp
-
- The resulting figures can be used to modify the psfprint.def file to
- accurately define your printer's imageable area.
-
- Even though the various defs/*.def files are derived from the Adobe
- .ppd files, the .ppd files for the printers do not necessarily
- reflect the accurate imageable areas actually implemented by the
- printer manufacturer. For example, the NEC__470.ppd file provided by
- Adobe does not describe the imageable area that is actually in my
- LC890. Thus, psizes.ps is a handy way to determine your
- exact printer imageable area.
-
- If your printer is not known in the various defs/*.def files, then
- choose the closest approximation.
-
- If that is not good enough, you should modify the postscript
- programme at the end of this Readme file (or use the psizes.ps
- generated for the "closest approximation") to reflect the various
- paper sizes supported by your printer. Send the resulting programme
- to the printer, and construct a psfprint.def file based upon it's
- results. Use the "sample.def" file as a starting point to generate
- your .def file.
-
- 5. Copy the desired psf binaries and scripts to the binary directory
- (as per the Makefile definition). Probably "selectdef" and "table"
- should NOT be copied. (or use "make all").
-
- If you are not using Letter size paper as your standard, you may need
- to make some modifications to the scripts as described in (11) below.
-
- 6. Copy the "psfprint.def" printer definition file to the target file
- (as per the Makefile definition). (also copied with "make all").
-
- 7. If you intend to run psf as part of the print spooler, then copy
- "psfsample.LP" to another file. Edit this new file to configure the
- printer model.
-
- If you have a serial printer, examine the stty command to ensure
- correct port configuration.
-
- Install the printer model as needed for your printer system. If your
- spooler allows passing of printer options with the "-o" option, then
- you could use (for example):
-
- lp -o"-4xh" this.file that.file
-
- The "-4xh" options are passed by lp to psf to print the files "4-up"
- on a page, with file name headers (h) and dividing lines between
- quandrants (x). Any set of options may be enclosed between the
- quotation marks.
-
-
- 8. If you do not intend to run psf as part of the spooler, you
- are finished. psf is then used as a print filter manually.
-
- For example:
-
- psf this.file | lp
-
- man -b vi | pnf -i | psf -2 | lp
-
- 9. Install the man pages. E.g.: cp *.1 /usr/man/man.1
-
- 10. Print the man pages: E.g.: psnroff -man *.1
- or, if nroff is not avaliable: psf -2l 66 *.doc | lp
-
- 11. Make any option changes to the various psf commands
- in scripts. For example:
-
- psman: change the man chapters as per your man directories
- (the distribution psman assumes Xenix directories)
- psnroff: change the psf options (by default, the output
- default is for two-up printing).
- psmbox: change default psf printing characteristics.
- psbanner.c: this routine prints banner pages. you may
- wish to change the layout of banner pages.
-
- If European paper sizes are used (A4, B5, etc), then the "-l nn" for
- psf or the "-r nn -l nn" option to pnf may need to be specified.
-
- 12. Edit the file "Testfile": this file, (after editing) is an example
- of how escape seqeuences can be imbedded in a text file to allow
- direct font control within a text editor (See psf.1 for details).
-
- The "Testfile" should contain many ^E characters (octal \005). Since
- mail/news system may change the ^E character into the text string "005"
- You will have to edit the Testfile and replace all "005" strings with
- true ctrl-E character.
-
- One easy way to correct this is with sed:
-
- sed 's@005@<CTRL-E>@g' Testfile > newtest
- +------+
- actually type the CTRL-E character
- to generate the octal charcter \005
-
- After editing, do the following:
-
- psf newtest | lp
-
- to see how font control can work in a text file.
-
- =========================================================================
-
- You can modify the following postscript programme (quickly now, rush
- out and buy some postscript manuals....) to print out (on paper) the
- imageable area of the various paper sizes. Normally, this file is
- generated by "selectdef" and is named psizes.ps.
-
-
- %!
- /getsize {
- clippath
- pathbbox
- } def
- /sendsize {
- /ury exch def
- /urx exch def
- /lly exch def
- /llx exch def
- /str 64 string def
- show
- ( ) show
- llx ceiling cvi str cvs show
- ( ) show
- lly ceiling cvi str cvs show
- ( ) show
- urx floor cvi str cvs show
- ( ) show
- ury floor cvi str cvs show
- } def
- /pg save def
- newpath
- b5
- (B5: 516 729) getsize
- a4
- (A4: 595 842) getsize
- legal
- (Legal: 612 1008) getsize
- letter
- (Letter: 612 792) getsize
- statusdict begin lettertray end
- /Courier findfont 12 scalefont setfont
- 50 600 moveto
- (Imageable area) show
- 50 585 moveto
- (NEC LC-890 v47.0 \(corrected\)) show
- 50 565 moveto
- sendsize
- 50 550 moveto
- sendsize
- 50 535 moveto
- sendsize
- 50 520 moveto
- sendsize
- showpage
- pg restore
-