[comp.text.desktop] nroff to Interleaf conversion

Schauble@MIT-Multics.ARPA (Paul Schauble) (12/17/87)

Can anyone offer any information about conversion aids to move a
document from nroff to Interleaf?  It seems as though this translation
could be done mechanically.  Has anyone written the necessary program?

----------------------------------------
Submissions to:   desktop%plaid@sun.com -OR- sun!plaid!desktop
Administrivia to: desktop-request%plaid@sun.com -OR- sun!plaid!desktop-request
Paths:  {ihnp4,decwrl,hplabs,seismo,ucbvax}!sun

mam@philabs.philips.com (Mark A. Maxwell) (12/19/87)

>Can anyone offer any information about conversion aids to move a
>document from nroff to Interleaf?

Your Interleaf rep should have such a filter along with many others available
to import most standard formats.  If you are running a current rev of
Interleaf the should be no problem.

 *      *                *          *                  *             * 
itzzall4phun-                   {ihnp4,uunet}!philabs!mam   philips laboratories
     *            *            *                 *                *         *
----------------------------------------
Submissions to:   desktop%plaid@sun.com -OR- sun!plaid!desktop
Administrivia to: desktop-request%plaid@sun.com -OR- sun!plaid!desktop-request
Paths:  {ihnp4,decwrl,hplabs,seismo,ucbvax}!sun

md@umb.edu (Mark Dionne) (12/19/87)

>Can anyone offer any information about conversion aids to move a
>document from nroff to Interleaf?

Interleaf provides a facility for converting nroff/troff documents
to Interleaf documents. It takes the *output* from nroff and does
it's best to extract stylistic information. Check your documentation
and/or call your account representative.

(The "-d nroff" option to the opsfilt program was documented and QAed
about one release later than the code was shipped, so you may have it
even if you have an older release. I can't remember the exact version
numbers involved.)

There is also a set of filters to handle documents with EQN equations
if you have the Interleaf math option.

A filter to take arbitrary nroff/troff source and convert to Interleaf 
(or anything else) is difficult because n/troff is pretty close to a 
programming language. You have to make all the registers and conditionals
and macros and ... work just like n/troff, and even duplicate the bugs
that people rely on. I don't know of anyone that has done this.

It would be very easy, almost trivial, I think, to write filters for 
the various macro packages such as ms, me or mm, or at least for large
subsets. The problem is that I have never seen a site that enforces
pure usage of the macro packages. At any point someone can fall into
arbitrarily complex nroff codes.

The above two paragraphs apply to TeX too. I wish that Knuth had added
an optional layer of protection to TeX so that macro package writers 
could choose to disable more primitive layers of macros.
-- 
	...!harvard!umb!ileaf!md	Mark Dionne, Interleaf
	  ...!sun!sunne!ileaf!md	Ten Canal Park, Cambridge, MA 02141
					(617) 577-9813 x5551
----------------------------------------
Submissions to:   desktop%plaid@sun.com -OR- sun!plaid!desktop
Administrivia to: desktop-request%plaid@sun.com -OR- sun!plaid!desktop-request
Paths:  {ihnp4,decwrl,hplabs,seismo,ucbvax}!sun