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

📄 wri.htm

📁 各种文件格式说明及程序描述
💻 HTM
📖 第 1 页 / 共 2 页
字号:
write <br>
&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp; fdline&nbsp;&nbsp;&nbsp; reserved; ignored by write
<br>
&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp;&nbsp; foverset&nbsp;&nbsp;&nbsp; reserved; ignored by
write <br>
&nbsp;&nbsp;&nbsp; 4-5&nbsp;&nbsp;&nbsp; csm&nbsp;&nbsp;&nbsp; reserved; ignored by write <br>
&nbsp;&nbsp;&nbsp; 6&nbsp;&nbsp;&nbsp; fspecial&nbsp;&nbsp;&nbsp; set for
&quot;(page)&quot; only <br>
&nbsp;&nbsp;&nbsp; 7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reserved; ignored by write <br>
4&nbsp;&nbsp;&nbsp; 0-2&nbsp;&nbsp;&nbsp; ftcxtra&nbsp;&nbsp;&nbsp; font code (high-order
bits, concatenated with ftc) <br>
&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp;&nbsp; foutline&nbsp;&nbsp;&nbsp; reserved; ignored by
write <br>
<br>
&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp;&nbsp; fshadow&nbsp;&nbsp;&nbsp; reserved; ignored by
write <br>
&nbsp;&nbsp;&nbsp; 5-7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reserved; ignored by
write <br>
5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hpspos&nbsp;&nbsp;&nbsp; position: 0=normal,
1-127=superscript, 128-255=subscript <br>
<br>
if the user doesn't select any special character properties, the chp is filled with the
following default values: <br>
<br>
byte&nbsp;&nbsp;&nbsp; value<br>
<br>
0&nbsp;&nbsp;&nbsp; 1 <br>
2&nbsp;&nbsp;&nbsp; 24 <br>
3-5&nbsp;&nbsp;&nbsp; 0 <br>
<br>
each character fprop must, therefore, have a count of characters (cch) greater than or
equal to 1. <br>
each pap can contain up to 14 tab descriptors (tbds), which are described later in this
section. following is the structure of a pap: <br>
<br>
byte&nbsp;&nbsp;&nbsp; bit&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp; description<br>
<br>
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reserved; must be zero
<br>
1&nbsp;&nbsp;&nbsp; 0-1&nbsp;&nbsp;&nbsp; jc&nbsp;&nbsp;&nbsp; justification: 0=left,
1=center, 2=right, 3=both <br>
&nbsp;&nbsp;&nbsp; 2-7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reserved; must be zero <br>
2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reserved; must be zero
<br>
3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reserved; must be zero
<br>
4-5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dxaright&nbsp;&nbsp;&nbsp; right indent, in
20ths of a point <br>
6-7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dxaleft&nbsp;&nbsp;&nbsp; left indent, in
20ths of a point <br>
8-9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dxaleft1&nbsp;&nbsp;&nbsp; first-line left
indent (relative to dxaleft) <br>
10-11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dyaline&nbsp;&nbsp;&nbsp; interline
spacing (standard is 240) <br>
12-13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dyabefore&nbsp;&nbsp;&nbsp; reserved;
ignored by write (standard is zero) <br>
14-15&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dyaafter&nbsp;&nbsp;&nbsp; reserved;
ignored by write (standard is zero) <br>
<br>
16&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; rhcpage&nbsp;&nbsp;&nbsp; 0=header, 1=footer <br>
&nbsp;&nbsp;&nbsp; 1-2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reserved; 0=normal
paragraph, nonzero=header or footer paragraph <br>
&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp;&nbsp; rhcfirst&nbsp;&nbsp;&nbsp; start of printing:
1=print on first page, 0=do not print on first page <br>
&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp;&nbsp; fgraphics&nbsp;&nbsp;&nbsp; paragraph type:
1=picture, 0=text <br>
&nbsp;&nbsp;&nbsp; 5-7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reserved; must be zero <br>
17-21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reserved; must be
zero <br>
22-78&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tab descriptors
(up to 14) <br>
<br>
following is the format of a tbd: <br>
<br>
byte&nbsp;&nbsp;&nbsp; bit&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp; description<br>
<br>
0-1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dxa&nbsp;&nbsp;&nbsp; indent from left
margin of tab stop, in 20ths of a point <br>
2&nbsp;&nbsp;&nbsp; 0-2&nbsp;&nbsp;&nbsp; jctab&nbsp;&nbsp;&nbsp; tab type: 0=normal tabs,
3=decimal tabs <br>
&nbsp;&nbsp;&nbsp; 3-5&nbsp;&nbsp;&nbsp; tlc&nbsp;&nbsp;&nbsp; reserved; ignored by write <br>
&nbsp;&nbsp;&nbsp; 6-7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reserved; must be zero <br>
3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chalign&nbsp;&nbsp;&nbsp; reserved; ignored by
write <br>
<br>
if the user doesn't select any special paragraph properties, the pap is filled with the
following default values: <br>
<br>
byte&nbsp;&nbsp;&nbsp; value<br>
<br>
0&nbsp;&nbsp;&nbsp; 61 <br>
2&nbsp;&nbsp;&nbsp; 30 <br>
10-11&nbsp;&nbsp;&nbsp; 240 (word) <br>
12-78&nbsp;&nbsp;&nbsp; 0 <br>
<br>
each paragraph fprop must have a count of characters (cch) greater than or equal to 1. <br>
<br>
footnotes<br>
<br>
write documents do not have footnote tables (fntbs), so pnfntb is always equal to pnsep.
in fact, all their header and footer <br>
paragraphs appear at the beginning of the document before any normal paragraphs. when
reading files created by word, write <br>
recognizes only those headers and footers that appear at the beginning of the document; it
treats all others as normal text. <br>
<br>
sections<br>
<br>
a write document has only one section. if the section properties of a write document
differ from the defaults, the document <br>
contains a section property (sep) section and a section table (setb) section. if not, then
neither section is present and pnsep <br>
and pnsetb are both equal to pnpgtb. <br>
following is the format of an sep: <br>
<br>
byte&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp; description<br>
<br>
0&nbsp;&nbsp;&nbsp; cch&nbsp;&nbsp;&nbsp; count of bytes used, excluding this byte (all
properties at byte positions greater than cch are set to their <br>
default values) <br>
1-2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reserved; must be zero <br>
3-4&nbsp;&nbsp;&nbsp; yamac&nbsp;&nbsp;&nbsp; page length, in 20ths of a point (default is
11*1440=15840) <br>
5-6&nbsp;&nbsp;&nbsp; xamac&nbsp;&nbsp;&nbsp; page width, in 20ths of a point (default is
8.5*1440=12240) <br>
7-8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reserved; must be 0xffff <br>
9-10&nbsp;&nbsp;&nbsp; yatop&nbsp;&nbsp;&nbsp; top margin, in 20ths of a point (default is
1440) <br>
11-12&nbsp;&nbsp;&nbsp; dyatext&nbsp;&nbsp;&nbsp; height of text, in 20ths of a point
(default is 9*1440=12960) <br>
13-14&nbsp;&nbsp;&nbsp; xaleft&nbsp;&nbsp;&nbsp; left margin, in 20ths of a point (default
is 1.25*1440=1800) <br>
<br>
15-16&nbsp;&nbsp;&nbsp; dxatext&nbsp;&nbsp;&nbsp; width of text area, in 20ths of a point
(default is 6*1440=8640) <br>
<br>
the page length (yamac) is equal to yatop+dyatext. the page width (xamac) is equal to
xaleft+dxatext+(right margin, not <br>
stored). <br>
if all the above properties are set to their defaults, no sep or setb is needed.
otherwise, the count of characters (cch) is greater <br>
than or equal to 1 and less than or equal to 16. <br>
the setb section contains an array of section descriptors (seds), described later in this
section. following is the structure of an <br>
setb: <br>
<br>
word&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp; description<br>
<br>
0&nbsp;&nbsp;&nbsp; csed&nbsp;&nbsp;&nbsp; number of sections (always 2 for write
documents) <br>
1&nbsp;&nbsp;&nbsp; csedmax&nbsp;&nbsp;&nbsp; undefined <br>
2杗&nbsp;&nbsp;&nbsp; rgsed&nbsp;&nbsp;&nbsp; array of seds plus zero-padding to fill the
sector <br>
<br>
following is the structure of an sed: <br>
<br>
word&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp; description<br>
<br>
0-1&nbsp;&nbsp;&nbsp; cp&nbsp;&nbsp;&nbsp; byte address of first character following
section <br>
2&nbsp;&nbsp;&nbsp; fn&nbsp;&nbsp;&nbsp; undefined <br>
3-4&nbsp;&nbsp;&nbsp; fcsep&nbsp;&nbsp;&nbsp; byte address of associated sep <br>
<br>
a write document always has exactly two sed entries. the cp value of the first entry
indicates that it affects all the characters in the <br>
document. the fcsep value of the first entry points to the one sep in the file. the second
sed entry is a dummy with fcsep set to <br>
0xffffffff. <br>
the pgtb section (optional) is on the page immediately after the sep section. <br>
<br>
note:&nbsp;&nbsp;&nbsp; the term &quot;page&quot; used in the rest of this section refers
to printed pages of a write document, not 128-byte &quot;pages&quot; of a disk <br>
file. <br>
<br>
the page table (pgtb) contains an array of page descriptors (pgds), which are described
later in this section. following is the <br>
structure of a pgtb: <br>
<br>
word&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp; description<br>
<br>
0&nbsp;&nbsp;&nbsp; cpgd&nbsp;&nbsp;&nbsp; number of pgds (1 or more) <br>
1&nbsp;&nbsp;&nbsp; cpgdmac&nbsp;&nbsp;&nbsp; undefined <br>
2杗&nbsp;&nbsp;&nbsp; rgpgd&nbsp;&nbsp;&nbsp; array of pgds plus zero padding to fill the
sector <br>
<br>
following is the structure of a pgd: <br>
<br>
word&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp; description<br>
<br>
0&nbsp;&nbsp;&nbsp; pgn&nbsp;&nbsp;&nbsp; page number in printed word documents <br>
1-2&nbsp;&nbsp;&nbsp; cpmin&nbsp;&nbsp;&nbsp; byte address of first character on printed
page <br>
<br>
font table<br>
<br>
the font face-name table (ffntb) contains the number of font face names (ffns) and a list
of ffns. following is the structure of <br>
an ffntb: <br>
<br>
byte&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp; description<br>
<br>
0-1&nbsp;&nbsp;&nbsp; cffn&nbsp;&nbsp;&nbsp; number of ffns <br>
2杗&nbsp;&nbsp;&nbsp; grpffn&nbsp;&nbsp;&nbsp; list of ffns <br>
<br>
following is the structure of an ffn: <br>
<br>
byte&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp; description<br>
<br>
0-1&nbsp;&nbsp;&nbsp; cbffn&nbsp;&nbsp;&nbsp; number of bytes following in this ffn (not
including these 2 bytes) <br>
2&nbsp;&nbsp;&nbsp; ffid&nbsp;&nbsp;&nbsp; font family identifier (see below) <br>
3?cbffn+2)&nbsp;&nbsp;&nbsp; szffn&nbsp;&nbsp;&nbsp; font name (variable length;
null-terminated) <br>
<br>
a cbffn value of 0xffff means that the next ffn entry will be found at the start of the
next 128-byte page. a cbffn value of zero <br>
means that there are no more ffn entries in the table. <br>
possible values for ffid are ff_dontcare, ff_roman, ff_swiss, ff_modern, ff_script, and
ff_decorative. <br>
these constants are defined in windows.h. additional values may be added to the list in
future versions of windows. <br>
<br>
<br>
&#26;</td>
</tr>
</table>
</center></div>
<p align="center"><a href="../index.htm">返回</a></p>
</body>
</html>

⌨️ 快捷键说明

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