📄 wri.htm
字号:
write <br>
2 fdline reserved; ignored by write
<br>
3 foverset reserved; ignored by
write <br>
4-5 csm reserved; ignored by write <br>
6 fspecial set for
"(page)" only <br>
7 reserved; ignored by write <br>
4 0-2 ftcxtra font code (high-order
bits, concatenated with ftc) <br>
3 foutline reserved; ignored by
write <br>
<br>
4 fshadow reserved; ignored by
write <br>
5-7 reserved; ignored by
write <br>
5 hpspos 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 value<br>
<br>
0 1 <br>
2 24 <br>
3-5 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 bit name description<br>
<br>
0 reserved; must be zero
<br>
1 0-1 jc justification: 0=left,
1=center, 2=right, 3=both <br>
2-7 reserved; must be zero <br>
2 reserved; must be zero
<br>
3 reserved; must be zero
<br>
4-5 dxaright right indent, in
20ths of a point <br>
6-7 dxaleft left indent, in
20ths of a point <br>
8-9 dxaleft1 first-line left
indent (relative to dxaleft) <br>
10-11 dyaline interline
spacing (standard is 240) <br>
12-13 dyabefore reserved;
ignored by write (standard is zero) <br>
14-15 dyaafter reserved;
ignored by write (standard is zero) <br>
<br>
16 0 rhcpage 0=header, 1=footer <br>
1-2 reserved; 0=normal
paragraph, nonzero=header or footer paragraph <br>
3 rhcfirst start of printing:
1=print on first page, 0=do not print on first page <br>
4 fgraphics paragraph type:
1=picture, 0=text <br>
5-7 reserved; must be zero <br>
17-21 reserved; must be
zero <br>
22-78 tab descriptors
(up to 14) <br>
<br>
following is the format of a tbd: <br>
<br>
byte bit name description<br>
<br>
0-1 dxa indent from left
margin of tab stop, in 20ths of a point <br>
2 0-2 jctab tab type: 0=normal tabs,
3=decimal tabs <br>
3-5 tlc reserved; ignored by write <br>
6-7 reserved; must be zero <br>
3 chalign 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 value<br>
<br>
0 61 <br>
2 30 <br>
10-11 240 (word) <br>
12-78 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 name description<br>
<br>
0 cch 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 reserved; must be zero <br>
3-4 yamac page length, in 20ths of a point (default is
11*1440=15840) <br>
5-6 xamac page width, in 20ths of a point (default is
8.5*1440=12240) <br>
7-8 reserved; must be 0xffff <br>
9-10 yatop top margin, in 20ths of a point (default is
1440) <br>
11-12 dyatext height of text, in 20ths of a point
(default is 9*1440=12960) <br>
13-14 xaleft left margin, in 20ths of a point (default
is 1.25*1440=1800) <br>
<br>
15-16 dxatext 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 name description<br>
<br>
0 csed number of sections (always 2 for write
documents) <br>
1 csedmax undefined <br>
2杗 rgsed array of seds plus zero-padding to fill the
sector <br>
<br>
following is the structure of an sed: <br>
<br>
word name description<br>
<br>
0-1 cp byte address of first character following
section <br>
2 fn undefined <br>
3-4 fcsep 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: the term "page" used in the rest of this section refers
to printed pages of a write document, not 128-byte "pages" 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 name description<br>
<br>
0 cpgd number of pgds (1 or more) <br>
1 cpgdmac undefined <br>
2杗 rgpgd array of pgds plus zero padding to fill the
sector <br>
<br>
following is the structure of a pgd: <br>
<br>
word name description<br>
<br>
0 pgn page number in printed word documents <br>
1-2 cpmin 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 name description<br>
<br>
0-1 cffn number of ffns <br>
2杗 grpffn list of ffns <br>
<br>
following is the structure of an ffn: <br>
<br>
byte name description<br>
<br>
0-1 cbffn number of bytes following in this ffn (not
including these 2 bytes) <br>
2 ffid font family identifier (see below) <br>
3?cbffn+2) szffn 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>
</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 + -