Re: [docbook-apps] page numbers are not right aligned
the .fo file for the respective part of the TOC is Section Section Section Section Section Section Section1–Section Section Section Section Section Section Section 1–Section Section Section Section Section Section Section S1–Section Section Section Section Section Section Section Se1–Section Section Section Section Section Section Section Sec1–Section Section Section Section Section Section Section Sect1– Am 27.11.2018 um 08:59 schrieb Bernhard Kleine: > > I got interested and made a little working example: > > > http://docbook.org/xml/5.1/rng/docbookxi.rng; > schematypens="http://relaxng.org/ns/structure/1.0;?> > http://docbook.org/xml/5.1/sch/docbook.sch; > type="application/xml" > schematypens="http://purl.oclc.org/dsdl/schematron;?> > 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 I > Chapter 1 > Section Section Section Section Section > Section > Section Section Section Section Section Section > Section > Section Section Section Section Section Section > Section > Section Section Section Section Section Section > Section S > Section Section Section Section Section Section > Section Se > Section Section Section Section Section Section > Section Sec > Section Section Section Section Section Section > Section Sect > > > > > 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 > bernhard.kle...@gmx.net > 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 bernhard.kle...@gmx.net 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 Description: OpenPGP digital signature
Re: [docbook-apps] page numbers are not right aligned
I got interested and made a little working example: http://docbook.org/xml/5.1/rng/docbookxi.rng; schematypens="http://relaxng.org/ns/structure/1.0;?> http://docbook.org/xml/5.1/sch/docbook.sch; type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron;?> 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 I Chapter 1 Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section Section S Section Section Section Section Section Section Section Se Section Section Section Section Section Section Section Sec Section Section Section Section Section Section Section Sect 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 bernhard.kle...@gmx.net 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 Description: OpenPGP digital signature
RE: [docbook-apps] page numbers are not right aligned
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 it could be modified like this: dots 3pt 0.5pt 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
Re: [docbook-apps] page numbers are not right aligned
I was too fast: The misalignment is only then when the space between the title and the number is too small. Once it it distributed over two lines, there is no longer a misalignment: Compare this from the general TOC to the one below from a chapter TOC: Am 26.11.2018 um 22:21 schrieb Bernhard Kleine: > > I have changed the "dots" to space. this aligned everything but this > line in the TOC: > > > Bilder der bisher in Lenzkirch fotografierten > Ennominae > > > Obviously no whitespace involved. Maybe you have an idea. > > Regards > > Bernhard > > > -- > spitzhalde9 > D-79853 lenzkirch > bernhard.kle...@gmx.net > 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 bernhard.kle...@gmx.net 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 Description: OpenPGP digital signature
Re: [docbook-apps] page numbers are not right aligned
I have changed the "dots" to space. this aligned everything but this line in the TOC: Bilder der bisher in Lenzkirch fotografierten Ennominae Obviously no whitespace involved. Maybe you have an idea. Regards Bernhard -- spitzhalde9 D-79853 lenzkirch bernhard.kle...@gmx.net 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 Description: OpenPGP digital signature
Re: [docbook-apps] page numbers are not right aligned
The more general case with dot leaders and right alignment is an inresolved FOP bug: https://issues.apache.org/jira/browse/FOP-1839 The section on customizing table of contents entries is here: http://www.sagehill.net/docbookxsl/PrintToc.html#PrintTocEntries The template named 'toc.line' generates an element that produces the dot leaders. Bob Stayton Sagehill Enterprises b...@sagehill.net On 11/26/2018 12:19 AM, Bernhard Kleine wrote: Hi Bob, Unfortunately the case you cite is not applicable in my example. I looked for the spacing e.g. for this line: Häufige und weniger häufige Dickkopffalter in Lenzkirch There is not any extra space in the coding nor is there an unusual whitespace. IMHO I see these irregularities only when the leader is very short. Maybe one get rid of the leader dots. But I have not found it in your book. Regards Bernhard Am 26.11.2018 um 05:35 schrieb Bob Stayton: I don't think there is anything wrong the the fo coding by the stylesheet. Here is a similar report for the DITA Open Toolkit on the fop-users mailing list: http://apache-fop.1065347.n5.nabble.com/White-space-in-FO-causes-PDF-TOC-problem-td46410.html It isn't clear that your problem is caused by whitespace around the title. Your misaligned entries all seem to have short dot leaders. But it seems the fop algorithm has a problem with right alignments with dot leaders. Bob Stayton Sagehill Enterprises b...@sagehill.net On 11/25/2018 10:03 AM, Bernhard Kleine wrote: As can be seen from the screenshot, the composed page-numbers are not right aligned. Where do I have to look (adjust) that this will take place? Regards Bernhard -- spitzhalde9 D-79853 lenzkirch bernhard.kle...@gmx.net 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 bernhard.kle...@gmx.net 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
Re: [docbook-apps] page numbers are not right aligned
Hi Bob, Unfortunately the case you cite is not applicable in my example. I looked for the spacing e.g. for this line: Häufige und weniger häufige Dickkopffalter in Lenzkirch There is not any extra space in the coding nor is there an unusual whitespace. IMHO I see these irregularities only when the leader is very short. Maybe one get rid of the leader dots. But I have not found it in your book. Regards Bernhard Am 26.11.2018 um 05:35 schrieb Bob Stayton: > > I don't think there is anything wrong the the fo coding by the > stylesheet. Here is a similar report for the DITA Open Toolkit on the > fop-users mailing list: > > http://apache-fop.1065347.n5.nabble.com/White-space-in-FO-causes-PDF-TOC-problem-td46410.html > > It isn't clear that your problem is caused by whitespace around the > title. Your misaligned entries all seem to have short dot leaders. > But it seems the fop algorithm has a problem with right alignments > with dot leaders. > > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > On 11/25/2018 10:03 AM, Bernhard Kleine wrote: >> >> As can be seen from the screenshot, the composed page-numbers are not >> right aligned. Where do I have to look (adjust) that this will take >> place? >> >> Regards >> >> Bernhard >> >> -- >> spitzhalde9 >> D-79853 lenzkirch >> bernhard.kle...@gmx.net >> 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 bernhard.kle...@gmx.net 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 Description: OpenPGP digital signature
Re: [docbook-apps] page numbers are not right aligned
I don't think there is anything wrong the the fo coding by the stylesheet. Here is a similar report for the DITA Open Toolkit on the fop-users mailing list: http://apache-fop.1065347.n5.nabble.com/White-space-in-FO-causes-PDF-TOC-problem-td46410.html It isn't clear that your problem is caused by whitespace around the title. Your misaligned entries all seem to have short dot leaders. But it seems the fop algorithm has a problem with right alignments with dot leaders. Bob Stayton Sagehill Enterprises b...@sagehill.net On 11/25/2018 10:03 AM, Bernhard Kleine wrote: As can be seen from the screenshot, the composed page-numbers are not right aligned. Where do I have to look (adjust) that this will take place? Regards Bernhard -- spitzhalde9 D-79853 lenzkirch bernhard.kle...@gmx.net 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