You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Maxime Bégnis <ma...@neodoc.biz> on 2010/07/22 12:35:29 UTC
lists label shifting
Hi all,
Considering this code excerpt :
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>2.</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Inline graphic
<fo:external-graphic src="url(black_square.svg)"
width="5mm" height="auto"
content-width="scale-to-fit"
content-height="scale-to-fit" />
some text.
</fo:block>
</fo:list-item-body>
</fo:list-item>
In the resulting PDF, the baselines of the fo:list-item-label and the
fo:list-item-body are not aligned vertically. I get something like this :
2. /--\
Inline graphic \__/ some text.
While I would like to get :
/--\
2. Inline graphic \__/ some text.
I understood from the XSL-1.1 specification that I should use the
relative-align="baseline" property on the fo:list-block. But, according
to http://xmlgraphics.apache.org/fop/compliance.html, this property is
not supported by any version of FOP.
I tried the attached test file with FOP 1.0 and 0.95 with the same result.
Does anyone knows a trick to get these baselines aligned vertically?
Thanks a lot.
Maxime B�gnis
Re: Greek glyphs ok with manual-fop095 processing, but some warning
errors remain....
Posted by Pascal Sancho <pa...@takoma.fr>.
Hi Spyros,
"auto" is the initial value for the table-layout property.
While it is not supported by FOP, you'll get this warning if you don't
explicitly set the property table-layout to "fixed"
--
Pascal
Le 02/08/2010 17:13, Spyros Papantoniou a écrit :
> Any ideas why table-layout="auto" [that is absent in my xsl] yields a warning?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Greek glyphs ok with manual-fop095 processing, but some warning errors remain....
Posted by Spyros Papantoniou <sp...@gmail.com>.
Hello,
I want to report an almost complete success in using fop 0.95 and printing Greek characters with the OS font Arial.
In the pdf below latin and Greek characters appear in the same fo:block.
Accented Greek characters are displayed correctly.
.
Re: lists label shifting
Posted by Maxime Bégnis <ma...@neodoc.biz>.
Hello,
Sorry for this very late reply. Thanks your answer, I didn't think about
this. The line-stacking-strategy="font-height" property with adapted
padding on blocks works fine if the inline graphic is on the first line
of the content generated by the block inside the fo:list-block, but if
it is on the second line, the graphic overflows the above line(as
expected). I didn't have time to search any further, I'll post something
if I find a way.
Thanks.
Maxime B�gnis.
Le 26/07/2010 11:17, Jeremias Maerki a �crit :
> Not really. The only thing I can come up is
> line-stacking-strategy="font-height" on both blocks but then you may
> have to scale down the graphic a bit. "relative-align" is indeed the
> property that would need to be implemented for this.
>
> On 22.07.2010 12:35:29 Maxime B�gnis wrote:
>
>> Hi all,
>>
>> Considering this code excerpt :
>>
>> <fo:list-item>
>> <fo:list-item-label end-indent="label-end()">
>> <fo:block>2.</fo:block>
>> </fo:list-item-label>
>> <fo:list-item-body start-indent="body-start()">
>> <fo:block>Inline graphic
>> <fo:external-graphic src="url(black_square.svg)"
>> width="5mm" height="auto"
>> content-width="scale-to-fit"
>> content-height="scale-to-fit" />
>> some text.
>> </fo:block>
>> </fo:list-item-body>
>> </fo:list-item>
>>
>> In the resulting PDF, the baselines of the fo:list-item-label and the
>> fo:list-item-body are not aligned vertically. I get something like this :
>>
>> 2. /--\
>> Inline graphic \__/ some text.
>>
>> While I would like to get :
>>
>> /--\
>> 2. Inline graphic \__/ some text.
>>
>> I understood from the XSL-1.1 specification that I should use the
>> relative-align="baseline" property on the fo:list-block. But, according
>> to http://xmlgraphics.apache.org/fop/compliance.html, this property is
>> not supported by any version of FOP.
>>
>> I tried the attached test file with FOP 1.0 and 0.95 with the same result.
>>
>> Does anyone knows a trick to get these baselines aligned vertically?
>>
>> Thanks a lot.
>>
>> Maxime B�gnis
>>
>
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
Re: lists label shifting
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Not really. The only thing I can come up is
line-stacking-strategy="font-height" on both blocks but then you may
have to scale down the graphic a bit. "relative-align" is indeed the
property that would need to be implemented for this.
On 22.07.2010 12:35:29 Maxime Bégnis wrote:
> Hi all,
>
> Considering this code excerpt :
>
> <fo:list-item>
> <fo:list-item-label end-indent="label-end()">
> <fo:block>2.</fo:block>
> </fo:list-item-label>
> <fo:list-item-body start-indent="body-start()">
> <fo:block>Inline graphic
> <fo:external-graphic src="url(black_square.svg)"
> width="5mm" height="auto"
> content-width="scale-to-fit"
> content-height="scale-to-fit" />
> some text.
> </fo:block>
> </fo:list-item-body>
> </fo:list-item>
>
> In the resulting PDF, the baselines of the fo:list-item-label and the
> fo:list-item-body are not aligned vertically. I get something like this :
>
> 2. /--\
> Inline graphic \__/ some text.
>
> While I would like to get :
>
> /--\
> 2. Inline graphic \__/ some text.
>
> I understood from the XSL-1.1 specification that I should use the
> relative-align="baseline" property on the fo:list-block. But, according
> to http://xmlgraphics.apache.org/fop/compliance.html, this property is
> not supported by any version of FOP.
>
> I tried the attached test file with FOP 1.0 and 0.95 with the same result.
>
> Does anyone knows a trick to get these baselines aligned vertically?
>
> Thanks a lot.
>
> Maxime Bégnis
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org