ROFF.9
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:4k
源码类别:
操作系统开发
开发平台:
C/C++
- .CD "roff (en text formatter"
- .SX "rofffR [fB(enhsfR]fR [fB+fInfR] [fB(enfInfR] fIfilefR ..."
- .FL "(enh" "Expand tabs to spaces in output"
- .FL "(ens" "Stop before each page; continue on DEL"
- .FL "+fInfP" "Start printing with page fInfP"
- .FL "(enfInfP" "Stop after page fInfP"
- .EX "roff file" "Run off fIfilefP"
- .EX "roff +5 file" "Run off fIfilefP starting at page 5"
- .PP
- .I Roff
- is a text formatter.
- Its input consists of the text to be output, intermixed with formatting commands.
- A formatting command is a line containing the control character followed by
- a two character command name, and possibly one or more arguments.
- The control character is initially *(OQ.*(CQ (dot).
- The formatted output is produced on standard output.
- .PP
- The formatting commands are listed below, with
- .I n
- being a number,
- .I c
- being a character, and
- .I t
- being a title.
- A + before fInfP means it may be signed, indicating a positive or negative
- change from the current value.
- Initial values for
- .I n ,
- where relevant, are given in parentheses.
- .HS
- .ta 0.25i 1i
- .nf
- fB.adfP Adjust right margin.
- fB.arfP Arabic page numbers.
- fB.brfP Line break. Subsequent text will begin on a new line.
- fB.blfP n Insert fInfP blank lines.
- fB.bpfP +n Begin new page and number it fInfP. No fInfP means +1.
- fB.ccfP c Control character is set to fIcfP.
- fB.cefP n Center the next fInfP input lines.
- fB.defP zz Define a macro called fIzzfP. A line with *(OQ..*(CQ ends definition.
- fB.dsfP Double space the output. Same as fB.ls 2fP.
- fB.effP t Even page footer title is set to fItfP.
- fB.ehfP t Even page header title is set to fItfP.
- fB.fifP Begin filling output lines as full as possible.
- fB.fofP t Footer titles (even and odd) are set to fItfP.
- fB.hcfP c The character fIcfP (e.g., %) tells fIrofffP where hyphens are permitted.
- fB.hefP t Header titles (even and odd) are set to fItfP.
- fB.hxfP Header titles are suppressed.
- fB.hyfP n Hyphenation is done if fInfP is 1, suppressed if it is 0. Default is 1.
- fB.igfP Ignore input lines until a line beginning with *(OQ..*(CQ is found.
- fB.infP n Indent fInfP spaces from the left margin; force line break.
- fB.ixfP n Same as fI.infP but continue filling output on current line.
- fB.lifP n Literal text on next fInfP lines. Copy to output unmodified.
- fB.llfP +n Line length (including indent) is set to fInfP (65).
- fB.lsfP +n Line spacing: fInfP (1) is 1 for single spacing, 2 for double, etc.
- fB.m1fP n Insert fInfP (2) blank lines between top of page and header.
- fB.m2fP n Insert fInfP (2) blank lines between header and start of text.
- fB.m3fP n Insert fInfP (1) blank lines between end of text and footer.
- fB.m4fP n Insert fInfP (3) blank lines between footer and end of page.
- fB.nafP No adjustment of the right margin.
- fB.nefP n Need fInfP lines. If fewer are left, go to next page.
- fB.nnfP +n The next fInfP output lines are not numbered.
- fB.n1fP Number output lines in left margin starting at 1.
- fB.n2fP n Number output lines starting at fInfP. If 0, stop numbering.
- fB.nifP +n Indent line numbers by fInfP (0) spaces.
- fB.nffP No more filling of lines.
- fB.nxfP f Switch input to file fIffP.
- fB.offP t Odd page footer title is set to fItfP.
- fB.ohfP t Odd page header title is set to fItfP.
- fB.pafP +n Page adjust by fInfP (1). Same as .bp
- fB.plfP +n Paper length is fInfP (66) lines.
- fB.pofP +n Page offset. Each line is started with fInfP (0) spaces.
- fB.rofP Page numbers are printed in Roman numerals.
- fB.skfP n Skip fInfP pages (i.e., make them blank), starting with next one.
- fB.spfP n Insert fInfP blank lines, except at top of page.
- fB.ssfP Single spacing. Equivalent to .ls 1.
- fB.tafP Set tab stops, e.g., .ta 9 17 25 33 41 49 57 65 73 (default).
- fB.tcfP c Tabs are expanded into fIcfP. Default is space.
- fB.tifP n Indent next line fInfP spaces; then go back to previous indent.
- fB.trfP ab Translate fIafP into fIbfP on output.
- fB.ulfP n Underline the letters and numbers in the next fInfP lines.
- .fi