Git Product home page Git Product logo

languagetool-browser-addon's Introduction

languagetool-browser-addon's People

Contributors

arysin avatar bekicot avatar comradekingu avatar danielnaber avatar dk-extdev avatar essut avatar gulp21 avatar hankxdev avatar jaumeortola avatar jellydn avatar lidilidian avatar sanakdam avatar seleznevstas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

languagetool-browser-addon's Issues

first use: offer link to options dialog

Currently, if the user doesn't want their data to be sent to languagetool.org, they can only click Cancel on first use. We should offer a link to the options dialog so the user can select a different server.

Not all suggestions are shown

Only suggestions which are included in the error message are shown, so e.g. spelling rules have no suggestions.
related to #4

Missing result

When I check this text in the languagetool forum, I get no errors but also no text that tells me that no errors were found:

Daniel Naber is a developer. Here comes more text to improve detection for English.

So the output is that the web service was used and that English US was detected, nothing more. This is probably related to the fact that there are no errors but "Naber" is considered a misspelling originally, but it's in my personal dictionary.

possibility to (de)activate rules

Needs to be interactive, i.e. no configuration dialog. Instead, the user should be able to deactivate the rule of a match (triggering a re-check or filtering of the matches). At the end of the list of errors, the deactivated errors should be listed so they can easily be activated again.

A rule that's turned off can just be filtered from the results, it's not necessary to send the list of deactivated rules to the HTTP API.

Does not work in Nightly (45.0a1)

I tested as described on https://developer.mozilla.org/en-US/Add-ons/Working_with_multiprocess_Firefox, but actually even without disabling the shims, LTFx doesn't work in version 45.0a1, i.e. it won't appear in the context menu nor does the shortcut (Ctrl-Return) cause a check in a textarea.

console.error: languagetoolfx: 
Message: TypeError: window.getSelection is not a function
Stack:
  addSelectionListener@resource://gre/modules/commonjs/sdk/selection.js:345:19

Ignore email signature

It would be nice to have an option to ignore text below "-- ", the common signature delimiter.

Options from Firefox version in Chrome version.

There's almost no settings in Chrome version of LanguageTool, except its API server URL. I suggest to “import” the setting to Chrome version from Firefox version, especially the “Language” and “Native language” options, if it's possible.

don't check Javascript

Bug: CTRL-A and check on languagetool.org and you'll get Javascript code checked. "Text" in between <script>...</script> should probably be ignored.

Adding new languages and update to LT 2.6 version

Hi,

I woulkd like to contribute and update add-on to have LT V2.6.
Also new languages are missing in the add-on.
I would like to contribute for the same.

FYI, I am able to build .xpi from the source code.
But I am unable to include the latest language code "ta-IN".

Suggest me.

Thanks in Advance
--Arun

Opening and closing quote problem (for now on Chrome).

Hi.

I think there's a bug with fixing quote by LanguageTool in Chrome (didn't check on Firefox for now). The problem is simple: When I enter classic quotes (opening and closing) from my keyboard, which is "sth" (sth means “some text here” and it's an example for this topic) and checking the typed text in LanguageTool, LT displays a tooltip to replace the typed standard keyboard's quotes to smart quotes, which is “” (in Polish it's „”). However, after I click the opening/closing smart quote, which LT displays I can't replace the standard keyboard's closing/opening quote to smart closing/opening quote with LT, and clicking on smart closing/opening quote doesn't change anything. As far as I can remember, this bug didn't occur in one of the earlier versions (can't remember in which version everything worked fine).

Can you fix this, please? :)

Migrate Firefox add-on to WebExtension

Here's the plan:

  • when FF 48 is released, publish WebExtension at addons.mozilla.org and wait for feedback
  • when the new extension is tested and FF 48 is released, link it on languagetool.org instead of LanuageToolFx
  • adapt description of LanuageToolFx at addons.mozilla.org marking it as deprecated
  • have a final update of LanuageToolFx that directs users to the new add-on (code already prepared) - does not work, I get 'Add-ons built with "cfx" are no longer accepted' on http://addons.mozilla.org
  • hide LanuageToolFx at addons.mozilla.org so that it cannot be found by search anymore just hiding from search results isn't possible, I've adapted the title instead
  • add a tag to git before deleting the old extension's source directory
  • delete the translations of LanuageToolFx at transifex
  • completely remove LanuageToolFx from addons.mozilla.org

shortening the text can create an invalid request

If the text is too long, it gets shortened. However, this may cause the text paramater to end in e.g. %B, which is an invalid and thus illegal sequence. The server then returns Incomplete trailing escape (%) pattern

cfx test fails

cfx test fails for me:

Using binary at '/usr/bin/firefox'.
Using profile at '/tmp/tmpmR_HXP.mozrunner'.
Running tests on Firefox 36.0.1/Gecko 36.0.1 ({ec8030f7-c20a-464f-9b0e-13a3a9e97384}) under linux/x86_64.
console.warn: languagetoolfx: Plural form unknown for locale "null"
.JavaScript error: resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///tmp/tmpmR_HXP.mozrunner/extensions/[email protected]!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/context-menu.js, line 690: TypeError: messageManager is undefined
JavaScript error: resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///tmp/tmpmR_HXP.mozrunner/extensions/[email protected]!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/context-menu.js, line 690: TypeError: messageManager is undefined
console.log: languagetoolfx: [JavaScript Error: "TypeError: messageManager is undefined" {file: "resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///tmp/tmpmR_HXP.mozrunner/extensions/[email protected]!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/context-menu.js" line: 690}]
console.log: languagetoolfx: [JavaScript Error: "TypeError: messageManager is undefined" {file: "resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///tmp/tmpmR_HXP.mozrunner/extensions/[email protected]!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/context-menu.js" line: 690}]
console.error: languagetoolfx: 
  warnings and/or errors were logged.

1 of 2 tests passed.
Total time: 2.608040 seconds
Program terminated unsuccessfully.

Remind users of extension

Let's remind users of the add-on by showing a simple marker in the textarea that the user is using right now. Maybe in the lower right corner, like this:

textarea2

When clicked, a menu should open with these options:

  • "Check text" (this might be tricky, as opening the result popup like when clicking on the icon might not be possible - see FF and Chrome)
  • "Disable add-on for this site"

Old idea:
We know from our statistics that many users install the extension, but only a small fraction of them actually uses it. The reason is probably that the extension is rather invisible. There's now code in the extension that can show a reminder toolbar on top of the page. We can show that whenever the user is typing text and hasn't used LT for several days. The code will need to be commented in and the remaining TODOs will need to be fixed.
Or maybe this: http://stackoverflow.com/questions/7730577/how-to-animate-chrome-extension-icon-in-a-callback-function

Prevent display of error message

Prevent showing the error message that appears for less than a second that says the local server could not be connected ("statuscode: 0"), it's confusing

Auto-check

Dear all,

Thank you so much for your work to provide this Chrome extension!

I was wondering whether it was possible to add an auto-check feature.

This is, for example, provided by Grammarly or Ginger Spellcheck that both automatically check the text while composing.

This is a very intuitive and user-friendly feature.

What do you think?

Thankfully,

~Robert

use the current persdict.dat

Notice when words are added to persdict.dat so that always the current list of words is used - unfortunately, Firefox writes that file only when the browser exits, so either that would need to change or we would need an API to access the current list.

Filter duplicate errors

For example, this complains about the same error twice:

Their is a new way to trigger an error.

Use regional variants of languages

Hi,
The addon doesn't use the regional variants, although they appear in the list of languages. For example, using ca-ES-valencia, "seva" should be marked as an error and "seua" should not be marked. Using ca-ES, the reverse is true. I have checked the server side and there is no problem. So it seems the addon is ignoring the variants.

Focus lost after Escape key (Linux only?)

Write a text, trigger checking with Ctrl+Shift+Return and close the popup with Escape. Your focus is now somewhere else, it would be great if it went back to the text field where you triggered the check.

paragraphs are ignored

if you select a headline and the following paragraph you'll get an error because LT doesn't consider the paragraph (use html instead of text property?)

Don't send password fields

Password fields (type="password") should probably not be send to the server at all, for privacy reasons and because it doesn't make sense anyway

LanguageTool for Opera

Opera is based on the same extensions model as chrome. It would be great if this extension (the chrome version, not the firefox one) is submitted to the opera addons site, so that opera users also have an easy way to use the extension.

You could literally just submit the same .crx file that you have for chrome, as the opera addons store accepts chrome .crx files as well.

XML escaping of server response has changed

The server has recently changed the way it encodes XML and some escaped XML now ends up in the error message, e.g. like this:

Use a smart opening quote here: &apos;“&apos;.

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.