Repository navigation
docs(15.10): describe OCR per crawl config and the metadata of images - #608
Merged
Merged
Conversation
crawler-ocr: the properties file given by config.tika.tesseract.config is not merged with the global OCR settings. A property it does not set has the default of Tika (language eng, preserveInterwordSpacing false), so add preserveInterwordSpacing=true to the Japanese example and explain why CJK text needs it. The file also switches OCR on or off for the crawl config, for images, embedded images and scanned PDFs: it turns OCR on when crawler.document.ocr.enabled is false, and skipOcr=true turns it off when it is true. crawler-advanced and upgrade: only the descriptive metadata of an image (crawler.metadata.content.image.includes) is added to its content.
…rties page Regenerated with tools/update_properties_doc.sh from fess_config.properties.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents, in the 15.10 tree of all seven languages:
config/crawler-ocr: the properties file ofconfig.tika.tesseract.configis not merged with the global OCR settings. A property it does not set has the default of Tika (languageiseng,preserveInterwordSpacingisfalse), so the Japanese example now haspreserveInterwordSpacing=trueand the page explains why CJK text needs it (without it Tesseract writes請 求 書and a search for請求書finds nothing). The file also turns OCR on for a crawl config when the global setting is off, andskipOcr=trueturns it off when it is on; scanned PDFs follow it (fix(crawler): OCR scanned PDFs when a crawl config turns OCR on fess#3667).config/crawler-advancedandinstall/upgrade: only the descriptive metadata of an image is added to its content (fix(crawler): add only descriptive image metadata to the content fess#3668).config/properties: regenerated for the newcrawler.metadata.content.image.includes(a separate commit). Only this key differs from the existing pages; the descriptions of other keys that changed in fess main since the last regeneration were left as they are, so that their translations are kept.Test plan
python3 tools/gen_properties_doc.py --check: the seven properties pages agree.TesseractOCRConfigof Tika 4.1.0, and the on/off behavior against a Fess build with Tesseract 5.5.2.