Skip to content

Add capability to generate an album index#237

Merged
AnEnglishmanInNorway merged 12 commits intobash0:masterfrom
AnEnglishmanInNorway:index
Jun 9, 2025
Merged

Add capability to generate an album index#237
AnEnglishmanInNorway merged 12 commits intobash0:masterfrom
AnEnglishmanInNorway:index

Conversation

@AnEnglishmanInNorway
Copy link
Copy Markdown
Collaborator

@AnEnglishmanInNorway AnEnglishmanInNorway commented Jun 3, 2025

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:
junk30
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.

@AnEnglishmanInNorway AnEnglishmanInNorway self-assigned this Jun 3, 2025
…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
@AnEnglishmanInNorway AnEnglishmanInNorway merged commit a94579f into bash0:master Jun 9, 2025
@AnEnglishmanInNorway AnEnglishmanInNorway deleted the index branch June 10, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant