Re: [docbook-apps] page numbers are not right aligned

Bernhard Kleine <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <[email protected]>
the .fo file for the respective part of the TOC is

<fo:block text-align-last="justify" end-indent="24pt"
last-line-end-indent="-24pt"><fo:inline
keep-with-next.within-line="always"><fo:basic-link
internal-destination="d0e13">Section Section Section Section Section
Section Section</fo:basic-link></fo:inline><fo:inline
keep-together.within-line="always"><fo:leader leader-pattern="space"
leader-pattern-width="5pt" leader-alignment="reference-area"
keep-with-next.within-line="always"/><fo:basic-link
internal-destination="d0e13">1–<fo:page-number-citation
ref-id="d0e13"/></fo:basic-link></fo:inline></fo:block><fo:block
text-align-last="justify" end-indent="24pt"
last-line-end-indent="-24pt"><fo:inline
keep-with-next.within-line="always"><fo:basic-link
internal-destination="d0e16">Section Section Section Section Section
Section Section </fo:basic-link></fo:inline><fo:inline
keep-together.within-line="always"><fo:leader leader-pattern="space"
leader-pattern-width="5pt" leader-alignment="reference-area"
keep-with-next.within-line="always"/><fo:basic-link
internal-destination="d0e16">1–<fo:page-number-citation
ref-id="d0e16"/></fo:basic-link></fo:inline></fo:block><fo:block
text-align-last="justify" end-indent="24pt"
last-line-end-indent="-24pt"><fo:inline
keep-with-next.within-line="always"><fo:basic-link
internal-destination="d0e19">Section Section Section Section Section
Section Section S</fo:basic-link></fo:inline><fo:inline
keep-together.within-line="always"><fo:leader leader-pattern="space"
leader-pattern-width="5pt" leader-alignment="reference-area"
keep-with-next.within-line="always"/><fo:basic-link
internal-destination="d0e19">1–<fo:page-number-citation
ref-id="d0e19"/></fo:basic-link></fo:inline></fo:block><fo:block
text-align-last="justify" end-indent="24pt"
last-line-end-indent="-24pt"><fo:inline
keep-with-next.within-line="always"><fo:basic-link
internal-destination="d0e22">Section Section Section Section Section
Section Section Se</fo:basic-link></fo:inline><fo:inline
keep-together.within-line="always"><fo:leader leader-pattern="space"
leader-pattern-width="5pt" leader-alignment="reference-area"
keep-with-next.within-line="always"/><fo:basic-link
internal-destination="d0e22">1–<fo:page-number-citation
ref-id="d0e22"/></fo:basic-link></fo:inline></fo:block><fo:block
text-align-last="justify" end-indent="24pt"
last-line-end-indent="-24pt"><fo:inline
keep-with-next.within-line="always"><fo:basic-link
internal-destination="d0e25">Section Section Section Section Section
Section Section Sec</fo:basic-link></fo:inline><fo:inline
keep-together.within-line="always"><fo:leader leader-pattern="space"
leader-pattern-width="5pt" leader-alignment="reference-area"
keep-with-next.within-line="always"/><fo:basic-link
internal-destination="d0e25">1–<fo:page-number-citation
ref-id="d0e25"/></fo:basic-link></fo:inline></fo:block><fo:block
text-align-last="justify" end-indent="24pt"
last-line-end-indent="-24pt"><fo:inline
keep-with-next.within-line="always"><fo:basic-link
internal-destination="d0e28">Section Section Section Section Section
Section Section Sect</fo:basic-link></fo:inline><fo:inline
keep-together.within-line="always"><fo:leader leader-pattern="space"
leader-pattern-width="5pt" leader-alignment="reference-area"
keep-with-next.within-line="always"/><fo:basic-link
internal-destination="d0e28">1–<fo:page-number-citation
ref-id="d0e28"/></fo:basic-link></fo:inline></fo:block>

Am 27.11.2018 um 08:59 schrieb Bernhard Kleine:
>
> I got interested and made a little working example:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-model href="http://docbook.org/xml/5.1/rng/docbookxi.rng"
>     schematypens="http://relaxng.org/ns/structure/1.0"?>
> <?xml-model href="http://docbook.org/xml/5.1/sch/docbook.sch"
>     type="application/xml"
>     schematypens="http://purl.oclc.org/dsdl/schematron"?>
> <book xmlns="http://docbook.org/ns/docbook" xml:lang="de"
> xmlns:xi="http://www.w3.org/2001/XInclude"
>     xmlns:ns5="http://www.w3.org/2000/svg"
> xmlns:ns="http://docbook.org/ns/docbook"
>     xmlns:xlink="http://www.w3.org/1999/xlink" version="5.1">
> <part>
>     <title>Part I</title>
>     <chapter><title>Chapter 1</title>
>         <sect1><title>Section Section Section Section Section
> Section</title></sect1>
>         <sect1><title>Section Section Section Section Section Section
> Section</title></sect1>
>         <sect1><title>Section Section Section Section Section Section
> Section </title></sect1>
>         <sect1><title>Section Section Section Section Section Section
> Section S</title></sect1>
>         <sect1><title>Section Section Section Section Section Section
> Section Se</title></sect1>
>         <sect1><title>Section Section Section Section Section Section
> Section Sec</title></sect1>
>         <sect1><title>Section Section Section Section Section Section
> Section Sect</title></sect1>
>     </chapter>
> </part>
> </book>
>
> This transforms to the following TOC:
>
>
> Maybe someone can explain why all numbers are not right aligned. IMHO
> the problem is not with dots, but how the remaining whitespace between
> title and number is calculated.
>
> Regards
>
> Bernhard
>
> Am 26.11.2018 um 22:42 schrieb Jan Tosovsky:
>> 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
>>>
>>>
> -- 
> spitzhalde9
> D-79853 lenzkirch
> [email protected]
> www.b-kleine.com, www.urseetal.net
> -
> thunderbird mit enigmail
> GPG schlüssel: D5257409
> fingerprint:
> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

-- 
spitzhalde9
D-79853 lenzkirch
[email protected]
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEI0BAafaAN33JqgXb0KhbIOwMGQ8FAlv8/5kACgkQ0KhbIOwM
GQ8UoQ/9HPgY1PBUZ5AT9XwBqzclt/q/N9pDiEpN3kmQPwb98ufE9C0alMLI9AVG
rlm3bljg0mywCkE9UtADYQFZbQeND8a0E9apLsiWK2yDNvdxf7fOed5gkn7xb4LM
PF1zWYMZZavLdQ6qAZC1X5pb1+WZtS5euWOv4P4yFdIYcN+bw0W6oPFRjghKkaOn
HBDeth7Lx+aLKFR/mPy3y5GMEpGVRKqeAPdLmYEgQh7QGLn1Zs7dCf/EgT9KGIt1
3DdM/X9LxceTmD1Q1V3IKqWCUQy5SvVajsK4z8y2aJAV2bvnI3QI+6o9fobezJ0M
mr9/Qt2hLOSu3q0xx5u5b/a/F4wBxDrmN2vPPhdKL1zCC04sRZutieQ3cl2NXCEk
TFPNv/fAqAlZQttgNqraZbfo/ieBOyHKFwmfIDYG8dsCht0ST5x6yCtxNJSN3bn/
f70AiuMpLH7kKWxwL+1plvFxOLfIxhUnDt/ugQQONAO4hfPqH3UP0LJS4BxWWsA/
GAnBDmlarTQHK2m1w0dpLgTb8i4oJSgxZBg+nT11vtMm2K6dFgr6JRI9tMI2wRO2
AeOuGgu6baU/b7Gg83ufFNeuWitu/wIxcSD4GnUIBRm3eQOq4irXam0QZvcuuEaJ
Tzyu95cO2vNPN7JBtfioP5+q3NeTCobQWTtvspTbtSSC4bsxG4w=
=rXvM
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.