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

📄 wordst.htm

📁 各种文件格式说明及程序描述
💻 HTM
📖 第 1 页 / 共 4 页
字号:
offset of the internal sequence. if the hi order bit is not set, then this number is the
endnote number to use.<br>
byte: not used, conversion flag is now in the internal tag symmetrical sequence. if the
footnote contains no tag, then this byte is used for the conversion flag.<br>
remaining bytes are for text of the endnote itself.<br>
the text can contain another sequence of the same format. this internal sequence is used
to display or print the tag associated with the note: word: not used (line count assumed
1)<br>
word: endnote number.<br>
byte: conversion flag. normally 0, unless .cv is used to convert notes from one type to
another. the format of the low order nybble of this byte is the same as the numbers for
footnotes, endnotes and comments. if this byte is 3, convert this note to a footnote. if
6, convert to a comment.<br>
the high order nybble of this byte is for the format type of the note (alphabetic,
numeric, etc.). 0 means to use symbols, 1 is for upper case, 2 is for lower case, and
three is for numbers.<br>
<br>
5&nbsp;&nbsp;&nbsp; annotation (arbitrary note)<br>
word: line count of annotation text.<br>
word: offset to the internal tag (only the low order 15 bits are used for this, as in
footnotes and endnotes). if the high order bit is set, it indicates that there is an
internal tag. if there is no internal tag, the entire word will be 0.<br>
byte: conversion flag. not used for annotations.<br>
remaining bytes are for text of the annotation itself.<br>
the text can contain another sequence of the same format. this internal sequence is used
to display or print the tag associated with the note: word: not used (line count assumed
1)<br>
word: not used.<br>
remaining bytes are for the text used to display and print the tag of the note (can be
null).<br>
byte: conversion flag. not used for annotations.<br>
<br>
6&nbsp;&nbsp;&nbsp; comment<br>
word: line count of the comment.<br>
word: tag offset (not used).<br>
byte: conversion flag. normally 0, unless .cv is used to convert notes from one type to
another. the format of the low order nybble of this byte is the same as the numbers for
footnotes, endnotes and comments. if this byte is 4, convert this note to an endnote. if
3, convert to a footnote.<br>
the high order nybble of this byte is for the format type of the note (alphabetic,
numeric, etc.). 0 means to use symbols, 1 is for upper case, 2 is for lower case, and
three is for numbers.<br>
since comments don't contain internal tags for display with print control display off, no
internal sequence is used, and the remaining bytes are the text of the comment.<br>
<br>
7&nbsp;&nbsp;&nbsp; reserved.<br>
<br>
8&nbsp;&nbsp;&nbsp; reserved.<br>
<br>
<br>
tabs<br>
<br>
9&nbsp;&nbsp;&nbsp; tabs and dot leaders<br>
word: tab size in hmis<br>
word: absolute tab size in hmis<br>
byte: tab type: space for hard tab, soft space for soft tab, '#' for decimal tab. also,
'!' is used for center line tab, '[' for right align line tab. other character such as '.'
or '*' are used for dot leaders.<br>
byte: tab size in 1/10th<br>
<br>
0ah&nbsp;&nbsp;&nbsp; reserved.<br>
<br>
0bh&nbsp;&nbsp;&nbsp; end of page<br>
this sequence should usually be ignored. it's used by the wordstar editor to keep track of
page breaks. it is transient, and moves around with the page break.<br>
word: current vmis on this page<br>
word: line # on page<br>
byte: newspaper type column number<br>
byte: # of newspaper type columns in effect.<br>
word: vmi placement from top of page where newspaper type columns begin.<br>
word: line number from top of page where newspaper type columns begin.<br>
word: footnote number currently in effect.<br>
word: total vmis for footnotes on this page.<br>
word: total vmis for footnote header and separator lines.<br>
word: vmis leftover on this page from footnote not completely printed (for running
footnotes).<br>
5 words: reserved.<br>
<br>
0ch&nbsp;&nbsp;&nbsp; page offset<br>
reserved for printer driver use only. should not appear in files.<br>
byte: number of blanks before line number (0 if no number).<br>
word: absolute hmi spot for line number (0 if no number).<br>
byte: number of blanks after line number.<br>
word: absolute hmi spot for start of text.<br>
byte: number of bytes in line number.<br>
bytes: ascii of line number.<br>
<br>
others<br>
<br>
0dh&nbsp;&nbsp;&nbsp; paragraph number<br>
byte: number of level moves forward from previous paragraph number. 0 to stay at current
level, 1 to move in a level.<br>
byte: number of level moves backwards from previous paragraph number. 0 to stay at current
level (or forwards if previous byte non- zero), or number of levels moved left (2.1.1
going to 3 would mean this byte would be a 2).<br>
byte: level number of this paragraph number (1 based).<br>
word: level 1 number, 0 based.<br>
word: level 2 number, 0 based.<br>
word: level 3 number, 0 based.<br>
word: level 4 number, 0 based.<br>
word: level 5 number, 0 based.<br>
word: level 6 number, 0 based.<br>
word: level 7 number, 0 based.<br>
word: level 8 number, 0 based.<br>
31 bytes indicating the format to use for this paragraph number, including a zero
terminator.<br>
<br>
0eh&nbsp;&nbsp;&nbsp; index item<br>
text for the index item.<br>
<br>
0fh&nbsp;&nbsp;&nbsp; user print control<br>
word: number of hmis this sequence uses on the printed page.<br>
byte: number of characters used for screen display.<br>
text: the display string itself.<br>
the remaining bytes contained in this sequence will be sent directly to the printer.<br>
<br>
10h&nbsp;&nbsp;&nbsp; graphics insert<br>
text: file name to use for graphics insert. length is determined from length of
symmetrical sequence.<br>
11h&nbsp;&nbsp;&nbsp; paragraph style<br>
word: new paragraph style number. this number is an index into the document's style
library. this is the style that the user just selected.<br>
<br>
word: previously selected paragraph style number. this is an index into the document's
style library of the style previously selected by the user.<br>
<br>
word: previous paragraph 'modified' style number. this is the current style conditions
before this selection was made. because attributes and fonts may have changed since the
last style selection was made, new temporary styles must be created in the library to
reflect changes. <br>
<br>
word: previous-previous selected, for reverting. this is the style selected by the user
prior to the previous style. this is used to revert back to the previous style (^ofp).
this is necessary for wordstar to know the previously selected style when moving backwards
in the file without having to keep a list.<br>
<br>
12h-14h&nbsp;&nbsp;&nbsp; reserved.<br>
<br>
15h&nbsp;&nbsp;&nbsp; alternate/normal font change<br>
byte: normal = 0, alternate = 1.<br>
the rest of the sequence is like a font symmetrical sequence, with the new font
characteristics (width, height, and typestyle), followed by the previous font
characteristics. this sequence is inserted by the editor whenever a ^n or ^a is
encountered when editing, or when entering ^pa or ^pn.<br>
<br>
16h&nbsp;&nbsp;&nbsp; truncation<br>
used when a large symmetrical sequence doesn't fit in ram. rather than leave the
symmetrical sequence open, it's shortened to fit in ram. both the leading and trailing
count words are adjusted in the offending symmetrical sequence, and this sequence is
placed inside the sequence at the end. this usually will happen with large footnotes or
endnotes. the sequence contains no information (only the count words and the type byte),
but gets translated to &quot;&lt;truncated&gt;&quot; when printed or displayed.<br>
<br>
17h&nbsp;&nbsp;&nbsp; japanese font shift-in/shift-out<br>
byte: shift-in (to japanese) = 1, shift-out (back to normal) = 0.<br>
used to change wordstar's interpretation of character codes within the file. when shifted
in, wordstar no longer uses the 1bh/1ch wrap characters and interprets characters using
the asian character standard which uses 81h-9fh and e0h-feh for a prefix followed by
20-7fh to form a complete character (values not in those ranges use only one byte.
japanese versions of wordstar only.<br>
<br>
18h-0ffh&nbsp;&nbsp;&nbsp; reserved.<br>
<br>
<br>
paragraph style libraries<br>
<br>
the paragraph style library is kept in three places:<br>
<br>
1)&nbsp;&nbsp;&nbsp; wsstyle.ovr. this is the main style library from which selections are
made.<br>
<br>
2)&nbsp;&nbsp;&nbsp; the file being edited contains copies of all styles that are used in
the document (this library is kept at the end of the file. a 32-bit pointer is placed in
the header symmetrical sequence which points to the beginning of the document's library).<br>
<br>
3)&nbsp;&nbsp;&nbsp; a temporary file contains the current working copy of the document's
styles , which contains the styles from the end of the document, the library styles, and
temporary styles while editing.<br>
<br>
<br>
file style library<br>
<br>
the header symmetrical sequence contains a 32-bit absolute offset into the file where the
style library begins (see the description of the header symmetrical sequence). this offset
is actually the offset of the master index which may be used for structures other than
paragraph styles. this offset must be on a sector (128-byte) boundary. the structure of
the master index follows:<br>
<br>
byte: 1ah -- end of file indicator regardless of wordstar filling remainder of last
128-byte sector with 1ah's.<br>
<br>
byte: wordstar style version number in bcd (55h for version 5.5). this number will change
to reflect the version of wordstar when there is a revision in the style library that
would cause incompatibilities between versions.<br>
<br>
word: next 512-byte block number available relative to the index start, not the document
start.<br>
<br>
byte: number of objects (currently 1, paragraph styles only).<br>
<br>
<br>
master index begins here. it currently consists of only 1 object (paragraph styles).<br>
word: number of index entries allocated. this is the number of index entries that are
available for use in the blocks that have been allocated to the master index.<br>
<br>
word: size of an object entry (102 decimal for paragraph styles).<br>
<br>
double word: pointer to beginning of object index. usually points to next byte since
paragraph styles are the only object. this pointer is relative to the beginning of the
master index, not the document file itself.<br>
<br>
<br>
object index begins here.<br>
<br>
byte: number of index entries in this block. (14 for paragraph styles)<br>
<br>
double word: link to next index block. this pointer is relative to the beginning of the
master index, not the document file itself.<br>
<br>
<br>
index items follow:<br>
<br>
24 bytes: object name (paragraph style name, left justified, blank filled)<br>
<br>
byte: used internally.<br>
<br>
word: used internally.<br>
<br>
word: used internally.<br>
<br>
double word: pointer to style entry. this pointer is relative to the beginning of the
master index, not the document file itself.<br>
<br>
the above index item is repeated for each indexed entry. if the block is filled with
indexes, the link to next index block can be used to go to the next set of indexes.<br>
<br>
<br>
style entry:<br>
<br>
3 words: font description. see the font symmetrical sequence description. first word is -1
if inherited.<br>
<br>
2 words: reserved.<br>
<br>
word: left margin in hmi, -2 (0fffeh) if inherited.<br>
<br>
word: right margin in hmi, -2 (0fffeh) if inherited.<br>
<br>
word: paragraph margin in hmi, -2 (0fffeh) if inherited.<br>
<br>
word: reserved.<br>
<br>
byte: number of regular tabs, 0 if inherited (also, first tab stop below will be -1).<br>
<br>
byte: number of decimal tabs, 0 if inherited (also, first tab stop below will be -1).<br>
<br>
32 words: tab stops in hmis. regular tabs are first. if first tab stop is -1 (0ffffh),
then tabs are inherited.<br>
<br>
word: reserved.<br>
<br>
byte: justification flag. 0 means no justification, -1 means inherit, 1 means right
justified, -2 means centered, and -3 means flush right.<br>
<br>
byte: word wrap flag. 1 means word wrap is on, 0 is off, -1 means inherit.<br>
<br>
word: line height in vmi, -1 = inherit.<br>
<br>
byte: line spacing (1-9), -1 = inherit.<br>
<br>
2 words: print attributes on, off. bits set in the first word indicate those attributes
are explicitly set to the on state. bits set in the second word indicate those attributes
are explicitly set off. if both corresponding bits are off, then the attribute is
inherited from the current state. descriptions of the bits are as follows:<br>
<br>
strikeout&nbsp;&nbsp;&nbsp; 000000000000001b<br>
doublestrike&nbsp;&nbsp;&nbsp; 000000000000010b<br>
<br>
underlining&nbsp;&nbsp;&nbsp; 000000000001000b<br>
subscript&nbsp;&nbsp;&nbsp; 000000000010000b<br>
superscript&nbsp;&nbsp;&nbsp; 000000000100000b<br>
bold&nbsp;&nbsp;&nbsp; 000000001000000b<br>
italics&nbsp;&nbsp;&nbsp; 000000010000000b<br>
<br>
byte: color. see a description of the color symmetrical sequence. -1 means inherited.<br>
<br>
6 bytes: reserved.<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 + -