You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Chris Bowditch <bo...@hotmail.com> on 2023/12/01 12:09:53 UTC

Re: FW: Adding support for back-of-the-book index

Hi Jan,

Thanks for the update. I'm glad to see progress on this.

Sorry I don't know the answer to your question on the Layout Managers. I 
hope you will find the answer you seek though

Thanks,

Chris

On 24/11/2023 14:24, Jan Tosovsky wrote:
> On 17/03/2019 19:23, Jan Tosovsky wrote:
>> I plan to dedicate part of my spare time to implementing the index
> support.
>> https://issues.apache.org/jira/browse/FOP-2851
>> I suppose in later stages I'll appreciate some help.
> Recently I've made some progress. I am able to collect page references,
> deduplicate them and create ranges per rules defined in the XSL-FO spec.
> https://www.w3.org/TR/xsl/#d0e13293
>
> It is available in a dedicated branch in my fork here
> https://github.com/jan-tosovsky-cz/xmlgraphics-fop/tree/FOP-2851_index
>
> However, I struggle with the LayoutManager part.
>
> At the moment I convert the collected data into a simple string laid out
> using the LeafNodeLayoutManager-based class:
> https://github.com/jan-tosovsky-cz/xmlgraphics-fop/blob/FOP-2851_index/fop-c
> ore/src/main/java/org/apache/fop/layoutmgr/inline/IndexPageCitationListLayou
> tManager.java
>
> I expect I should rather create some inline parent and put the child content
> there. I wasn't able to find some example in the current code for this.
>
> By the child content I mean page references, which can have different
> styles, optionally treated as internal links, decorated by the
> prefix/suffix, separated by the specified page and range separators (joined
> using proper keep-with values).
>
> Thanks,
> Jan
>