[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] FO: Alphabetical index layout problem with justified last line


Subject: Re: [xsl] FO: Alphabetical index layout problem with justified last line
From: "Tony Graham tgraham@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 3 Jun 2015 15:19:37 -0000

On 03/06/2015 15:32, Michael MC<ller-Hillebrand mmh@xxxxxxxxx wrote:
We are challenged with a layout for an alphabetical index that uses
leader dots and forces page numbers to the right border of the
current column, like this:

| keyword .......... 23 |

If the keyword gets longer and suffers a line break, everything is
fine:

| a special, longer |
> | keyword .......... 23 |

But, if we have many page references, so that both keyword and all page numbers do not fit a single line, it gets ugly, e.g. like this:

| other keyword .... 5, |
> | 11,      25,       42 |
...
As always, I am grateful for any suggestions or pointers. Like,
should we work with <fo:index-page-citation-list> instead, to solve
this problem?

Since you're using AH Formatter, look at axf:leader-expansion [1].


From the documentation, the examples of what can be achieved are:

Short Label ................................. 10, 20, 30

    Short Label ... 10, 20, 30, 40, 50, 60, 70, 80, 90, 100,
                                     110, 120, 130, 140, 150

    Very Loooooooooooooooooooooooooooooooooooooong Label ...
    ............................................. 10, 20, 30

    Very Loooooooooooooooooooooooooooooooooooooong Label ...
    ..... 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120,
                                               130, 140, 150

    Very Very Very Loooooooooooooooooooooooooooooooooooooong
    Long Long Label ............................. 10, 20, 30

    Very Very Very Loooooooooooooooooooooooooooooooooooooong
    Long Long Label .... 10, 20, 30, 40, 50, 60, 70, 80, 90,
                                100, 110, 120, 130, 140, 150

(I sure hope the examples survived being copied into an email.)

Regards,


Tony Graham. -- Senior Architect XML Division Antenna House, Inc. ---- Skerries, Ireland tgraham@xxxxxxxxxxxxx

[1] http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.leader-expansion


Current Thread
Keywords
xml