Mode "comment" do not work.
Status: Beta
Brought to you by:
kevina
$ aspell -v
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
$ echo 'errorX # errorX' >text
$ aspell --mode=none -c text # <-- get both typos
$ aspell --mode=comment -c text # <-- get no typos (!)
It seems, that # character brokes filter "context",
If I change "#" in comment.amf to some one else,
say "//", then everything working properly.
---- cat /usr/lib/aspell-0.60/comment.amf ----
MODE comment
ASPELL >=0.60
DESCRIPTION mode to check any lines starting with a \#
FILTER url
FILTER context
OPTION clear-context-delimiters
OPTION add-context-delimiters \# \0
---- EOF ----
How are you calling Aspell is it by chance with "aspell -a". If not can you please attach a test file and specify exactly how you are calling Aspell.
By the way, this bug disappear in 0.61-cvs. But may be you can propose a workaround for 0.60.6.1 (current stable)?
Thank you for that extra information. Can you please answer the question I asked earlier:
How are you calling Aspell is it by chance with "aspell -a". If not can you please attach a test file and specify exactly how you are calling Aspell.
It can make a difference.
Thanks.
Similar tests with -a options. The problem does not go away.
I prepare a tests with -a. The problem does not go away.
First test -- two error. All works well.
Second test -- no errors. Comments are not checked.
My output of test-with-a.sh (attached):
--- CAT ---
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
we going to check file with two errors;
firts one in code, second one in comments:
--CAT--
errorX # errorX
--EOF--
test 1: mode=none; get both typos (all right)
press enter to go
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
& errorX 2 0: error, errors
& errorX 2 9: error, errors
test 2: mode=comment; get no typos (aspell do not check comments)
press enter to go
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
--- END ---
I'm sorry I missed the fact the fact that you attached a file as a test case.
You can disregard the last question.
I will look into it.
I'm sorry too. I made some more tests. It seems this bug reproduced in 0.61-cvs too.
This issue has moved to GitHub: https://github.com/GNUAspell/aspell/issues/505