Strange Delineation of Sentences

T

TT

Consider the a document containing only:
John Doe, Ph.D., is a scientist.

As expected, "ActiveDocument.Words(1).Text" return "John". However,
"ActiveDocument.Sentences(1).Text" returns "," and the second sentence is
returned as "is a scientist".

Is this a bug? Am I missing something here?
 
W

Word Heretic

G'day "TT" <[email protected]>,

Correct, Word's native parsing does not handle sentences properly and
assumes a period is always a terminator.

Thus, Would Dr. T. Smith come at 10.00 for 15.6 minutes causes total
havoc.

I think I ended up doing 9 specific tests to ensure end of sentence
conditions.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


TT reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top