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

Re: [XSL-FO] right alignment after leader dots (multip

Subject: Re: [XSL-FO] right alignment after leader dots (multiple lines)
From: "kevin.brown@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 16 Aug 2021 22:19:52 -0000
Re:  [XSL-FO] right alignment after leader dots (multip
Not clear without screenshot at least.

This is what you get from FOP:









From: Geert Bormans geert@xxxxxxxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, August 16, 2021 2:55 PM
To: xsl-list <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  [XSL-FO] right alignment after leader dots (multiple lines)



All,



In a table cell, I have (potentially) multiple lines of text, left aligned

For the last line, I want to align a single word ( maximum 4 digits actually)
to the right of the cell and fill the space between this word and the rest of
the text with leader dots

I also want this last line to expand outside the box given to the other lines



The visual effect is that of a second table cell containing the digits (pushed
to the bottom)

and the first cell having leader dots on the last line, reaching out to the
right border of the table cell

(but I figured out that I can not make that happen in FO)



The following works perfectly using Antenna House



                        <fo:table-cell padding-bottom="5mm"
keep-together.within-page="always"

                            column-number="2">

                            <fo:block keep-together.within-page="always"

                                text-align="left"

                                end-indent="9mm"

                                last-line-end-indent="-9mm"

                                text-align-last="justify">

                                <fo:inline>Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Suspendisse sodales tincidunt sapien. Orci varius
natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Phasellus quis auctor diam.</fo:inline><fo:inline

                                    keep-together.within-line="always"><fo:le
ader

                                        leader-length.maximum="1mm"/><fo:lead
er

                                        leader-pattern="dots"
leader-length.optimum="100%"

                                    /></fo:inline><fo:inline
keep-together.within-line="always"

                                    font-weight="bold">
2006</fo:inline></fo:block>

                        </fo:table-cell>



The 2006 is nicely right aligned to the cell boundary



In FOP however the digits are not right aligned

The  text-align-last="justify" is not using the full width of the cell



Is Antenna House doing a much better job than it should, or is FOP having a
bug?

And are there suggestions or workarounds to make this work in FOP?





If the question is not clear enough, I can attach screenshots and a full
working FO (at least in AH formatter) ... but wanted to start without
attachments to begin with





Thanks for any help anyone can offer



Met vriendelijke groeten,
Best regards,

Geert Bormans

XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>

EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/3183067>  (by
email <> )

[demime 1.01d removed an attachment of type image/png which had a name of image001.png]

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-2013 All Rights Reserved.