Le 13 août 07 à 01:12, Jean-Marc Lasgouttes a écrit :

Mael Hilléreau <[EMAIL PROTECTED]> writes:

I uploaded this patch to bugzilla:

http://bugzilla.lyx.org/show_bug.cgi?id=3D1509

IMHO it fixes this bug. Please let me know wether it has a chance to
be applied.

FWIW, I looked at the patch and there are a few things I do not like
in there. In particular, it should not be the responsibility of the
inset to look at its contents and decide what can be spell-checked
(especially if it only looks at the first paragraph). However, this is
easily fixable.

Well I don't know... But this an implementation issue.

The real question is to know what we want to do.

Yes! :)

To know what we want, we have to define what are the needs. Here's what the user needs I have in mind (tell me if I forget smth (maybe most common are first):

1) The spellchecker always gives me errors which occur into notes, comments, or disabled branches. I want it to ignore all text into these containers.

2) I want that the spellchecker ignores this particular region (or word).

3) I want that the spellchecker ignores all occurrences of this word, but only into this document.

4) I want to configure the spellchecker very precisely (ignore that disabled branch, but not this one; ignore this layout unless into such inset...).

Now, here's how I see the solutions:

1) use spellchecker preference pane and alyouts (almost done, only the third checkbox is missing).

2) use a "NoSpellcheck" inset (we get the idea, most of issues deal with the way it's displayed). Perhaps, we could make the negative as well "Spellcheck", in order to override a "don't spellcheck" default behavior (not sure it's a good idea...)

3) A list of words into document settings (with add/remove control), and a button into spellchecker dialog for adding on-the-fly.

4) Not too much support for this (we don't want "everything customizable"): at this stage one can however play with special insets, layouts, charstyles or branches...

Mael.


Reply via email to