atom-language-asciidoc icon indicating copy to clipboard operation
atom-language-asciidoc copied to clipboard

Don't spell-check in places that make no sense

Open ygra opened this issue 8 years ago • 7 comments

Usually neither attribute definitions, e.g.

:imagesdir: figures

nor attribute usages, e.g.

{doctitle}

constitute proper words.

Same goes for macros that are often interpreted as a single word. I'm not sure how, but I guess there has to be a way to tell Atom to ignore certain ranges in the input file for spell-checking.

ygra avatar Apr 26 '16 09:04 ygra

The key here is to define a "prose" scope. Then, you can tell the spellcheck to only run on that scope.

One of the things we're going to need to do is match paragraphs, which is where the bulk of the text is. Right now, we're not differentiating paragraphs from other blocks, so we can put a scope around the bulk of the text (and exclude others).

mojavelinux avatar Apr 26 '16 10:04 mojavelinux

Currently, the spellcheck is run on source.asciidoc, which is the entire AsciiDoc source text.

mojavelinux avatar Apr 26 '16 10:04 mojavelinux

Duplicate of issue #5

nicorikken avatar Apr 26 '16 11:04 nicorikken

Can I have steps to reproduce ?

With my configuration, I cannot reproduce:

  • Spell-Check package without extra configuration
  • a document which contains attributes references and attributes definitions

What I have missing to reproduce the bug ?

ldez avatar May 14 '16 16:05 ldez

:smile: I have tried with linter-shellcheck

ldez avatar May 14 '16 16:05 ldez

I enable the built in spellcheck plugin, input the following document:

:foobar: value

And this is what I see:

spellcheck-asciidoc

mojavelinux avatar May 14 '16 22:05 mojavelinux

what is the status of this feature? thanks!

novelistparty avatar May 10 '19 16:05 novelistparty