Hi Chris.
We will have also to print the results, thus need some pretty output :) (namely 
in PDF)
I am afraid this won't help us.

Thank you anyway.
Best regards,
Fabien



-----Message d'origine-----
De : Křištof Želechovski [mailto:[email protected]] 
Envoyé : jeudi 4 août 2011 12:44
À : [email protected]
Cc : Fabien Tillier
Objet : Re: [docbook-apps] imagedata scale problem

Dnia czwartek, 4 sierpnia 2011 o 09:51:10 Fabien Tillier napisał(a):
> Hi List.
> I have some troubles when rendering images specified as
> 
> <equation>
>       <title>Mitochondrial Membrane Potential</title>
>       <alt/>
>       <mediaobject>
>               <imageobject>
>               <imagedata role="analysis" fileref="/images/xml/53_2.png" 
> scale="80" format="PNG"/>
>               </imageobject>
>       </mediaobject>
> </equation>
> 
> When using the HTML DB5 stylesheet, the result for the image is
> 
> <div class="equation-contents">
>       <div class="mediaobject">
>               <img width="432" src="/images/xml/53_2.png">
>       </div>
> </div>
> 
> 
> My images all have the same resolution, thus different size but uniform 
> display appearance of the equation they contains. As they are a bit too big, 
> I use scale=80" to reduce their size by 20%. My problem is that the result 
> gives for all images an <img width="432"...>  whatever the intrinsic image 
> size is. Thus my equations appears now all with different display sizes on 
> the HTML page, which is not the expected output.
> As a hint, when using xsl-fo output, I get
> <fo:block id="d68e38942">
> <fo:external-graphic src="url(/images/xml/53_2.png)" width="auto" 
> height="auto" content-width="80%" content-height="80%" 
> content-type="content-type:image/png"/>
> </fo:block>
> Which is correct.
> 
> Any ideas ?

Just two, with your permission.

  1. Even if a MathML renderer is unavailable, it is technically possible to 
render equations in pure HTML without resorting to images.  The result is not 
of print quality but it is acceptable as a Web resource.
  2. An IMG element wants a TITLE attribute to provide a text equivalent to 
text-based HTML renderers.

Hope it does not harm,
Chris

Reply via email to