Use per-page annotation spacing with inferred margin fallback
This commit is contained in:
1 parent
b069805988
commit
0bb6f7d97c
10 files changed
+170
-39
No files matched your search
@@ -428,6 +428,11 @@ class ImageReviewer:
|
||||
for group in analysis['groups'])
|
||||
margin_info = (f"Auto margin: {offsets} mm from left"
|
||||
+ (' | Check uncertain pages' if needs_review else '') + '\n')
|
||||
for page in analysis.get('pages', []):
|
||||
if page.get('status') == 'unknown':
|
||||
value = page.get('effective_edge_mm')
|
||||
fallback = f" (copy average: {value:.1f} mm)" if value is not None else ''
|
||||
margin_info += f"Page {page['page']}: unknown margin{fallback}\n"
|
||||
if analysis.get('no_margin_from_page') is not None:
|
||||
margin_info += f"No margin from page {analysis['no_margin_from_page']} onwards\n"
|
||||
self.label_info.configure(
|
||||
|
||||
Reference in new issue
Block a user