tesseract: Add option to specify custom substitutions in configuration file