OpenCC icon indicating copy to clipboard operation
OpenCC copied to clipboard

t2s not found or not accessible.

Open jack6th opened this issue 1 year ago • 0 comments

mingw32 opencc 1.1.6 on Windows

opencc -i a.txt -c t2s
t2s not found or not accessible.

opencc cannot find the t2s.json unless I specify an absolute path of t2s.json. In tesseract there is an environment variable TESSDATA_PREFIX which can solve the issue like this. Please add an environment variable OPENCCDATA_PREFIX which allow the user to specify the configure json files path.

jack6th avatar Apr 01 '23 03:04 jack6th