source: trunk/third/transcript/man/pscatmap.8p @ 9217

Revision 9217, 4.0 KB checked in by ghudson, 28 years ago (diff)
Remove all comments about the SysV spooling system, since we always use the BSD one. Changes to get along with catman better (the NAME section has to use no special formatting and include a \- after the name).
RevLine 
[9089]1.TH PSCATMAP 8 "19 August 1992" "Adobe Systems"
2\" Copyright (c) 1985,1987,1992 Adobe Systems Incorporated. All Rights Reserved.
3\" ATTN GOVERNMENT END USERS: See notice of rights in file XPSLIBDIRX/Notice
[9217]4\" RCSID: $Header: /afs/dev.mit.edu/source/repository/third/transcript/man/pscatmap.8p,v 1.2 1996-10-14 05:09:44 ghudson Exp $
[9089]5.ds PS P\s-2OST\s+2S\s-2CRIPT\s+2
6.SH NAME
[9217]7pscatmap \- build ptroff width tables from AFM files
[9089]8.SH "SYNOPSIS"
9.B XPSLIBDIRX/pscatmap
10.I mapfile
11.SH "DESCRIPTION"
12.I pscatmap
13builds correspondence tables and width tables so that
14documents produced with original
15[o]troff (1)
16can be translated into \*(PS language programs by
17pscat.
18.I pscatmap
19parses a human-readable mapping table and generates five output files\(em
20a
21family.ct
22file containing the character correspondence table for
23pscat,
24and
25four
26ft??
27files, to be used as
28troff
29width tables.  On most BSD systems, these files are C programs
30(ft\fIxx\fP.c) to be compiled into widths tables.
31On most System V systems, these files are the binary width tables
32themselves.  Other systems may use ASCII font width tables.
33.PP
34The structure of the
35.map
36files is relatively easy to understand.  If you want to create your own,
37the best thing to do is use an existing one as a template.  Lines that
38begin with "%" are comments.  Blank (empty) lines are ignored.
39Lines beginning with  "@" are command lines. The following command
40lines are understood:
41.TP 1.3i
42.BI @FAMILYNAME " family"
43.br
44where
45.I family
46is a single token.  This specifies the base name for the generated .ct file.
47.TP
48.BI @FACENAMES " rf if bf sf"
49.br
50where \fIrf, if, bf,\fR and
51.I sf,
52are the two-letter
53troff
54face codes for the Roman (font 1), Italic (font 2), Bold (font 3)
55and Symbol (font 4) fonts, respectively. 
56.I pscatmap
57will generate files with the names:
58ft\fIrf\fP\|[.c], ft\fIif\fP\|[.c], ft\fIbf\fP\|[.c], ft\fIsf\fP\|[.c].
59.TP
60.B @BEGINFONTS
61starts the section that identifies which fonts
62will be a part of this mapping and defines short names for these
63fonts (to be used in a later section of the map file).
64@BEGINFONTS is followed by a sequence of lines of the form:
65.RS
66\fBshortname\fP=\fIfontname\fP
67.RE
68.TP
69.B @ENDFONTS
70terminates this section.
71.TP
72.B @BEGINMAP
73begins the real correspondence description.
74What follows are a sequence of lines, each line describing
75a character action mapping.  Each line represents one character.
76A line contains
77the troff character code, the troff face code (R, I, B, or S),
78the C/A/T character code, the character width,
79the character action, x and y offsets for position adjustments,
80the font and character code to map to, and a short
81text description of the font.
82.sp
83The best way to understand all this is to look at the map
84files already in the library and use them as examples.  They have
85copious comments to help explain what they do.
86.TP
87.B @ENDMAP
88delimits the end of this section.
89.TP
90.BI @INCLUDE " file"
91reads commands from the named \fIfile\fP until it is exhausted, then
92switches back to the current input file.
93This command may appear in included files
94(that is, include files may be nested).
95This may be used to include the standard correspondence description, for
96example.
97.SH ENVIRONMENT
98.IP PSLIBDIR
99path name of a directory to use instead of
100XPSLIBDIRX for AFM files
101.SH FILES
102.TP 2i
103XPSLIBDIRX/*.afm
104font metrics files
105.TP
106\fIfamily\fP.map
107input mapping file
108.TP
109\fIfamily\fP.ct
110generated correspondence table
111.TP
112ft\fIxx\fP[.c]
113generated width files
114.SH "SEE ALSO"
[9217]115pscat(1), ptroff(1), transcript(1), troff(1)
[9089]116.SH AUTHOR
117Adobe Systems Incorporated
118.SH BUGS
119Mounting anything but a font named "S" in position 4 will cause
120troff
121to do unexpected things.   
122troff
123really expects the symbol font to be named "S".
124Thus every font family defined
125should have identical symbol faces.
126You can specify some other face name in the
127.B @FACENAMES
128line for the fourth font, but don't ".fp" it in troff.
129.SH NOTES
130\*(PS is a registered trademark of Adobe Systems Incorporated.
131.br
132Documenter's Workbench is a trademark of AT&T Technologies.
Note: See TracBrowser for help on using the repository browser.