[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: jinx
From: |
Augusto Stoffel |
Subject: |
Re: jinx |
Date: |
Sat, 01 Apr 2023 10:32:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Fri, 31 Mar 2023 at 21:35, Arash Esbati wrote:
>> (I wonder why the built-in TeX support in the spell-checker doesn't do
>> this job, it's supposed to be adequate, and all Emacs needs to do is
>> to tell the speller it is working on TeX text. So I don't even
>> understand why we need to skip something on our own in these cases.)
>
> I can only tell for hunspell: It has built-in support for skipping of
> many macro arguments and environments[1], but:
>
> a) It is not complete (and probably will never be)
> b) It cannot work for user defined macros/environments, and this is
> where AUCTeX/ispell shine: AUCTeX can parse user defined
> macros/environments and add them automatically to
> `ispell-tex-skip-alists'.
> c) Another advantage of `ispell-tex-skip-alists' is that one can write
> a function and put that in `ispell-tex-skip-alists' for certain
> macros/environments: That gives us a lot of flexibility to precisely
> skip or check.
A more basic reason why this couldn't work is, the parser is stateful
and you need to look at an arbitrary amount of preceding text to figure
out the context at point. So you can't rely on the spellchecker TeX
parser if you feed single words or lines into it, as Flyspell et al do.
- Re: jinx, (continued)
- Re: jinx, Philip Kaludercic, 2023/04/05
- Re: jinx, Michael Heerdegen, 2023/04/05
- Re: jinx, Michael Heerdegen, 2023/04/05
- Re: jinx, Eli Zaretskii, 2023/04/05
- Re: jinx, Michael Heerdegen, 2023/04/05
- Re: jinx, Richard Stallman, 2023/04/04
- Re: jinx, Po Lu, 2023/04/05
- Re: jinx, Arash Esbati, 2023/04/05
- Re: jinx, Emanuel Berg, 2023/04/05
- Re: jinx, Lynn Winebarger, 2023/04/01
Re: jinx,
Augusto Stoffel <=
Re: jinx, Augusto Stoffel, 2023/04/01
Re: jinx, Augusto Stoffel, 2023/04/01
Re: jinx, Emanuel Berg, 2023/04/01
Re: jinx, Rudolf Adamkovič, 2023/04/05