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

Bernhard Kleine <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEI0BAafaAN33JqgXb0KhbIOwMGQ8FAlv8+YkACgkQ0KhbIOwM
GQ92Yw//cS1XepXDhwAfGlRb5n3MWPOv0e0rRb4CBbTanFdP0T1rZNv1s4BP0iT0
Us/o98YE88d/S5beat82VxBlob58qVHRcv+scWaBXJt7TcI6SvvfvriHxmqKKlQ+
IVZ05P3kAqtUU0zKh1sgt1rkSFguFZcbYU7Qxkw+exuArIxKG/K/P1jGec1S68io
itjC8lMeomIo2XmSqGRKCF8uGnNveAImhzQhn6OjkSMMovehJkbIY6ZXtTgWjTdq
qhsPJi8m10thP3ShBnK8Pjp5jWvO29wgMfsr2eArZt0hWpEXKgIV1xw+PEecTXqy
jZDQ8O3uhWeB36mU7Ktzu1rJYXi1Z/QurYqxoq2vCO1BJxlIj1gmowza+N87WytW
C1JvSxkbzEO2v+fyeT1aDQnDOCv8Ui1Ji5eUzAoDVeGyCIvS7CtAnvyS72InQLO/
fyuCieVQ+ISAKMlZUqOaoTLC0g177xRaL1GDdbxEbAE23BBRfWrcOzNJju62lWPK
3B1pUineuNSzEdbuUCj2wl0nlTEqtzVqyAjLGDN9FdELEWOC2Qz+M6ULtnFxYoQV
JTFpn6L/icx7D7PPVZD+0QNoNtNhXVW+GcuMClSPdEwHk2JNM0PHNo7AVvt7bFg7
pUCHUkuCCy6MQQzGnymP+Tzih6MchAqAAzRdeomLJo3EPr3YTMw=
=sp5b
-----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.