Add capability to generate an album index#237
Merged
AnEnglishmanInNorway merged 12 commits intobash0:masterfrom Jun 9, 2025
Merged
Add capability to generate an album index#237AnEnglishmanInNorway merged 12 commits intobash0:masterfrom
AnEnglishmanInNorway merged 12 commits intobash0:masterfrom
Conversation
…ased on recognising "indexable texts" from their font and size.
…hat png onto the first page of the album All a bit hard coded, but let's save the work before moving on
… this page!" That lets the cewe editor user decide which page to use, rather than having to configure it. But the index layout and placement is not yet in the hands of the album creator.
…dex page Add configuration of the margins and the index page marker Verify that normal jpg files remain untouched on the index page Ensure that everything works as before when indexing is not configured in
…x page Create test for index over one page long
No longer crops the index image, so scaling is consistent Adjacent texts being returned are split to lines before the regex index marker test is applied The index marker can be "no colour" and therefore invisible The large index test "works" in the sense that you can scale a large index to one page. But an index which needs 2 pdf pages is still truncated to the first
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When configured in, the index capability looks for textareas containing text in any of a list of specified font / font size combinations, regarding these texts as index terms. The index terms are then used to create extra index pages after the back cover in the pdf. This allows you to create album summaries.

An example from a travel diary album might look like this:
I don't know if anybody is actually looking at my pull requests ... in fact the lack of response here suggests not. I've reached the point where I'll just publish this to the base version - there's no change to existing album generation unless indexing is configured on, as described in the readme.