Proper detection of sentences and words in multiple HTML documents

Proper detection of sentences and words in multiple HTML documents. It will be used for the forthcoming dtbook-to-epub3 and zedai-to-epub3 scripts.