[comp.soft-sys.andrew] rofftext...please be gentle with me

keane@ultima.cs.uts.oz (Chris Keane) (01/17/90)

This is probably a really silly question. I'm trying to convert 
various troff documents to atk format. The troff stuff uses the
'ms' macro package and so I've been using the command

% rofftext -t -ms Doccy > atkDoccy

but all this does it produce an atk skeleton...that is:


\begindata{text, 630704}
\textdsversion{12}
\template{roff}




\majorheading{        

}
\enddata{text,630704}

But the Doccy is fairly substantial! (and known formatted correctly)

We are running Sun 3/50s SunOS4.0.3. X11R3 (Our Andrew Version is the one
that was released on the X11R3 tape with no patches)

hmmm...can anyone help me?
regards...
                                          Chris.


+-------------------------------------------------+
| The ultimate profit-making juke-box: It plays   |  keane@ultima.cs.uts.oz
| Kylie Minogue songs until you put money in it...|  keane@utscsd.oz
+-------------------------------------------------+

guy@auspex.auspex.com (Guy Harris) (02/03/90)

>There is now a toez command which converts Scribe or troff/nroff to ez.

Yes, but it appears to just be another application wrapper around the
"rofftext" object, just as "rofftext" itself is.  However, while

	toez -ms <your input file>

worked OK (<your input file> being the slice of the input file you
provided), "rofftext -t -ms <your input file>" didn't.  Furthermore,
neither "rofftext" *nor* "toez" did anything with the following:

-------------------------------Cut Here----------------------------------------
.LP
The Xmu Library is a collection of miscellaneous (some might say random)
utility functions that have been useful in building various applications
and widgets.  This library is required by the Athena Widgets.
-------------------------------Cut Here----------------------------------------

where "rofftext" was run with "-ms" ("-t" or not "-t" didn't matter),
and "toez" was run with "-ms" as well ("-troff" or not "-troff" didn't
matter).

"nroff -ms <that file>" did work, however.  The "-ms" macro package here
is the standard SunOS 4.0.3 one; differences between the various "-ms"
packages may account for these problems.

guy@auspex.auspex.com (Guy Harris) (02/03/90)

>The "-ms" macro package here is the standard SunOS 4.0.3 one;
>differences between the various "-ms" packages may account for these
>problems.

In fact, it probably *does* account for it, in combination with a
"rofftext" bug.  The document

	.de XX
	.de YY
	\\..
	..
	.XX
	Hello, world

when run with "rofftext" with no extra arguments (i.e., no "-ms")
produces an empty document, with "Hello, world" nowhere in it.  I think
"rofftext" can't cope with macros that define macros, as "XX" does
there, and as do several macros in the SunOS 4.0.3 "-ms" macro package
(and perhaps in other variants of "-ms" as well).

wjh+@ANDREW.CMU.EDU (Fred Hansen) (02/05/90)

Excerpts from internet.info-andrew: 2-Feb-90 Re: rofftext...please be
ge.. Guy Harris@uunet.uu.net (1150)

> neither "rofftext" *nor* "toez" did anything with the following:

> -------------------------------Cut Here----------------------------------------
> .LP
> The Xmu Library is a collection of miscellaneous (some might say random)
> utility functions that have been useful in building various applications
> and widgets.  This library is required by the Athena Widgets.
> -------------------------------Cut Here----------------------------------------

I created a file with the above text and ran it with 
	toez -m -troff test > test.d

The result was a mostly empty file containing none of the words in the
given text.

In other words, it doesn't work with the RT version of -ms either.  

I am sending this note to info-andrew-bugs so the bug can be recorded.

FredH