Hi,

The attached patch adds support for highlighting grammar and spelling
errors to languagetool standalone GUI. Also provides a popup menu for
applying corrections.

The highlighter will add a blue or red underline under the rule match (if
grammar or spelling error). Right clicking on the text will bring a popup
menu with the description of the error and the suggestions.

The highlighter can provide different underline styles depending on the
descent of the font. This way the underline won't make reading difficult
even with small font sizes. The current implementation provides four
underline styles for experimenting.

Applying a correction will not refresh the ResultArea (the JTextPane at the
bottom of the screen) but this can be easily implemented.

If you have any suggestions feel free to contact me.

Regards,
Panagiotis Minos

Attachment: languagetool-standalone-popupmenu.patch
Description: Binary data

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to