On 2018-11-26 Bob Stayton wrote:
> The more general case with dot leaders and right alignment is an
> inresolved FOP bug:
> 
> https://issues.apache.org/jira/browse/FOP-1839
> 

IIRC this problem can be eliminated if outer spaces around the dots are 
replaced with leaders of fixed width. The standard space is stretching element 
thus hard to calculate properly if there are too many variables to handle.


So in <xsl:template name="toc.line"> it could be modified like this:

<fo:basic-link internal-destination="{$id}">
  <xsl:apply-templates select="." mode="titleabbrev.markup"/>
</fo:basic-link>
<fo:leader leader-length="3pt"/>
<fo:leader leader-alignment="reference-area">
  <xsl:attribute name="leader-pattern">dots</xsl:attribute>
  <xsl:attribute name="leader-pattern-width">3pt</xsl:attribute>
  <xsl:attribute name="rule-thickness">0.5pt</xsl:attribute>
</fo:leader>
<fo:leader leader-length="3pt"/>
<fo:basic-link internal-destination="{$id}">
  <fo:page-number-citation ref-id="{$id}"/>
</fo:basic-link>


Regards,

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

Reply via email to