Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 1996 16:01:51 -0500 (EST)
From:      John Fieber <jfieber@indiana.edu>
To:        Sean Kelly <kelly@fsl.noaa.gov>
Cc:        grog@lemis.de, doc@freebsd.org
Subject:   Re: How do I write this SGML stuff?
Message-ID:  <Pine.NEB.3.93.960604153720.422P-100000@Fieber-John.campusview.indiana.edu>
In-Reply-To: <199606041918.TAA09724@gatekeeper.fsl.noaa.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 4 Jun 1996, Sean Kelly wrote:

> Third was the DTD itself.

Gee, and didn't you just about puke?   ;-)

In pondering what to do about it, I had visions of a totally new
system and ditching the linuxdoc dtd.  Unfortunately with the
time I've been able to devote to it I don't see that happening
very soon so I'm now plotting out a de-crufting project.  I'll
give a fair warning that <p> tags will NOT be implied by a blank
line after the de-crufting.  The way it is now is a headache
downstream in the processing.  And while I've got some troff
experts on the line, how do I tell troff that I want the first
character of a line to be a period, not a troff command?  For
example a line comes out of the sgml parser like this: 

.login is the file you put all your csh goodies in

but need to do something so that . is a printing character
instead of an error. 

> I finally figured out how to import PostScript ... although I don't
> know if this usage is ``blessed.''  (John?  Comments?)
> 
> 	<figure>
> 	  <eps file="blah">
> 	  <caption>Any caption text.</caption>
>         </figure>
> 
> In LaTeX, this becomes a \figure environment using \epsffile to insert
> blah.ps.  Our DTD adds the `.ps' no matter what, so don't name your
> EPS files `.eps'.  

Actually, its part of the translation, not the dtd, and it could
be trivially changed.  Would you like it changed?  Frankly it
makes more sense to me to NOT assume an extension.

> On my system, I also have to modify the
> \documentstyle line and add epsf to it:
> 
> 	\documentstyle[linuxdoc,epsf]{article}

You should be able to to this in your opening <article>,
<report>, or <book> tag: 

  <article opts="epsf">

> In HTML, nothing appears.  In ASCII, just the caption appears.

The current [nt]roff translation is:

<eps>           +       ".if t .PSPIC [file].ps\n"
                        ".if n .sp 4"           +
</eps>                  

The HTML translation could probably be mashed into an <a
href="file">file</a>.  The file would have to manually be added
to the makefile to get installed with the html files.

> You can also replace <eps> with <ph> (which means nothing as far as
> I'm concerned) to get a vetical space in which to put a figure later.

Hmm... Picture Here?  Preallocate Hole?  Yes, the dtd needs some
comments. 

-john

== jfieber@indiana.edu ===========================================
== http://fallout.campusview.indiana.edu/~jfieber ================




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.93.960604153720.422P-100000>