The check-spelling-as-you-type logic of RichTextBox treats multiple words separated by a non-space character (e.g., a comma or slash) as a single word. For example, me/myself gets underlined as shown on the attached picture (or here). Also note how a punctuation mark (e.g., a period) is included and underlined as a part of the word, e.g. for miiispelled. on the same picture.
I've investigated this a bit and it comes down to the fact that both "me/myself" and "miiispelled." are treated with a single SpanLayoutBox, which I believe is an atomic unit for underlining. Please correct me if I'm wrong.
Is this a bug or a "feature"? Is there any workarounds to make RichTextBox to interpret (and spell-check) such sequences of text as separate SpanLayoutBox objects?
Thank you.