[xep-support] Spacing out graphics inside a block

Mark Cilia Vincenti mark at gfi.com
Wed Dec 21 02:05:52 PST 2005


They wrap this way, but then everything is left aligned and justification does not work any longer.

Best Regards,

Mark Cilia-Vincenti - GFI Software Ltd - www.gfi.com
Messaging, Content Security & Network Security Software
GFI: MailSecurity - FAXmaker - MailEssentials - LANguard - WebMonitor


-----Original Message-----
From: owner-xep-support at renderx.com [mailto:owner-xep-support at renderx.com] On Behalf Of Werner Donné
Sent: 21 December 2005 10:50 AM
To: xep-support at renderx.com
Subject: Re: [xep-support] Spacing out graphics inside a block

Mark,

You could try to insert the "zero width space" (​) between
the images. They shouldn't be visible and provide a breaking point.

Best regards,

Werner.

Mark Cilia Vincenti wrote:
> I've found the exact problem now. It's the solution which I don't know.
> The problem is that at the end of each line, there will be a  .
> This does not allow the rightmost image in each line to touch the
> rightmost part of the block.
> 
> And because I'm using justification, the width of   is dynamic.
> That's why they're not getting aligned.
> 
> Is there a way images can wrap without putting in characters between
> them?
> 
> I want to have:
> 
> <fo:block><fo:external-graphic .../><fo:external-graphic
> .../><fo:external-graphic .../><fo:external-graphic
> .../><fo:external-graphic .../><fo:external-graphic
> .../><fo:external-graphic .../><fo:external-graphic .../></fo:block>
> 
> wrapping and justified
> 
> 
> -----Original Message-----
> From: owner-xep-support at renderx.com
> [mailto:owner-xep-support at renderx.com] On Behalf Of Mark Cilia Vincenti
> Sent: 21 December 2005 9:08 AM
> To: xep-support at renderx.com
> Subject: RE: [xep-support] Spacing out graphics inside a block
> 
> I do have text-align-last="justify" in the code below. It does help but
> still it's not perfect.
> Probably because of the &#160; after the last image? But then
> white-space-treatment="ignore" should fix this no?
> 
> Best Regards,
> 
> Mark Cilia-Vincenti - GFI Software Ltd - www.gfi.com
> Messaging, Content Security & Network Security Software
> GFI: MailSecurity - FAXmaker - MailEssentials - LANguard - WebMonitor
> 
> -----Original Message-----
> From: owner-xep-support at renderx.com
> [mailto:owner-xep-support at renderx.com] On Behalf Of Bob Stayton
> Sent: 20 December 2005 6:23 PM
> To: xep-support at renderx.com
> Subject: Re: [xep-support] Spacing out graphics inside a block
> 
> Does setting text-align-last="justify" on the fo:block help?
> 
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs at sagehill.net
> 
> 
> ----- Original Message ----- 
> From: "Mark Cilia Vincenti" <mark at gfi.com>
> To: <xep-support at renderx.com>
> Sent: Tuesday, December 20, 2005 6:48 AM
> Subject: [xep-support] Spacing out graphics inside a block
> 
> 
>> Hi,
>>
>> I have to display some graphics in a block and I want them to wrap.
> The
>> graphics are different sizes but I've handled that by applying a
>> content-height and a scaling="uniform". However I can't seem to be
> able
>> to get them to look as ideally spaced out as possible. I want to fit
> as
>> many as can possibly fit on one line, and then justify them.
>>
>> The problem is that XEP does not wrap around external-graphic tags,
> and
>> you need to insert white-space (&#160;) for it to wrap. I'm not sure
> if
>> it's that white-space which is messing up but I'm not getting perfect
>> results.
>>
>> I have this code:
>>
>> <xsl:template match="test:awards">
>> <fo:block line-height="6mm" wrap-option="wrap"
>> text-align="justify" text-align-last="justify"
>> white-space-collapse="true" white-space-treatment="ignore">
>> <xsl:for-each select="test:award">
>> <xsl:if test="@highres_src">
>> <fo:external-graphic
>> content-height="15mm" scaling="uniform">
>> <xsl:attribute
>> name="src">url('<xsl:value-of select="@highres_src"
> />')</xsl:attribute>
>> </fo:external-graphic>&#160;
>> </xsl:if>
>> </xsl:for-each>
>> </fo:block>
>> </xsl:template>
>>
>>
>> >From my results and I have 3 images on one line and 3 others on the
> line
>> below it. But the rightmost one of the top line goes a bit further out
>> than the one in the line below it. It's a very tiny discrepancy but
> I'm
>> trying to get it as perfect as possible.
>>
>> Also, can maybe anyone think of another way I can solve this problem?
>>
>>
>> This mail was checked for viruses by GFI MailSecurity.
>> GFI also develops anti-spam software (GFI MailEssentials), a fax
> server
> (GFI FAXmaker), and network security and management software (GFI
> LANguard) - www.gfi.com
>>
>> -------------------
>> (*) To unsubscribe, send a message with words 'unsubscribe
> xep-support'
>> in the body of the message to majordomo at renderx.com from the address
>> you are subscribed from.
>> (*) By using the Service, you expressly agree to these Terms of
> Service
> http://www.renderx.com/terms-of-service.html
>>
> 
> 
> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
> in the body of the message to majordomo at renderx.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of Service
> http://www.renderx.com/terms-of-service.html
> 
> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
> in the body of the message to majordomo at renderx.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of Service
> http://www.renderx.com/terms-of-service.html
> 
> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
> in the body of the message to majordomo at renderx.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
> 
> 

-- 
Werner Donné  --  Re BVBA
Engelbeekstraat 8
B-3300 Tienen
tel: (+32) 486 425803	e-mail: werner.donne at re.be
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list