-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix implicit default highlighting fields (implements #152).
This was an ugly limitation of the previous version, due to which users had always explicitely pass a list of 'regular' highlighting fields via `hl.fl`. A refactoring of the `OcrHighlightComponent` allows us to remedy this. The fix is a bit hacky, but it works reliably: When we detect that highlighting is enabled, but no `hl.fl` parameter was passed (i.e. the highlighter will automatically highlight all stored fields), we create a custom explicit `hl.fl` parameter at runtime, that includes all of the default highlight fields, except for those fields contained in the `hl.ocr.fl` field set.
Showing
4 changed files
with
117 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters