feat: enhance header/footer stripping with Y-band coalescing and page number normalization

Strip leading/trailing digit sequences (page numbers) before frequency
comparison so headers like "Page 5" and "Page 6" are treated as identical.
Group TextLines at the same Y position into Y-bands and propagate removal
to all siblings when any member is stripped. Increase EDGE_LINE_COUNT from
4 to 5 to cover 5-row form column headers (e.g., IRS p1244).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Abimael Martell
2026-03-03 09:46:51 -08:00
co-authored by Claude Opus 4.6
parent eca2db119c
commit 8adfacd3e3
2 changed files with 163 additions and 46 deletions
-6
View File
@@ -33,20 +33,14 @@ Date Date **a. Tips received**
**b. Credit card tips c. Tips paid out to d. Names of employees to whom you**
tips of directly from customers received other employees paid tips recd. entry and other employees 1 2 3 4 5 **Subtotals** **For Paperwork Reduction Act Notice, see Instructions on the back of Form 4070. Page 1**
recd. entry and other employees
7 8 9 10 11 12 13 14 15 **Subtotals**
**Page 2**
recd. entry and other employees
17 18 19 20 21 22 23 24 25 **Subtotals**
**Page 3**
recd. entry and other employees
27 28 29 30 31 **Subtotals** **from pages** **1, 2, and 3** **Totals**
**1.** Report total cash tips (col. a) on Form 4070, line 1.