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

📄 wp2x.1l

📁 harvest是一个下载html网页得机器人
💻 1L
📖 第 1 页 / 共 2 页
字号:
End centering.sp 1.TPAlignBegin alignment.TPalignEnd alignment.TPAlignCharSet alignment character.TPFlushRightBegin flush right.TPflushrightEnd flush right.sp 1.TPMathBegin math mode.TPmathEnd math mode.TPMathCalcBegin math calc mode.TPMathCalcColumnMath calc column.sp 1.TPSubTotalDo subtotal.TPIsSubTotalSubtotal entry.TPTotalDo total.TPIsTotalTotal entry.TPGrandTotalDo grand total.sp 1.TPColBegin column mode.TPcolEnd column mode.sp 1.TPFnExpanded at the beginning of a footnote..TPfnExpanded at the end of a footnote..TPEnExpanded at the beginning of an endnote..TPenExpanded at the end of an endnote..TPSetFn#Set the number for the next footnote to %1..TPFNote#Footnote number..TPENote#Endnote number..TPFigure#Figure number..TPTableMarkerInsert table of contents here.sp 1.TPHyphEnable hyphenation..TPhyphDisable hyphenation..TPJustEnable justification..TPjustDisable justification..TPWidEnable widow/orphan protection..TPwidDisable widow/orphan protection..TPHZoneThe hyphenation zone.  %1 and %2 are the two magical valuesthat WordPerfect uses to control hyphenation..TPDAlignSet the decimal alignment character to that whose ASCII value is %1.(`%c' is useful here.).sp 1.TPHeaderBegin header text.TPheaderEnd header text.TPFooterBegin footer text.TPfooterEnd footer text.sp 1.TPSuppSuppress page number/header/footer information for one page.%1 argument is a bit field which describes what sort ofsuppression is desired.  Here's what the bits mean:.nf          1 = all          2 = page number          4 = page numbers moved to bottom          8 = all headers         16 = header a         32 = header b         64 = footer a        128 = footer b.fi.TPCtrPgCenter page vertically.sp 1.TPSetFontChange pitch or font.  %1 is the desired pitch.  (Negativemeans proportionally-spaced.)  %2 is the font number..TPSetBinSelect paper bin to %1 = 0, 1, ....sp 1.TPPN0No page numbering..TPPN1Page number in top left..TPPN2Page number in top center..TPPN3Page number in top right..TPPN4Page number on top outside corners (even/odd)..TPPN5Page number in lower left..TPPN6Page number in bottom center..TPPN7Page number in lower right..TPPN8Page number on bottom outside corners (even/odd)..PD.PPIf no expansion is supplied for an identifier, then nothing is emitted to.IR stdout ,but a warning message is sent to.IR stderr .This warning message will appear at most once per identifier, and itcan be suppressed completely by the.B \-soption..PPThe special identifier.I typeoutcauses its replacement text to bedisplayed on the screen every time the configuration file is read.This is useful for identification messages, or reminders to the user..PPA special identifier is any character enclosed in single quotationmarks, which represent themselves.  For example,.nf   '\(*a'="{\e\ealpha}".ficauses the string "{\ealpha}" to be emitted when an \(*a is encountered.This could also have been written as.nf   '\exE0'="{\e\ealpha}".fiif the character \(*a has ASCII value 0xE0.(Which is true for the IBM PC encoding.).PPIf no definition exists for a particular special character,it is transmitted undisturbed.  If a special character is encounteredfrom the upper half of the ASCII character set, and if it has nodefinition, then a warning message is also emitted.(Which can be suppressed with the.B \-soption.).PPLines beginning with the # character are comments..SH NOTESThis is based on an original WP 4.2 to anything translator. The fileformat has changed a lot between 4.2 and 5.0. This translator nolonger reads WP 4.2 files, although it could be extended to do so. The 5.0+ format starts with a standard header file. There is a fourbyte magic number at the head of the file, followed by various productand version information. All WordPerfect Corporation utilities usethis standard header. See the WPproducts array in .I wp2x.cOnce the contents of the file have been located, there are three kindsof codes: simple one byte controls (WP 4.2 had only these kinds),fixed length controls, and variable length controls. There are a largenumber of undefined types defined for future use. If .B wp2xdetects something it doesn't understand, it can extract the length andskip that code. There are a number of defined codes that areunimplemented. Please see the code, specifically .I tokens.cwhere much of the input processing is done..SH FILESThe sample configuration files in.I /usr/local/lib/wp2xgive you some sort of idea what a `production quality'configuration file might look like.They are not intended to be used as-is, but rather are meant to bemodified to suit your particular needs..SH "SEE ALSO".IR tex (1),.IR latex (1),.IR nroff (1),.IR troff (1),.IR WordPerfect Developer's Toolkit.IR getopt(3)..SH DIAGNOSTICS.TPIgnoring byte [XX]Indicates that an unimplemented single byte code was ignored..TPIgnoring fixed [XX]Indicates that an unimplemented fixed length code was ignored..TPIgnoring variable [XX] sub [XX] lengthIndicates that an unimplemented variable length code was ignored, andgives its length..TPWarning: Expected XX but received XX at pos: YYYYsomething is wrong in the input file at byte YYYY..TPWarning: No expansion for XX (C)A WP code for which no expansion was defined in the config file wasencountered..TPInternal error: Invalid escape CAn error occured while processing an expansion escape (%xsubstitution). Probably it was not a recognized escape, check theconfig file..TPFixed Length block [XX] incorrectly terminated by [YY] as pos ZSomething is wrong with the input file, a fixed length block wasscrewed up..TPReserved code [XX] seenSomething that WPC defined as reserved was seen. Check with WPC fornew meaning..TPNot a recognized file type. The file did not start with the right WPCmagic number. Maybe this is a 4.2 file, or not a WordPerfect file at all?.TPError: Cannot open X (reason)The file X could not be opened, for the indicated reason..TPError: Expecting a hex digitInside a string, you typed the characters `\ex', but the next characterwas not a valid hex digit..TPError: string pool overflowThe configuration file contained too many strings.  Increase the valueof POOL_SIZE and recompile..TPError: Unknown identifier XThe word X was encountered in the configuration file when.I wp2xexpected a token identifier like `HRt'.Most likely, you either misspelled it, or you got your quotation marksout of sync..TPError: Identifier not followed by = signAfter an identifier must come an equals-sign..TPError: Quotation mark expectedAfter the equals-sign must come a quotation mark..TPError: X: `%\en' not at start of expansionThe expansion for the identifier X contained the indicated sequenceof characters somewhere other than the beginning of the string.The `%\en' interpolation code is meaningful only at the beginningof a string..TPError: X: invalid escape `%x'The expansion for the identifier X contained an invalid escape.Either you used `%1', `%2' or `%c' when the identifier X does notsupply that parameter, or you meant for a genuine percent signto be output, in which case you should put `%%' in the expansion..TPError: Invalid character identifierCharacter identifiers can only be one character long (after backslashinterpretation)..TPWarning: Expected XX but received YY.The program expected the next byte from the WP file to be XX, butthe byte YY was encountered instead.  This means either that your WPfile is damaged, or that the program is seriously confused.  (Or both.)The programwill pretend that the byte in the file was indeed XX, which maylead to synchronization errors later on..TPWarning: No expansion for XThe WP file contained the token X, but the configuration file did notcontain any expansion text for it.  A null expansion was assumed..TPWarning: No expansion for XX (c)The WP file contained the character c (hex code XX),but the configuration filedid not contain any expansion text for it.The character was emitted unaltered.Beware that this may give your text formatter indigestion if it doesnot handle eight-bit characters..TPWarning: X code not supportedThe file being converted uses a code which.I wp2xdoes not know how to convert.A comment is placed in the output file in its place.If you ever encounter a `WPCorp reserved' or a `WPCorp undefined' code,the author would appreciate hearing from you..TPInternal error:  Invalid escape, %xWhile processing text,.I wp2xnoticed that you used an invalid escape.Nothing is emitted as the escape text.(The internal-ness is that this error is supposed to be caught atthe time the configuration file is read.).SH BUGSNaive configuration files will fail if your WP filedoesn't nest its tags properly.  A typical case is.nf     [Center][B]Hello[center]     [Center]There[b][center].fito produce a centered boldface `Hello'.  If you use the naive encodingof.nf     Center="\e\ecenterline{"     center="}\en"     Bold="{\e\ebf "     bold="}".fithen this will expand to.nf     \ecenterline{{\ebf Hello}     \ecenterline{There}}.fiWordPerfect has no clean concept of grouping; it lets you change fontsat any time and let those changes propagate outside the currentenvironment.(With the exception of headers, footers, footnotes, and endnotes.).PPNow sure, you could write complicated configuration strings to tryto handle this `properly', but it'd probably not be worth the trouble.After all, the purpose is not to perform a perfect conversion, butrather to produce a.I readableconversion, which can then be massaged by hand to produce a perfectmanuscript..PPAnother potential problem is combined attributes, like boldface underline.Under a naive configuration,.nf     [B]Boldface [U]Underlined boldface[b] Underlined[u] normal..ficomes out as.nf {\ebf Boldface {\eit Underlined boldface} Underlined\e/} normal..fiwhich is wrong for two reasons.  One is the nesting problem discussedabove.  The other is that.Txfont attributes do not combine..PPSimilar problems exist for other document preparation systems.So be careful..SH AUTHOROriginal author: Raymond Chen <raymond@math.berkeley.edu>Current maintainer: Michael Richardson <mcr@ccs.carleton.ca>

⌨️ 快捷键说明

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