Mael Hilléreau wrote:
Selon Mael Hilléreau <[EMAIL PROTECTED]>:

Selon Bo Peng <[EMAIL PROTECTED]>:

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


Sorry that I did not follow this thread closely. Does this related to
the caption in listings bug? If this solves the spell checking
problem, can that latex-language trick be removed?
AFAIU the caption listings bug is related to language. This patch deals with
spellchecking (skip some parts of the doc) and is unrelated to language,
despite
the opportunity of using a special language ("nolanguage") to skip
spellchecking
was discussed (but as stated by Dov, it turns out that this wouldn't be
appropriated).

Bo, more precisely, it seems that the listing insets are already skipped by the
spellchecker (whatever the language is or isn't set to "latex"), because
InsetListing inherits from InsetERT, which defines the allowSpellCheck(...)
function as always returning false. Hence, the ControlSpellchecker class always
ignores such insets. Note that this wasn't introduced by my patch.

If you ask me what this "latex" language is used for, I really have no idea...
;-)

Mael.


Bo --- as Mael said, listings are currently not spell checked, regardless of the language. In addition, as is apparent on the list, we will hopefully come up with a solution for the spell checking issue which could also be applied to listings. So for now, let's ignore the spell checking issue with regard to listings.

The thing with listings is, they're not, in their current implementation, "language-aware": they work in English, more or less, but they won't necessarily work within documents in other languages, especially if those other language use non-latin encodings.

Did you see my patch from last week, which starts solving these problems in listings? Let's continue this issue in that thread... (http://permalink.gmane.org/gmane.editors.lyx.devel/91323)

Dov

Reply via email to