[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Fill line ends with dots

Subject: Re: Fill line ends with dots
From: "Linda van den Brink" <linda@xxxxxxxxxx>
Date: Fri, 29 Aug 2008 10:23:55 +0200
Re:  Fill line ends with dots
Thanks for the pointers. I've been playing around with this and got it
working with a background image with dots on a block, and the text
inside that in an inline area with a white background color.

I'm working with XSL-FO in FOP 0.94.

<fo:block font-size="12pt" background-image="{$aflijn-img}" >
     <fo:inline background-color="white">Vandaag, vier mei
tweeduizendzes, heb ik, Baron Hendrik Jan van den Bogaart, hierna te
noemen
     </fo:inline>
</fo:block>

Which results in something like:
Vandaag, vier mei-------
tweeduizendzes, heb-----
ik, Baron Hendrik Jan---
van den Bogaart, hierna-
te noemen---------------

This is what I want, except that I would like to have a bit of white
space between the character at the end of a line and the start of the
dash image. I'm not sure it's possible, because the end of the inline
area is of course at the last word, 'noemen', so anything like
padding-end or border-end (I was thinking of using a white border....)
only has effect on the end of the inline area and not on the line end
of each wrapped line.

Any ideas?

Thanks, Linda


On Fri, Aug 15, 2008 at 5:09 PM, Liam Quin <liam@xxxxxx> wrote:
> On Fri, Aug 15, 2008 at 12:23:05PM +0200, Linda van den Brink wrote:
>> I'm back here after many years with a question.
> Welcome back :-)
>>
>> I'm looking for a way to fill the end of all lines in a (left-aligned)
>> block not with spaces, but with a character like a dot or a dash.
>
> I'm gessing that this is with XSL-FO and variable-width fonts...
>
> My first thought here is to have a background image with all dots,
> but I'm not sure that will work.  And you've already thought of it.
>
> Perhaps you could expand in more detail on the requiirements, in
> case there's some other approach that will work?
>
> You could also try asking on the xsl-fo
>
> Liam
>
> --
> Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
> http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.