-
Notifications
You must be signed in to change notification settings - Fork 32
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
ocrd.processor.base: add property zip_input_files #635
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks. I'll test it some more and merge.
Codecov Report
@@ Coverage Diff @@
## master #635 +/- ##
==========================================
- Coverage 84.45% 84.03% -0.42%
==========================================
Files 52 52
Lines 2997 3075 +78
Branches 585 627 +42
==========================================
+ Hits 2531 2584 +53
- Misses 348 363 +15
- Partials 118 128 +10
Continue to review full report at Codecov.
|
fa31678
to
5f6b5af
Compare
…handling… - allow different kinds of error handling for the multi-match case (single page, multiple files): `on_error` - `skip`: None - `first`: first match - `last`: last match - `abort`: raise an exception - if `mimetype` is inactive, support default OCR-D PAGE-image fallback semantics; - if no PAGE but multiple other files, then delegate to general error handling above - if multiple PAGE files, then raise an exception
(raise an exception if no input fileGrp was set)
AFAICS this would already be useful for:
Most of these recently broke with the
ocrd_mets.find_files
generator change.