Article View: comp.text.desktop
Article #944Re: nroff to Interleaf conversion
From: Mark Dionne
Date: Fri, 18 Dec 1987 17:13
Date: Fri, 18 Dec 1987 17:13
39 lines
2317 bytes
2317 bytes
>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
Technical Details
Message-ID:
<36930@sun.uucp>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!ileaf!io!marvin!md@umb.eduShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!ileaf!io!marvin!md@umb.edu From: ileaf!io!marvin!md@umb.edu (Mark Dionne) Newsgroups: comp.text.desktop Subject: Re: nroff to Interleaf conversion Message-ID: <36930@sun.uucp> Date: 18 Dec 87 17:13:21 GMT Sender: news@sun.uucp Distribution: comp Lines: 39 Approved: desktop-request%plaid@sun.com