Consider a list of strings you need to permanently assign a random color.
First you should turn the string into a hash.
var string = "string"
var hash = 0| #! /bin/bash | |
| # build the environment | |
| mkdir tessenv; cd tessenv | |
| TROOT=`pwd` | |
| mkdir $TROOT/stockfonts; mkdir $TROOT/build; mkdir $TROOT/build/eng | |
| echo "Environment built" | |
| # Get the stock english fonts from Google (old, but they work) | |
| cd $TROOT/stockfonts | |
| GET http://tesseract-ocr.googlecode.com/files/boxtiff-2.01.eng.tar.gz > boxtiff-2.01.eng.tar.gz |