markdown-writer-fx icon indicating copy to clipboard operation
markdown-writer-fx copied to clipboard

Spellchecker with LanguageTool?

Open aadrian opened this issue 7 years ago • 3 comments

Hi,

I see that a spellchecker is on the todo list :) .

LanguageTool https://languagetool.org/ https://github.com/languagetool-org/languagetool seems to gain acceptance in many projects and is also Java based.

Any chance considering it for integration?

Thank you.

aadrian avatar Nov 29 '16 14:11 aadrian

Yes, I'm already working on this on the feature/spellchecker branch.

Currently it always checks the whole text (which is slow) and includes markdown characters (which gives bad results). In the future I plan to check only changed paragraphs and exclude markdown characters. Correction suggestion and language download/selection is not yet implemented.

JFormDesigner avatar Nov 29 '16 15:11 JFormDesigner

Made some progress on the feature/spellchecker branch:

  • ignore markdown formatting characters in spell checking
  • check only paragraphs, lists, block quotes and headings (ignore code blocks, tables, other)
  • use wavy lines to highlight spelling problems in editor
  • right-click on a problem shows a context menu with problem descriptions and suggested replacements

JFormDesigner avatar Dec 21 '16 22:12 JFormDesigner

@JFormDesigner The "spelling" functionality in that branch just looks great :) .

IMHO it should be merged in master as it is, since it's a huge improvement .

Few tweaks that would also be nice:

  • allow to set/change the language
  • context menu size with corrections should not be bigger than the window: it's as big as the screen if there are many options.

aadrian avatar May 04 '17 17:05 aadrian

Available in 1.0: https://github.com/JFormDesigner/markdown-writer-fx/releases

DevCharly avatar Mar 18 '23 17:03 DevCharly