xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: leader with roman numerals over-runs area
Date Sat, 06 May 2006 07:44:58 GMT
I've recently done some experiments with rendering book-style documents
and I saw that there are still problems with the width of
page-number-citation elements. There is some room for improvement with
the current code, I guess, but the current approach will probably never
solve every problem. My take on this is that the handling for
page-number-citation will need some more attention, possibly even in the
direction of supporting a two/multi-pass approach.

If you want to take a look at the code, see
org.apache.fop.area.inline.AbstractTextArea.applyVariationFactory() and
org.apache.fop.area.UnresolvedPageNumber.resolveIDRef(). Instead of only
adjusting letter and word space, the width of stretchable leader could
also be adjusted. Patches are welcome.

On 06.05.2006 01:16:19 Paul Tremblay wrote:
> My table of contents uses leaders  in the following manner:
> 
> 
>  <fo:block text-indent="-25pt" start-indent="25pt" text-align-last="justify" id="id2248526">
>  
>  Acknowledgements<fo:leader leader-pattern="dots"/><fo:page-number-citation
ref-id="id2248469id"/>
> 
>  </fo:block>
> 
> <fo:block text-indent="-25pt" start-indent="25pt" text-align-last="justify" id="id2248546">
> 
> 1. Introduction <fo:leader leader-pattern="dots"/><fo:page-number-citation ref-id="id2248524id"/>
> 
> </fo:block>
> 
> As long as the page reference is an Arabic number, then the allignment
> works fine. However, if the page reference is a Roman number, the
> leader becomes too long:
> 
> Acknowledgements.....................................................iii
> 
> 1. Introduction................................................. 1
> 
> 2. Woolworth, Main Street and Modernization......................3 


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message