Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!varian!david
From: david@varian.UUCP
Newsgroups: net.micro
Subject: Re: Wordstar -> troff ? (2nd try)
Message-ID: <195@varian.UUCP>
Date: Tue, 13-Mar-84 20:08:23 EST
Article-I.D.: varian.195
Posted: Tue Mar 13 20:08:23 1984
Date-Received: Thu, 15-Mar-84 07:13:28 EST
References: aluxp.1206
Lines: 32

I have posted to net.sources a locally-written program called
ws_nroff.c that does this (sort of).

It was written several years ago here for the purpose of moving a few
large WordStar files to UNIX and nroff; it was used once and the output
fixed up by hand, and all further changes to those files were done on
UNIX.  The programmer who wrote it is no longer at Varian, but I am in
touch with him, and he gave his OK for posting to the net; however, he
didn't want his name on it, as it is not a finished product.  Folks are
welcome to use it as a starting base, and if anyone improves it, please
send me the changes, and I'll see that the author gets them as well.

The program carries the following caveat:
	This program is incomplete - many WordStar functions are not
	handled but just translated to comments - see the code below.
	In addition, there are problems with un-hyphenating hyphenated
	words and with indentation. There may be a problem with some
	cases of underlining. Output generated from this program
	should be inspected and corrected before feeding to nroff.

If folks on the ARPANET who don't receive net.sources are interested,
I imagine it could be posted to net.micro as well so that it will show
up in INFO-MICRO, but I didn't want to fill up the list with long messages
(it's about 500 lines long). If it gets cleaned up enough, it probably
should end up on a USENIX tape.

	David Brown	 (415) 945-2199
	Varian Instruments 2700 Mitchell Dr.  Walnut Creek, Ca. 94598
	{ihnp4,tektronix,hplabs,sytek,dual}!zehntel!varian!david
	{amd70,fortune}!varian!david
	...!decvax!sytek!zehntel!varian!david
	...!ucbvax!menlo70!sytek!zehntel!varian!david