Le 16 août 07 à 17:11, Abdelrazak Younes a écrit :
Jean-Marc Lasgouttes wrote:
Mael Hilléreau <[EMAIL PROTECTED]> writes:
Then many things are already ugly, e.g. charstyles :) Storing a
spellchecker setting into a character or font is senseless, whereas
an inset is designed for functional purposes.
Well, calling "senseless" the method used by all other word
processors
is a bit weird.
Are you sure of that? It seems to me that Word and OpenOffice adds
"ignored words" into a list and not to the word font definitions or
character attributes itself. Actually, I still cannot understand
why some of you want to put the spellchecking attributes into a
word font or want to create an NoSpellChecker inset. IMHO there are
really four use cases that are worth supporting:
1) you want to ignore some words: the chance are very high that you
want do that in _any_ document. So this information has nothing to
do in the document. The ignored word should be put on a list of
ignored items. Then, it is as easy to just add these words to your
personal dictionary. Maybe Am I missing something here?
Of course, this case is already handled by the spellchecker.
2) you want to avoid spellchecking of entire paragraphs. The is
high that these paragraphs are external citations or something like
that.
... or code.
Putting the non-spellcheck attrubutes in the layout definition
makes then a lot of sense.
That's the NoSpellcheck keyword (see patch, bug 1509).
But then you don't want to limit yourself to a single layout. In
this case, then the new layout is not the solution and you need a
specialised inset; hence the third use case:
3) you want to avoid spellchecking of a formatted text (with
multiple layouts). An InsetCitation is the solution. InsetCitation
would derive from InsetCollapsable and it's only purpose is to
disable spellchecking.
That's what I'd like. Simply I would prefer to call it
InsetSpellcheck or smth similar as it would be more clear that it's
designed for spellcheck control.
4) you want to avoid spellchecking on some insets of your choice.
The GUI dialog proposed by Christian (ignore Notes, etc) is the
ideal solution.
There are checkboxes in the pref pane (patch).
Sorry Mael, I still haven't read your patch and maybe that's
exactly what your patch is doing but I'd thought I share my ideas
as you said that all opinions are welcome :-)
Yes, almost everything is in the last patch (see comment #11, http://
bugzilla.lyx.org/show_bug.cgi?id=1509#c11), but no pb with this :-)
Mael.