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

📄 wordst.htm

📁 各种文件格式说明及程序描述
💻 HTM
📖 第 1 页 / 共 4 页
字号:
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>wordstar file format release 7</title>
<meta name="generator" content="microsoft frontpage 3.0">
</head>

<body background="../jpg/di1.JPG">

<p align="center"><font size="6" color="#0000ff">wordstar file format release 7.0</font></p>
<div align="center"><center>

<table border="0" width="88%">
<tr>
<td width="100%"><br>
march 17, 1992<br>
<br>
<br>
the wordstar file format is a living specification, continually evolving to<br>
meet the needs of new provisions and features. with each release of wordstar,<br>
new commands are established, and slight changes are made to the meaning of<br>
various codes. while every effort has been made to make this document an<br>
accurate reflection of the wordstar format as it stands now, no guarantee can<br>
be given that future releases of the program will follow the specifications as<br>
they are expressed here.<br>
<br>
<br>
textual information <br>
wordstar files contain text which conforms in general to the 7-bit ascii code<br>
for printable characters. all codes below 20h are reserved for control<br>
information, and the high (8th) bit on characters is likewise used to convey<br>
information about formatting and document control. a raw stream of the<br>
printable text in a wordstar file could therefore be discerned by masking off<br>
the 8th bit and discarding codes in the range of 00h through 1fh. this<br>
method would, of course, omit all formatting and control information in the<br>
file. in addition to stripping control characters, symmetrical sequences must<br>
be stripped. see the description of symmetrical sequences below.<br>
more recent versions of wordstar (release 3.4 and above) provide for an<br>
extension to the 7-bit ascii character set by means of 3-byte sequences.<br>
these codes all begin with the lead-in character &lt;1bh&gt; and end with the<br>
trailer &lt;1ch&gt;. the code in between these two characters can be any value in<br>
the range from 00h through ffh. in general, this scheme is used to support<br>
printable codes less than 20h and greater than 7fh.<br>
starting with version 5.0, wordstar files also contain &quot;symmetrical<br>
sequences&quot;. these are used for footnotes, font tags, etc. in addition,<br>
wordstar 5.0 (and later) files begin with a symmetrical sequence which is<br>
used as a header. see the description of the header symmetrical sequence<br>
below.<br>
<br>
<br>
formatting and control information <br>
<br>
<br>
high bits <br>
<br>
all wordstar files terminate normal lines (paragraphs) with the sequence &lt;0dh,<br>
0ah&gt; (carriage return, line feed). a &quot;soft return&quot; &lt;8dh, 0ah&gt; is
inserted in<br>
the text stream at the points where lines are subject to word-wrap. a &quot;soft<br>
space&quot; &lt;a0h&gt; is inserted for tabbing, justification, and for left-margin<br>
indentation. in normal mid-paragraph lines, the blank characters (usually<br>
space) following words at the end of lines will be retained, so that the<br>
user's text is fully retained.<br>
an &quot;inactive soft hyphen&quot; &lt;1eh&gt; is inserted in the text stream at places
where<br>
hyphenation may be allowed to occur. when the word is actually broken at the<br>
hyphenation spot, the inactive soft hyphen is changed to an &quot;active soft<br>
hyphen&quot; &lt;1fh&gt;. this active hyphen, since it falls at the end of a<br>
mid-paragraph line, will be immediately followed by the soft return mentioned<br>
above.<br>
in versions of wordstar prior to 5.0, the high bit was set on the last<br>
character of all non-blank text strings that fell within the margins. the<br>
printer drivers relied on this information to determine which text was to be<br>
microjustified. this functionality was dropped in the later versions in<br>
favor of the use of absolute tabs, margin dot commands, and paragraph styles.<br>
<br>
<br>
low-order codes <br>
<br>
wordstar (all versions) uses the ascii codes below 20h for control<br>
information. the specific assignment of meanings to codes is as follows:<br>
<br>
00h ^@&nbsp;&nbsp;&nbsp; fix the print position. at print time the print head is moved to
the<br>
absolute column position where the ^@ appears in the text. this is<br>
primarily used to line up proportional text or text that mixes the<br>
normal and alternate character widths.<br>
<br>
01h ^a&nbsp;&nbsp;&nbsp; alternate font. at print time the alternate character width is<br>
selected at the point in the text where the ^a appears. the<br>
alternate character width can be either preinstalled or changed with<br>
the .cw dot command while ^a is in effect. this print control is now<br>
obsolete. see the description of symmetrical sequence 15h, below.<br>
<br>
02h ^b&nbsp;&nbsp;&nbsp; boldface type on/off toggle.<br>
<br>
03h ^c&nbsp;&nbsp;&nbsp; pause for user response during print.<br>
<br>
04h ^d&nbsp;&nbsp;&nbsp; double strike printing on/off toggle.<br>
<br>
05h ^e&nbsp;&nbsp;&nbsp; custom print control. the user may either preinstall the print<br>
control string to be sent when ^e is encountered in the text, or the<br>
.xe dot command may be used to define it within a document.<br>
<br>
06h ^f&nbsp;&nbsp;&nbsp; phantom space. primarily used to access characters on a daisy
wheel<br>
at the 20h print position. on other types of printers results vary.<br>
<br>
07h ^g&nbsp;&nbsp;&nbsp; phantom rubout. primarily used to access characters on a daisy
wheel<br>
at the 7fh print position. on other types of printers results vary.<br>
<br>
08h ^h&nbsp;&nbsp;&nbsp; overprint previous character.<br>
<br>
09h ^i&nbsp;&nbsp;&nbsp; tab character. at print time the number of hard spaces required
to<br>
reach a modulus 8 print position is generated.<br>
<br>
0ah ^j&nbsp;&nbsp;&nbsp; line feed. at print time causes a paper advance to the next line.<br>
<br>
0bh ^k&nbsp;&nbsp;&nbsp; within the main text body, it is used to around words or phrases
to<br>
be indexed. in a header or footer line, on odd numbered pages all<br>
blanks following the ^k are suppressed.<br>
<br>
0ch ^l&nbsp;&nbsp;&nbsp; form feed. at print time causes page to be ejected. no footer
lines<br>
are printed.<br>
<br>
0dh ^m&nbsp;&nbsp;&nbsp; carriage return.<br>
<br>
0eh ^n&nbsp;&nbsp;&nbsp; return to the normal character width. now obsolete, see the<br>
description for the symmetrical sequence 15h, below.<br>
<br>
0fh ^o&nbsp;&nbsp;&nbsp; binding space. printed as a space. it is used to bind together
text<br>
that must not be split when a paragraph is realigned.<br>
<br>
10h ^p&nbsp;&nbsp;&nbsp; reserved.<br>
<br>
11h ^q&nbsp;&nbsp;&nbsp; custom print control.<br>
<br>
12h ^r&nbsp;&nbsp;&nbsp; custom print control.<br>
<br>
13h ^s&nbsp;&nbsp;&nbsp; underline on/off toggle.<br>
<br>
14h ^t&nbsp;&nbsp;&nbsp; superscript on/off toggle.<br>
<br>
15h ^u&nbsp;&nbsp;&nbsp; reserved.<br>
<br>
16h ^v&nbsp;&nbsp;&nbsp; subscript on/off toggle.<br>
<br>
17h ^w&nbsp;&nbsp;&nbsp; custom print control.<br>
<br>
18h ^x&nbsp;&nbsp;&nbsp; strikeout on/off toggle. causes all text between successive ^x's
to<br>
be overstruck with a dash (unless re installed for some other<br>
character).<br>
<br>
19h ^y&nbsp;&nbsp;&nbsp; italics on/off toggle (depending on the printer). versions of<br>
wordstar prior to 5.0 could also use this character as a ribbon color<br>
change. this was replaced in the later versions with color selection<br>
via ^p-.<br>
<br>
1ah ^z&nbsp;&nbsp;&nbsp; end of file character. when encountered indicates the end of the<br>
file.<br>
<br>
1bh ^[&nbsp;&nbsp;&nbsp; escape. reserved. also used as the extended character set lead-in<br>
code. if the second byte following the 1bh is a 1ch, the intervening<br>
byte is an extended character. example: &lt;1bh,aeh,1ch&gt;.<br>
<br>
1ch ^\&nbsp;&nbsp;&nbsp; reserved. also used as the extended character set trailer code if<br>
the second byte preceding it is a 1bh.<br>
<br>
1dh ^]&nbsp;&nbsp;&nbsp; symmetrical sequence start/stop character (see below).<br>
<br>
1eh ^^&nbsp;&nbsp;&nbsp; inactive soft hyphen. indicates a position at which a word may be<br>
broken for word-wrap.<br>
<br>
1fh ^_&nbsp;&nbsp;&nbsp; active soft hyphen. indicates a place at which a word has been<br>
broken for word-wrap.<br>
<br>
dot commands<br>
<br>
additional formatting information is recorded in wordstar files through means<br>
of &quot;dot commands.&quot; dot commands are instructions that are preceded (in the<br>
first position in the line) by a period &lt;2eh&gt; and stand alone as the only<br>
entry on that line. (see the wordstar documentation for exact descriptions<br>
of each dot command.)<br>
<br>
in the table below, the codes in the &quot;usage&quot; column indicate the following:<br>
<br>
&nbsp;&nbsp;&nbsp; m&nbsp;&nbsp;&nbsp; affects only merge printing.<br>
&nbsp;&nbsp;&nbsp; i&nbsp;&nbsp;&nbsp; affects only indexing.<br>
&nbsp;&nbsp;&nbsp; t&nbsp;&nbsp;&nbsp; affects only table of contents.<br>
&nbsp;&nbsp;&nbsp; p&nbsp;&nbsp;&nbsp; affects printing or merge printing.<br>
&nbsp;&nbsp;&nbsp; e&nbsp;&nbsp;&nbsp; affects editing, printing, or merge printing.<br>
<br>
in most cases, the dot commands that affect editing show some effect on the<br>
screen as the command is typed or changed. as the cursor is moved forward<br>
through the document, wordstar stores enough information about the command<br>
so that the previous state can be restored when the cursor is later moved<br>
backwards. there is a limited amount of storage for this information and it<br>
is controlled with the user area variable dstksz.<br>
<br>
versions prior to 4.0 require whole numbers as arguments to dot commands that<br>
require numbers (subscript roll, page offset). with version 4.0, math was<br>
allowed in the arguments for easier entry of complex page layouts. in<br>
version 5.0, the ability to specify measurements in inches was added. in<br>
version 5.5 revision c, measurements in points and centimeters were allowed.<br>
inches in 5.0 were specified using the double quote only. in 5.5c, inch<br>
measurements were allowed with 'i' or 'in'. centimeters are specified as 'c'<br>
or 'cm', and points with 'p' or 'pm'. upper and lower case are allowed with<br>
these. most dot commands that take their arguments as number of lines or<br>
columns will allow measurements as well. refer to the wordstar documentation<br>
to find out which dot commands accept measurements as arguments.<br>
<br>
<br>
<br>
the present interpretation of dot commands is:<br>
<br>
command usage meaning<br>
<br>
.av&nbsp;&nbsp;&nbsp; m&nbsp;&nbsp;&nbsp; ask for variable. requests the user to enter
data from the<br>
keyboard at print time for a specific variable.<br>
<br>
.aw&nbsp;&nbsp;&nbsp; e m&nbsp;&nbsp;&nbsp; aligning and word wrap on/off. enables or
disables aligning<br>
and word wrap at a specific point in the document. used<br>
primarily to prevent changes to tables.<br>
<br>
.bn p bin select. selects one of the sheet feeder bins at print<br>
time. the number of sheet feeders is defined in the pdf.<br>
<br>
.bp&nbsp;&nbsp;&nbsp; p&nbsp;&nbsp;&nbsp; bidirectional print on/off. enables and disables<br>
bidirectional printing. if the printer does not have<br>
bidirectional printing capability, this command is ignored.<br>
<br>
.cc&nbsp;&nbsp;&nbsp; e p&nbsp;&nbsp;&nbsp; conditional column break. like the .cp
command, but works<br>
with columnar breaks instead. if the number of lines<br>
following the conditional column break command fit on the<br>
current page, then there is no effect, otherwise, a columnar<br>
break will occur.<br>
<br>
.co&nbsp;&nbsp;&nbsp; e p&nbsp;&nbsp;&nbsp; columns. allows the user to specify the number
of columns and<br>
optionally, the gutter width in columns or inches.<br>
<br>
.cp&nbsp;&nbsp;&nbsp; e p&nbsp;&nbsp;&nbsp; conditional page break. if there are less than
the number of<br>
lines specified remaining on the page, then a page break is<br>
generated. if the number of lines following the conditional<br>
page break fit on the current page, then there is no effect.<br>
takes the line height changes into account.<br>
<br>
.cs&nbsp;&nbsp;&nbsp; p&nbsp;&nbsp;&nbsp; clear screen and display message. this command
is used to<br>
clear the screen during printing. if a message follows the<br>
.cs, it is displayed on the first screen line below the print<br>
menu.<br>
<br>
.cv&nbsp;&nbsp;&nbsp; e p&nbsp;&nbsp;&nbsp; convert note type. for further areas in the
document, all<br>
notes of the first type specified will be treated as notes of<br>
the second type. works with comments, footnotes, and<br>
endnotes.<br>
<br>
.cw&nbsp;&nbsp;&nbsp; p&nbsp;&nbsp;&nbsp; character width. this command allows the user to
specify<br>
the width of the characters in 1/120 inch increments. this<br>
width takes effect on the next line of text. either the<br>
normal (^n) or alternate (^a) character width is changed<br>
depending which is in effect. the default is 12 (12/120ths<br>
is 10 characters per inch).<br>
<br>
.df&nbsp;&nbsp;&nbsp; m&nbsp;&nbsp;&nbsp; data file. this merge print command is used to
specify the file name which holds data that will be merged into text. the data file may be
in comma delimited format, a dbase file, or a lotus 123, symphony, quattro, or vp- planner
worksheet. the user may also optionally change the data separator character for that file.<br>
<br>
.dm&nbsp;&nbsp;&nbsp; p&nbsp;&nbsp;&nbsp; display a message. displays a message on the
screen at print time. if printing in the background../jpg/di1.JPG .dm's can &quot;scroll off&quot; the
screen while it is hidden from the user.<br>
<br>
.e#&nbsp;&nbsp;&nbsp; e p&nbsp;&nbsp;&nbsp; set endnote value. specifies the new value for
endnote numbering.<br>
<br>
.ei&nbsp;&nbsp;&nbsp; m&nbsp;&nbsp;&nbsp; end if. indicates the final spot in a merge
print document affected by a .if command. there must be one .ei for every .if command.<br>
<br>
.el&nbsp;&nbsp;&nbsp; m&nbsp;&nbsp;&nbsp; else. used for the &quot;else&quot; case after
using a .if command. .el commands are optional.<br>
<br>
.f#&nbsp;&nbsp;&nbsp; e p&nbsp;&nbsp;&nbsp; set footnote numbering type and value.

⌨️ 快捷键说明

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