Does Tika support environment variables to indicate the path of either Tesseract or Tessdata? I want to build a jar that can be used on multiple systems. Originally, I just had everything in the path, but with the new code for language checking, I want to be able to get the 'better' handling and therefore set the path, so that Tika can check if the language files exist.
I thought that setting TESSDATA_PREFIX would work, but it seems that although Tika sets that based on the values of TesseractPath and TessdataPath, Tika does not go the other way, and use TESSDATA_PREFIX, if it is set, to set the values of either path for Tika's usage. Is there a way to have a version of TesseractOCRConfig.properties that is external to the jar and not in the classpath?
