📄 wp2x.1l
字号:
.TH WP2X 1.SH NAME wp2x \- A WordPerfect 5.0 to whatever converter.SH SYNOPSIS.B wp2x[.B \-s] [.B \-v] [.BI \-n blip] configfile wpfile.SH DESCRIPTION.de Tx.if n TeX\\$1.if t T\v'12u'E\v'-12u'X\\$1...de Lt.if n LaTeX\\$1.if t L\v'-12u'A\v'12u'T\v'12u'E\v'-12u'X\\$1...I Wp2xis intended to convert.I simplefiles stored in WordPerfect 5.1 format into any other document processinglanguage that uses plain text files. Examples include.Tx ,.Lt ,troff, GML and HTML..PP.I Wp2xreads a configuration file and a WordPerfect 5.1 input file, anduses the information in them to produce an output file, whichis sent to stdout.If the configuration file cannot be found, a suffix of.I .cfgis appended.The current directory is searched, as well as the lib directoryspecified by the .I WP2X_DIRvariable in the Makefile. (Usually.I /usr/local/lib/wp2x) and the directories specified by the environment variables.I PATH ,.I DPATH ,and.I WP2XLIB ..PP.fiSome codes are not translated because documents that require thesecodes typically would require significant hand-editing.Hence, there's no point in trying to emulate something you're goingto delete anyway.(Remember,.I wp2xis not intended to be used as an automated conversion program.Rather, it is intended to be used as a single step in the documentconversion process, which gets most of the the grunt work of conversiondone and out of the way, so that you can concentrate your efforts onconverting the trickier parts of the document. The object of thegame is to produce a readable conversion, rather than a perfect conversion.).PPAs the program runs, a dot is printed to.I stderrfor every 1024 characters converted. This can be suppressed with the.B \-sswitch, and the interval between dots can be changed with the.B -nswitch..SH OPTIONS.TP.B \-sSuppresses all non-error output to.IR stderr ,including the.I typeoutbanner, the progress dots, and warnings about undefined expansions..TP.BI \-n blipEvery.I bliptokens, a dot is emitted to.IR stderr ,unless the.B \-sswitch is given.The value.I blipmust appear imediately following the.B \-nwithout an intervening space.If no.B \-nswitch is supplied, then a value of 1024 is assumed..TP.B \-vprints the version number and the program usage..SH USAGEThe configuration file controls how the file is converted from WordPerfect 5.1format. Each line of the configuration file is of the form.sp 1.ce 1identifier="list of codes".sp 1where the list of codes is a string which will be placed in theoutput stream whenever the corresponding WordPerfect code isencountered.Standard C-style backslash-escape sequences are recognized, as wellas \exFF for hex values.You do not have to backslash-protect a newline. Some identifierssupply replacable parameters, which can be interpolated as follows:.TP%1interpolate first parameter as a decimal integer..TP%2interpolate second parameter as a decimal integer..TP%cinterpolate first parameter as an ASCII character..TP%\eninterpolate a newline if the most-recently-output character was notalready a newline.(The.I \encan be either the C-style escape sequence, or an actual newline character.)Use this if the expansion must take place at the beginning of a line.(For example,.I troffcontrol characters must appear as the first character in the line inorder to take effect.)This sequence is meaningful only at the beginning of the string;if it appears elsewhere, it is flagged as erroneous..TP%%interpolate a percent-sign..PPA percent sign followed by any other character is considered an error.It is also an error to interpolate a parameter that is not applicableto the identifier being defined. You may interpolate the parametersas many times as, and in whatever order, you wish. (With theexception of the.I %\encode.).PPHere follows a list of the accepted identifiers.In the discussion, `%1' represents the first parameter, and `%2'the second. Remember that the character version of %1 is availableas `%c'..sp 1.PD 0.TP 15BEGINExpanded at the beginning of the file..TPENDExpanded at the end of the file..TPCOMMENTExpanded when wp2x needs to insert a comment into the output.The comment is passed as %s..sp 1.TPPageNoInsert current page number.TPRomanPageSet page number to %1, and set roman-numeral mode.TPArabicPageSet page number to %1, and set arabic-numeral mode.sp 1.TPTabWhat to do when you see a tab character..TPBeginTabsEmitted when tab settings are about to change.The.B BeginTabscode should delete all existing tabsand prepare for new tab settings to start.All tab values are given in columns measuredfrom the physical left edge of the paper.(Not from the left margin.).TPSetTabSet a normal (left-justified) tabstop at column %1..TPSetTabCenterSet a centered tabstop at column %1..TPSetTabRightSet a right-justified tabstop at column %1..TPSetTabDecimalSet a decimal tab at column %1..TPEndTabsFinish the setting of tabstops..sp 1.PPFor example, if the WordPerfect file contains a code that says`Set new tabstops as follows: Regular tab at column 15,a centered tab at column 40, a right-justified tab at column 59,and a regular tab at column 60', then the following expansions aremade in succession:.nf BeginTabs SetTab(15) SetTabCenter(40) SetTabright(59) SetTab(60) EndTabs.fi.TPHSpaceHard (nonbreakable) space..TPHPgHard page break..TPCondEOPForce a new page if fewer than %1 half-lines remain on current page..sp 1.TPHRtHard return..TPSRtSoft return..sp 1.TP\-Breakable hyphen..TP\-\-Breakable hyphen, appearing at the end of a line..TP=Non-breakable hyphen..TP\e\-Discretionary hyphen..TP\e\-\-Discretionary hyphen, appearing at the end of a line..sp 1.TPMargSet left margin at %1 characters and right margin at %2 characters..TPTopMarginSet top margin to %1 lines..TPPageLengthSet page length to %1 lines..sp 1.TPSSSingle spacing..TPDSDouble spacing..TP1.5SOne-and-a-half spacing..TPTSTriple spacing..TPLSOther line spacing. %1 is twice the desired spacing.(For example, a request for 2.5-spacing sets %1=5.).TPLPISet %1 lines per inch (%1 is either 6 or 8).sp 1.TPBoldBegin boldface.TPboldEnd boldface.TPUndBegin underline.TPundEnd underline.TPDoubleUndBegin double underline.TPdoubleundEnd double underline.TPRedBegin redline.TPredEnd redline.TPStrikeBegin strikeout.TPstrikeEnd strikeout.TPRevBegin reverse video.TPrevEnd reverse video.TPOutlineBegin outline text.TPoutlineEnd outline text.TPFineBegin fine font size.TPfineEnd fine font size.TPOverBegin overstrike font.TPoverEnd overstrike font.TPSupBegin superscript.TPsupEnd superscript.TPSubBegin subscript.TPsubEnd subscript.TPLargeBegin large font size.TPlargeEnd large font size.TPSmallBegin small font size.TPsmallEnd small font size.TPVeryLargeBegin very large font size.TPverylargeEnd very large font size.TPExtraLargeBegin extra large font size.TPextralargeEnd extra large font size.TPItalicsBegin an italics font.TPitalicsEnd an italics font.TPShadowBegin shadow font.TPshadowEnd shadow font.TPSmallCapsBegin small capitals font (fixed width).TPsmallcapsEnd small capitals font (fixed width).sp 1.TPUpHalfLineAdvance printer up 1/2 line.TPDownHalfLineAdvance printer down 1/2 line.TPAdvanceToHalfLineAdvance to absolute vertical position.%1 is what WordPerfect thinks the current vertical page position is,in half-lines. %2 is the desired position, also in half-lines..sp 1.TPIndentExpanded when an "Indent" code appears..TPindentExpanded at the end of an indented paragraph..TPDIndentExpanded when a "left-and-right-indent" code appears..TP dindentExpanded at the end of an double indent.TPMarginReleaseMargin release. %1 is the number of characters to move left..sp 1.TPCenterCenter current line.TPcenterEnd centering.TPCenterHereCenter line around current column.TPcenterhere
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -