Reference book page numbers missing in TOC and on song pages #25
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The songbook supports cross-references to other songbooks via
{ref: bookId pageNumber}directives in songs andreference_booksconfiguration insongbook.yaml. These should appear as:Both features have rendering code (
TocRendererfor TOC columns,PdfBookRendererfor song page footer), but the reference information is not appearing in the rendered output. This could be due to:referenceBooksconfig not being loaded properlyAcceptance Criteria
reference_booksis configured insongbook.yamland songs contain{ref: ...}directives, the TOC displays additional columns with reference book abbreviations as headers and page numbers in the data rowstoc.highlight_columnconfiguration correctly highlights the specified column in the TOCRelevant Code
parser/.../ChordProParser.kt— parsing of{ref: bookId pageNumber}directivesrenderer-pdf/.../TocRenderer.kt— TOC reference columnsrenderer-pdf/.../PdfBookRenderer.kt— song page reference footerlayout/.../MeasurementEngine.kt:94-99— space reservation for reference footermodel/.../Song.kt—references: Map<String, Int>model/.../BookConfig.kt—referenceBooks: List<ReferenceBook>