This is the mail archive of the
docbook-tools-discuss@sourceware.cygnus.com
mailing list for the docbook-tools project.
Re: images in Docbook with Red Hat 6.2
* Eric Bischoff <ebisch@cybercable.tm.fr> wrote:
> Jochem Huhmann wrote:
> >
> > * Eric Bischoff <ebisch@cybercable.tm.fr> wrote:
> > > The stylesheets solution could perfectly work if there was a
> > > way to easily detect which extension(s) do exist for this
> > > file from DSSSL.
> >
> > Could this be done by looking at this from the converting
> > (shell-)backend that builds the command-line for jade? It knows the
> > output format and could pass a variable to jade via "-V variable=value",
> > which is available in the stylesheet then (or isn't it?). Just a fuzzy
> > idea...
>
> You idea is good, but this would mean that you should pass
> *for each screenshot* its file type while calling jade. If
> your doc includes, say, 120 screenshots, you can imagine the
> number of parameters to Jade... Well, a shell script could
> do the job, yes, but would jade stand so much variables ?
I didn't meant it this way. The wrapping shell-backend knows the target
format and therefore it should know which file-type for images is the
best for this target format. So it could pass this format (as in "png",
"eps", "gif", ...) in a variable to jade and make it available in the
stylesheet.
The stylesheet has the blank filename (from the SGML source) and the
needed extension (from that variable) of the image-file then. This leads
me to the assumption that this should be enough to build the right
file-name (name + extension) in the stylesheet.
It wouldn't be enough to make sure that the file in the needed format
really exists, yes. But if it exists this could work. I haven't got the
time right now to dig through the stylesheets to see how this could be
done in a driver file and I may well have missed something important,
though.
Jochem
--
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!