PDA

View Full Version : How do I spell check Punctuation characters


charris
31st October 2007, 12:44 AM
I want to add to the block list a number of characters which should not be allowed.

This will include for example the upside down question mark: ¿
as it is quite often pasted into text areas by mistake if it came from a bullet point.

As we do not want this character to be saved - I want JSpell to highlight it.

If I add it to the block list - it isn't picked up.

Additionally if I wanted to add blocked words such as sh*t the word as whole is not spell checked only the sh.

How can I set JSpell up to include punctuation marks outside the normal text marks (!?'" etc) in the spell check?

bmorreal
14th November 2007, 03:39 PM
I don't think Jspell can do that. You should create a javascript which employs a regex expression that can detect/filter and or convert characters greater than ASCII 255 that are found within your elements.