I tried this script, but did not get great results with English text.

For those having problems here, you may want to try the solutions in this thread:
...