wysiib / linter-languagetool

Integration of Languagetool into the Atom text editor.
MIT License
18 stars 5 forks source link

Set the spell checking language accroding the value of the magic comm… #12

Open hesstobi opened 7 years ago

hesstobi commented 7 years ago

…ent for tex files.

hesstobi commented 7 years ago

I guess your comment on #7 belongs to this merge request. In my opinion the selection of the spell checking language belongs to the core features of a spell checker. Preferably there should be a menu for this, like in linter-spell. As far as i know there is no API to get/set the language in Atom. Even the core spell-check Package has no real support for selection the langauge.

wysiib commented 7 years ago

Indeed, I was looking up the issue id and used the wrong issue for my comment. I absolutely agree, that language selection is one of the core features. However, I would like to split everything that is Latex specific to a different module connected via a (simple) API. My intention is to avoid language-specific code from piling up in the main coffee script files. I have yet to understand how to provide / define extension points in Atom plugins, so that other plugins could connect and provide language-specific features. We can and should still include support for Latex as an example directly in the linter itself!