Re: commit: persistent ignored words


Subject: Re: commit: persistent ignored words
From: WJCarpenter (bill-abisource@carpenter.ORG)
Date: Tue Mar 27 2001 - 17:38:38 CST


wjc> Added two preference variables, SpellCheckIgnoredWordsSave and
wjc> SpellCheckIgnoredWordsLoad (sorry, no GUI for any platform). As

paul> What are the semantics of these? Can they be used to implement
paul> the "flush" button I've mentioned previously (which empties the
paul> ignore list to allow those words to be rechecked)?

*Save controls whether the words are written to the file when the
document is saved (including autosave). *Load controls whether a list
present in a document is used to initialize the ignored words hash
table when a document is read from a file. (One is tempted to say
"whether the ignored words list is used or ignored", but that's
trouble! :-)

So, yes, it could by brute force be used by someone to flush the list,
but there are surely easier ways to do it? (For example, under
program control, just nuking the hash table and then twice toggling
the autospell preference item.) Using *Save/*Load stuff would be more
like what a person would do because we haven't yet implemented the
flush feature. I thought the flushing stuff was mostly a matter of
getting some fairly simple logic wired into the dialogs, not any big
development on the logic itself.

There is already AD_Document::clearIgnores(), or, if you wanted to
temporarily move aside the ignored words list, I think it's just a
member variable in AD_Document which could be set aside or something.

-- 
bill@carpenter.ORG (WJCarpenter)    PGP 0x91865119
38 95 1B 69 C9 C6 3D 25    73 46 32 04 69 D6 ED F3



This archive was generated by hypermail 2b25 : Tue Mar 27 2001 - 17:38:54 CST