>>>>> "Gregory" == Gregory J Murphy <@UICVM.UIC.EDU:GJMURPHY@PUCC> writes:
> Before I start chipping away at yet another wheel... Has anyone
> out there written a utility that reads sgmls 1.1 output and puts it
> back into sgml? What I'm after is a way to easily "normalize" sgml
> - supply omitted tags and inherited attributes and the like.
> If not, would anyone be interested in having such a tool?
I think that the uses such a tool would be much more limited than you
think, because the ESIS output of SGMLS loses much of the information
of the original document -- entity references are already expanded,
attribute values are defaulted, marked sections are already included
or ignored, etc. It is an easy job (about 30 minutes' work) to write
a perl filter to convert SGMLS output into SGML, and I would recommend
it as an exercise in understanding SGMLS and SGML, but such a tool
would have extremely limited value for real production work.
If A/E is a little awkward, trying simply loading the texts into Emacs
with PSGML installed and typing M-x sgml-normalize [RETURN].
David Megginson Department of English, University of Ottawa,
[log in to unmask] Ottawa, Ontario, CANADA K1N 6N5
[log in to unmask] Phone: (613) 564-6850 (Office)
[log in to unmask] (613) 564-9175 (FAX)