[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Problem with the parser (WPAddict)



Hello Alessandro,

> Sometime ago I have answered about being able to configure if 
> a word, not only by the word itself, but by its property (on 
> WPTools it should be a field, an hyperlink, a protected piece 
> of text), should or not be ignored, even if not on the 
> dictionary. I have posted a change on the 
> "WPOnSpellCheckWord" that would handle it, but the change 
> didn´t came on Addict version 3.4. I changed it by myself, 
> and I am sending it attached.
> maybe you could handle it with others changes...

I'll have a look at it for the next update to the parser and see what can be
done.  Thanks for this.

> Note that the "[" and "]" chars are not recognized by the 
> Addict parser..
> (because are not word delimiters).. and so, while executing 
> the spell check of the document, the "[people" and "name]" 
> words, that are signed as misspeled (red line below), doesn´t 
> popup the window, because the parser thinks to be "people" 
> and "name" words, that are on the dictionary.
> 
> So, What can I do?
> 
> I thought changing "WPOnAfterCompleteWord" event, making some 
> cleaning procedure on the word to remove this kind of chars 
> ["[", "]", "(", ")", "{", "}", "º", "ª", ....].. but I don´t 
> know if there is a better way inside Addict to define the 
> "ignore list"...

We're essentially talking about WPTools at this point, and how WPTools
parses a word out.  I believe that there is a property - something like
WPDelimeterArray (I'm sure you can find it with a simple search) - that
allows you to specify exactly which characters should be used in a parse.

Hopefully this will get you what you need.

Michael Novak
Addictive Software
http://www.addictive-software.com/
address@hidden




Please visit Addict Home Site.