[comp.sys.mac.programmer] Works 2.00 file format

frisk@rhi.hi.is (Fridrik Skulason) (07/02/90)

I am working on a spelling checker, able to read files produced by various
word-processing programs, as well as monitoring keyboard input and read
data from the clipboard.  I am having serious problems with one word-processor,
so  hoping that someone on the net can help me........

If anyone out there is familiar with the internal structure of Works 2.00
(not 2.00a) file formats, maybe you can answer this......

When a picture is included in the file, the header of the picture record
contains information on where it is to be displayed in the text.  This
information is described as two longwords, containing vertical and horizontal
offsets.  Well, either the description of the file format that I have is in
error, or I am misunderstanding something, because if I use the spelling
checker to change a word at the very end of the file, but leave the rest
of the file as it was, Works will crash when I read the file back in.

If I make the same change to the file using Works, the picture header
changes in a way I do not understand.  I don't see why it should change, as
the text is located *after* the picture.

So - please, can anyone help .......?

Please send replies by e-mail to frisk@rhi.hi.is

-frisk

-- 
Fridrik Skulason      University of Iceland  |       
Technical Editor of the Virus Bulletin (UK)  |  Reserved for future expansion
E-Mail: frisk@rhi.hi.is    Fax: 354-1-28801  |