Stingo's
word macro is a good place to start.
Also, if the texts you're after are available as RTF or HTML those formats might be a better starting place for you as they tend to have less of that sort of problem.
And of course, if the books you're after have been uploaded
here, then you're golden.