Giter Club home page Giter Club logo

grammaralert's Introduction

GrammarAlert

A simple macro for LibreOffice to highlight errors with suggestions and links to explanations provided by the open source After the deadline (ATD) language checking service. This macro is hard-coded to use that server on localhost.

There is an unmaintained java-based LibreOffice extension which I'm sure is better than this software, but does not work with LibreOffice 5+ called atd-openoffice.

Tested in LibreOffice 5.2 and 5.3dev.

Installation

Copy the GrammarAlert.py script to your LibreOffice python scripts folder. The site varies per platform. For example, OSX and in recent nightly build:

/Applications/LibreOfficedev.app/Contents/Resources/Scripts/python/

Install and run the ATD server

Usage

The macro will appear in:

Tools > Macros > Organise Macros > Python

GrammarAlert will appear under 'LibreOffice Macros'. Run the check function to check the current document.

Development

  • Use the LibreOffice python to run the tests.

  • Run ATD service on localhost.

  • Run LibreOffice in server mode, listening on port 2002.

Ideas for improvements

  • Highlighting with non-destructive underlines like spellcheck.

  • Providing suggestions in a contextual menu instead of mangling the text.

Known limitations

  • ATD service only supports English US. ATD spelling errors not highlighted to give compatibility with other English variants.

  • ATD service ignores curly quotes and reports them as errors because they are missing. There is a simple filter for them included to replace them with their ASCII equivalents. Other extended characters are likely to cause similar problems.

grammaralert's People

Contributors

moaxey avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.