Am 20.02.2008 um 17:05 schrieb Bo Peng:

Very simple at the moment. I just add words with length > 5 to a
std::set<docstring> during typing. Of course something more clever is
needed here.

As long as you abstract the logic of this to an independent class, it
can be improved later.

The logic for adding words is in the Text class and the connection to the completion mechanism is in InsetText. So it is easy to improve it there.

Also, users may prefer 1. disable this at all, 2. completion on
request (shortcut), or 3. automatic completion list.

Sure, I added a preference section for those things. I am aware that everybody has his own taste concerning completion.

Stefan

Reply via email to