Abdelrazak Younes wrote:
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?
Often enough I want to ignore a word only in some cases. A section
may mention "the program variable ba". So I don't want "ba"
to trip up the spellchecker for me here. But I still wan't it to
catch "ba" everywhere else (forgot the "d" in "bad" or whatever")
Adding tons of exceptions to a wordlist just lead to a spellchecker
that don't catch as many mistakes.
The wordlist approach is fine for telling the spellchecker that I
consider "LyX" a valid word, but it is not the full solution to
spellchecker customization.
2) you want to avoid spellchecking of entire paragraphs.
Not necessarily the entire paragraph, perhaps an entire sentence
embedded in the larger paragraph.
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.
Now, it'd be nice if custom character styles can be used for this too.
For example: I might have a custom char style for
"unix commands" that I use in unix lectures. Today, it changes the
font to typewriter. It'd be nice if it could also turn off spellchecking,
avoiding the need to do that manually as well.
It seems that no-spellcheck as a charstyle is excessive, as a charstyle
may apply to half a word. We spellcheck only whole words.
But we don't have "word styles" in LyX,
so charstyle seems to be all we have.
Helge Hafting