[comp.sys.mac] File format of Microsoft Word

calvin@iconsys.UUCP (Calvin Hamilton) (12/03/87)

I am trying to write an application to do file conversion
and would like to be able to convert directly
into a Microsoft Word 3.0 file format.  Does anyone have
information on the the Normal file format as well as the 
RFT file format of Microsoft Word 3.0?  Does anyone know
where I could get information?

Thanks,


-- 
Calvin Hamilton		    {ihnp4,uunet}!iconsys!calvin
Icon International, Inc.    {ihnp4,psivax}!nrcvax!nrc-ut!iconsys!calvin
Orem, Utah 84058	    ARPANET: icon%byuadam.bitnet@wiscvm.wisc.edu
(801) 225-6888		    BITNET: icon%byuadam.bitnet

chuq@plaid.UUCP (12/04/87)

>I am trying to write an application to do file conversion
>and would like to be able to convert directly
>into a Microsoft Word 3.0 file format.  Does anyone have
>information on the the Normal file format as well as the 
>RFT file format of Microsoft Word 3.0?  Does anyone know
>where I could get information?

The format of the word 3.0 file is proprietary. Microsoft will license it to
vendors that need to read it (such as spell checkers and layout programs)
but you need to talk to them about that. Also note that reading the format
is a non-trivial exercise, especially if 'fast save' in enabled. If you use
a non-optimal algorithm, you can go to lunch while loading a file (this is
the case with Ready, Set, Go! 4.0, which reads 3.0, but possibly very
slowly...)

I haven't seen a full spec on the transfer format. If someone has it, please
post it. If not, I'll see about tracking one down.

chuq
---
Chuq "Fixed in 4.0" Von Rospach			chuq@sun.COM	Delphi: CHUQ

suhler@im4u.UUCP (12/05/87)

Rich Text Format is designed for different Microsoft applications on
different hardware to be able to interchange formatted text and pictures.
Anyone can use it to generate formatted stuff for inclusion in MS documents.
Microsoft sent me the RTF spec for free.  Just write to:

	Microsoft Corporation
	RTF/Applications
	16011 NE 36th Way
	Box 97017
	Redmond, WA  98073-9717

If you want to see it, though, just get into Word and save a document as
"Interchange format (RTF)" (through the "Save As" menu item).  Then open that
file through Word and answer "No" when it asks "Interpret RTF" or whatever.
You'll see that an RTF document has four major sections, the font table,
style sheet, color table, and document contents.

I was trying to generate a formatted bibliography document from inside
HyperCard.  I created an RTF header by saving a small document as RTF.  I
edited out the fonts and styles I didn't need to use and saved it in a file
read by HC.  The stack read in the RTF header file, wrote it out into the
biblio file, wrote out individual entries with appropriate control words
inserted (e.g., to create italics), put out one final '}' or whatever,
and closed the file.  Then I could open it from Word and include it
in the paper for which I'd formatted the bibliography.  It was really easy.
-- 
Paul Suhler        suhler@im4u.UTEXAS.EDU	512-474-9517/471-3903