Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve detection of mid-para illos/SNs #644

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

windymilla
Copy link
Collaborator

It now looks forward to find the first "normal" line, i.e. not an empty line, a [Blank Page], another illo/SN, nor a page separator line. Then it finds a normal line, it checks if the line above it is blank, meaning it's the start of a paragraph. If not, then the illo/SN is mid-paragraph.

Fixes #595

It now looks forward to find the first "normal" line, i.e.
not an empty line, a `[Blank Page]`, another illo/SN, nor
a page separator line. Then it finds a normal line, it checks
if the line above it is blank, meaning it's the start of a
paragraph. If not, then the illo/SN is mid-paragraph.

Fixes DistributedProofreaders#595
@windymilla windymilla requested a review from srjfoo January 5, 2025 16:33
@windymilla
Copy link
Collaborator Author

Testing notes - run Illo fixup on these files, for example:
henry.txt
belgian.txt

@windymilla windymilla merged commit a78562f into DistributedProofreaders:master Jan 5, 2025
1 check passed
@windymilla windymilla deleted the illo-fixup branch January 5, 2025 19:16
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.

Tools=>Illustration Fixup
2 participants