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:
co-authored by
Claude Opus 4.6
parent
eca2db119c
commit
8adfacd3e3
@@ -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 rec’d. 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**
|
||||
|
||||
rec’d. entry and other employees
|
||||
|
||||
7 8 9 10 11 12 13 14 15 **Subtotals**
|
||||
|
||||
**Page 2**
|
||||
|
||||
rec’d. entry and other employees
|
||||
|
||||
17 18 19 20 21 22 23 24 25 **Subtotals**
|
||||
|
||||
**Page 3**
|
||||
|
||||
rec’d. 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.
|
||||
|
||||
Reference in New Issue
Block a user