On Mon, Oct 04, 2004 at 12:19:35AM +0200, Andreas Vox wrote:
> Hi XMLers!
> 
> This patch should use 'scale', 'width', 'height' and 'keepaspectratio' 
> in Docbook export
> and convert it to' scale', 'width', 'depth' and 'scalefit' resp.
> 
> The code now always exports the 'scale' param as integer.
> 
> 'Width' and 'height' units are translated, mainly:
> -  sp, pt, bp -> "pt" ;  (using hopefully correct factors)
> -  cc, dd -> "mm"; (using hopefully correct factors)
> -  ex,mu -> "em"; (using hopefully correct factors)
> -  \linewidth ... \pageheight -> "%"   (ignoring all subtleties of TeX 
> commands)

  Good. :-)
  I do have most of structure there, so it was a shame no to use it.

> What the Docbook SGML/XSL stylesheets make of that is another question, 
> though ...
> OpenJade complains about the "%" in attributes, ignores 'scalefit="1" ' 
> and outputs additional '>' characters after each image (sgmltools lite 
> 3.0.3)

  :-(

> SAXON with docbook-xsl-1.66.1 on the other hand _always_ keeps the 
> aspect ratio and messes up the 'scale'.

  This is one problem of the transformation tools, they always succeed in
being complementary relative to the errors. ;-)

> DB2LaTeX ignores all parameters unless I submit my patches and they get 
> included.

  OK, then do it. :-)

> Anyone wants to try FOP ?

  I don't have available time now. :-)

> Ideas for more support:
> *     Wrap graphics which use relative measures in paragraphs of correct 
> size, such that the "%"-param  uses the correct base.

  How?
  I am not sure I like it. :-)
  
> *     BoundingBox and rotate: Create a transformed graphic file while 
> exporting to Docbook

  Yes, I agree.

> No idea if this is feasable ... I'm probably content with the current 
> state.

  I can understand that. :-)

> Cheers
> /Andreas

  Patch applied.

-- 
José Abílio Matos
LyX and docbook a perfect match. :-)

Reply via email to