Quote:
Originally Posted by mikalto
Thanks for the reply.
I'd be happy to do this through the terminal shell if I knew how. I found out about RCenvironment through an earlier posting and thought that I had enough step by step info to be successful. I just don't have enough background (read: any at all) in code to be able to even figure out where I need to look to figure out the steps I need to take to at this point. I really would love to use OCR with k2pdfopt (which otherwise has been really helpful) to better use my Kindle for coursework. Thanks for any feedback. I really appreciate it!
|
Okay, so I downloaded
RCEnvironment and played around with it some. I presume you figured out how to install it and use it (to use it you have to go to the Apple menu and select "System Preferences..." and then click on the "Environment Variables" icon in the "Other" section at the bottom of the System Preferences window). I then clicked on the "+" icon at the bottom of the dialog box and added my TESSDATA_PREFIX variable and then clicked the "Save" button. A screenshot of that is attached. Once you do that, you have to
logout and then login again. Then, assuming there are no typos and you picked the right folder, it should work.
Interestingly, if you delete an environment variable with RCEnvironment, you have to completely re-start to get rid of it for good (you can't just logout and login again).
What this all does is to save the environment variable info to a file in the .MacOSX folder underneath your home folder. There is another file, /etc/launchd.conf, which I believe stores system-wide environment variables. So you can also store the TESSDATA_PREFIX environment variable in /etc/launchd.conf by adding a line to it like so:
setenv TESSDATA_PREFIX /usr/local/Cellar/tesseract/3.02.02/share/
You'll need sudo privileges to edit /etc/launchd.conf, but hopefully RCEnvironment will do the trick.
Let me know if you get it working.