⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cawf.1

📁 Unix操作系统minix 2.0源码
💻 1
📖 第 1 页 / 共 2 页
字号:
.LPThere are appropriate.B .^brequests in the distribution.BR man ,.B meand.B msmacro files.(The.B meand.B msmacro files use another.B .^brequest, \fB.^b NH\fP, to enable numbered header processing.).SH OUTPUTThe default output format supported by.IR cawf ,in its distributed form,is that appropriate to a dumb terminal,using overprinting for italics (via underlining) and bold.The \*(Nr special characters are printed as some vague approximation(it's sometimes extremely vague) to their correct appearance..PPOne part of.IR cawf 'sknowledge of the output device, related to the formation of characters,is established by a device file, which is read before the user's input.The search for it begins in.IR cawf 'slibrary directory, under the name \fIterm\fP.\fBdev\fP(where \fIterm\fR is the value of the TERM environment variable).Failing to find that,.I cawfsearches for.BR dumb.dev .(See the.B FILESsection for a description of the path to.IR cawf 'slibrary directory.)The device fileuses special internal requeststo set up resolution, special characters and more normal \*(Nr functions to set up page length, etc..PP.I Cawfhas limited support for fonts special forms of bold and italic characters.It is provided through the.B \-c.IR config ,.BI \-d deviceand.BI \-f fontoptions.See the.B DEVICESsection for more information..PPNote the distinction between the device and the output device configurationfiles.The device file typically defines characters and constant output parameters.The output device configuration file defines font and type face codes.It is usually not necessary to define a separate device file for eachdevice represented in the output device configuration file \- the.I dumb.devdevice file will suffice for almost all representations..SH DEVICES.I Cawfsupports primitive output device configuration for font and type facecontrol.One font may be selected for the entire document by directing.I cawfto issue a font selection control character string at the beginningof the document, and control character strings may be selected forswitching between the bold, italic and Roman type faces..PPThe.B \-c.IR config,.BI \-d deviceand.BI \-f fontoptions direct the font and type face selections..PPThe.BI \-d deviceoption specifies the name of the device..I Cawfhas three built\-in devices \- ANSI, NONE and NORMAL.When the ANSI device is selected,.I cawfissues the ANSI shadow mode control codes, ``ESC [ 7 m'', to representthe bold face;the ANSI underscore control codes, ``ESC [ 4 m'', to represent the italicface;and the ANSI control codes, ``ESC [ 0 m'', to represent the ROMAN face.No.BI \-f fontspecification is permitted with the ANSI device..PPWhen the NONE device is selected,.I cawfuses no special output codes to represent the type faces.No.BI \-f fontspecification is permitted with the ANSI device..PPThe NORMAL output device is the default.When it's selected,.I cawfoverprints each bold character two times, using three issuances of eachbold character, separated by backspace characters;it issues an underscore and backspace before each italic character.No.BI \-f fontspecification is permitted with the ANSI device.The.IR bsfilt (1)filter may be used to further process the backspace codes output fora NORMAL device..PPAll other devices named in the.BI \-d deviceoption must be represented by a stanza in the device configuration file.The device configuration file is usually contained in.I device.cfin.IR cawf'slibrary directory (see the.B FILESsection for more information).An alternate device configuration file path may be specified with the.BI \-c configoption..PPThe.B DEVICE CONFIGURATION FILEsection describes the organization of the device configuration file.It is easy to add devices to the.I device.cfsupplied in the.I cawfdistribution..PPThe.BI \-f fontoption may be used with the.BI \-d deviceoption, when the appropriate stanza in the device configuration filecontains an entry for the named.IR font .The.B DEVICE CONFIGURATION FILEsection describes how fonts are defined in device configuration filestanzas..SH DEVICE CONFIGURATION FILEThe device configuration file defines the special character codesnecessary to direct output devices to select fonts and to producebold, italic and Roman type faces..PPThe configuration file is usually found in.I device.cfin.IR cawf 'slibrary directory (see the.B FILESsection for more information).It is organized into two main parts \- comments and device stanzas.Comments are any lines that begin with the pound sign (`#') character.They are informational only and.I cawfignores them..I Cawfalso ignores empty lines, so they may be used as vertical white space..PPStanzas name devices and define their font and type face control strings.A stanza begins with the name of the device, starting at the beginningof a line and occupying the entire line.The body of the stanza, defining fonts and type faces, is formed oflines beginning with white space (a TAB or space characters) thatdirectly follow the device name..PPIndividual lines of the stanza body contain a key character, followedby a equal sign, followed by the font name (if a font key) and theoutput device control codes..I Cawfissues the font control codes once, at the beginning of output, soonly one font may be selected.The type face control codes are issued at each change of type face..PPThe key characters are:.ne 4.DSb	for boldf	for font definitioni	for italicr	for Roman.DEThe `b', `i' and `r' key codes are followed by an equal sign (`=') andtheir control code definition.The `f' key code is followed by an equal sign (`='), the font name,another equal sign and the font control code definition..PPControl code definitions may contain any printable ASCII characters.Non\-printable characters may be encoded in octal notation with the `\\nnn'form or in hexadecimal with the `\\xnn' form.The special code, `\\E' (or `\\e') represents the ESC controlcharacter (\\033 or \\x1b)..PPHere's a sample showing the definition for the HP LaserJet III.The stanza name is ``lj3''.All its non\-printable characters are ESCs; the first is coded inoctal form; the second with '\\E'; the rest, in hexadecimal form.TAB is used as the leading white space character for the stanzabody lines..DS# HP LaserJet IIIlj3        b=\\033(s7B        i=\\E(s1S        r=\\x1b(s0B\\x1b(s0S        f=c10=\x1b&l0O\x1b(8U\x1b(s0p12h10v0s0b3T        f=c12ibm=\x1b&l0O\x1b(10U\x1b(s0p10.00h12.0v0s0b3T        f=lg12=\x1b&l0O\x1b(8U\x1b(s12h12v0s0b6T.DE.PPThe distribution.I device.cffile defines the following devices and fonts..LP.ta \w'kxp1180'u+3n +\w'Italic:'u+3n +\w'bps10'u+6n.nf.ne 3epson	dot matrix printer in Epson FX-86e/FX-800 mode	Bold:	Double-strike	Fonts:	none.ne 4ibmppds	IBM Personal Printer Data Stream (PPDS) protocol	Bold:	Double-strike	Italic:	Underline	Fonts:	none.ne 12kxp1124	Panasonic KX\-P1124 dot matrix printer in PGM mode	Bold:	Emphasized	Fonts:	c10	10 Characters Per Inch (CPI) Courier		c12	12 CPI Courier		bps10	10 CPI Bold PS		bps12	12 CPI Bold PS		p10	10 CPI Prestige		p12	12 CPI Prestige		s10	10 CPI Script		s12	12 CPI Script		ss10	10 CPI Sans Serif		ss12	12 CPI Sans Serif.ne 10kxp1180	Panasonic KX\-P1180 dot matrix printer in PGM mode	Bold:	Emphasized	Fonts:	c10	10 Characters Per Inch (CPI) Courier		c12	12 CPI Courier		bps10	10 CPI Bold PS		bps12	12 CPI Bold PS		p10	10 CPI Prestige		p12	12 CPI Prestige		ss10	10 CPI Sans Serif		ss12	12 CPI Sans Serif.ne 6lj3	HP LaserJet III	Fonts:	c10	10 point, 12 Characters Per Inch (CPI)			Courier		c12ibm	12 point, 10 CPI Courier, IBM\-PC			Symbol Set		lg12	12 point, 12 CPI Letter Gothic.ne 4vgamono	VGA monochrome monitor for MS\-DOS	(ANSI.SYS driver required for MS\-DOS)	Italic:	Reverse-video	Fonts:	none.SH FILES.I Cawfresource files are located in the.I cawflibrary directory \- \fI C:\\SYS\\LIB\\CAWF\fP, the MS\-DOS environmentdefault;or.IR /usr/lib/cawf ,the UNIX environment default.These defaults can be overridden by the CAWFLIB environment variable,or changed in the cawflib.h header file..ta \w'device.cf'u+3n.nfcommon	common device-independent initializationdevice.cf	output device configurations*.dev	device-specific initializationm*.mac	macro package files.SH DIAGNOSTICSUnlike.IR nroff ,.I cawfcomplains whenever it sees unknown requests.All diagnostics appear on the standard error file..ad.SH HISTORYVic Abell of Purdue University <abe@cc.purdue.edu> derived.I cawffrom.IR awf ,\&``the Amazingly Workable (text) Formatter,'' written by Henry Spencer of the University of Toronto.The Toronto work was a supplement to the C News project.The Purdue effort was aimed at producing a C language version thatwould run on small systems, particularly MS\-DOS ones.The adaptation of the.B memacros was done by Chet Creider <creider@csd.uwo.ca>.Chet also contributed ideas for device, font and type face support..PPThe MS\-DOS version of.I cawfhas been compiled with version 2.5 of Microsoft's Quick-C compiler.It runs under the Mortis Kern Systems Toolkit KornShell,.IR ksh (1),and COMMAND.COM..SH BUGSNroff and troff mavens will have many complaints.Some may even represent bugs and not deliberate omissions..PPWatch out for scaling factors - especially on requests like.BR \ew ..PPThe overprinting required to create bold and italicized characters istiresome on a slow printer.The.IR bsfilt (1)post\-filter from this distribution may be used to alleviate thatnuisance by managing the backspacing codes from.IR cawf 'sNORMAL device output..PPThe printing of bold and italic characters is sometimes better handled byspecial printer codes.Use.IR cawf 's.B \-c.IR config ,.BI \-d deviceand.BI \-f fontoptions to produce special font and device output control codes..PP.I Cawfhas a small amount of built-in code for the .BR man ,.B meand.B msmacro packages, but none for any others..PPThe stacking for the.B .sorequest is limited..SH SEE ALSObsfilt(1),colcrt(1),man(7),me(7),ms(7)andnroff(1).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -