[xep-support] How to control line wrappings while using <fo:leader>?

From: Fritz Kirch <Friedrich.Kirch@it2media.de>
Date: Fri Nov 30 2007 - 06:28:18 PST

Dear XEP-support,

 

While I am creating phonebook advertisements with XSLFO I have the following situation:

I have lines with left aligned text (i.e. the NAME), then leading dots and then right align text (i.e. PHONENUMBER).

Everything is ok, as long as everything fits into one line.

But: With very long left aligned text (NAME), the line is wrapped and the right aligned text (PHONENUMBER) is the one and only text at the second line.

 

My expectation is that the left aligned text (NAME) would break between words earlier in the line to put the last word with the right aligned text (PHONENUMBER) on the next line.

 

But it doesn't seem to work.

 

Can anybody help me?

 

Fritz Kirch

IT2media GmbH & Co. KG

Nürnberg, Germany

 

Here is my FO-File:

 

<?xml version='1.0' ?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:def="http://www.adsml.org/adsmlstructureddescriptions/1.0">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="first-page" page-width="44mm" page-height="10mm">
      <fo:region-body region-name="Advertisement" margin-left="0.3mm" margin-right="0mm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="first-page">
    <fo:flow flow-name="Advertisement">
      <fo:block>
        <fo:block font="7pt Helvetica">
          <fo:inline font-weight="bold">4762</fo:inline>
            (Abu Dhabi Main GPO)
        </fo:block>
        <fo:block text-align-last="justify" font="7pt Helvetica bold" font-weight="bold" margin-left="4pt">INANI MARBLES &amp; GRANITE TR
          <fo:leader leader-pattern="dots" keep-with-next.within-line="always" keep-with-previous.within-line="always"/>04-2694773
        </fo:block>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

 

**********************************************************************
Diese E-Mail wurde auf Viren ueberprueft.
mailsweeper@it2media.de
**********************************************************************

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@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
Received on Fri Nov 30 07:17:22 2007

This archive was generated by hypermail 2.1.8 : Fri Nov 30 2007 - 07:17:28 PST