danielnaber / oxygen-languagetool-plugin Goto Github PK
View Code? Open in Web Editor NEWLanguageTool plugin for the Oxygen XML editor
License: GNU Lesser General Public License v2.1
LanguageTool plugin for the Oxygen XML editor
License: GNU Lesser General Public License v2.1
A test file contains approximately 4000 lines, each line of which is 'This is a example input to to show you how LanguageTool works.'
LT gives a 'timed out' message:
The number of lines at which the error occurred was not constant. But with approximately 3000 lines I did not get the 'timed out' message.
The plugin fails to resolve keyref/conkeyref/conref properly, which results in false positives. For example:
<p>All decisions in connection with the implementation of this application are at the sole
decision of the Employer utilizing this application. Employers agree that use of the
application is not a representation by <ph keyref="company-no-reg-tm"/> regarding the
application’s compliance with any law or regulation and any suggested language provided out
of the box with the application does not constitute legal advice by <ph
keyref="company-no-reg-tm"/>. </p>
and:
<p><ph keyref="company-no-reg-tm"/> shall not be responsible for any
implementation or configuration costs associated with use of the application unless
separately purchased.</p>
After installing this plugin in Oxygen Author 25, i had to download and start the language tool server by following the instructions on this page https://dev.languagetool.org/http-server
Now, the tool can detect the grammar issues but on hover the message about what exactly is the error/suggestion is not displayed.
We should look over what possible errors the server might give and give some feedback to the user
More of a feature request, but is there any chance of getting support for authenticating LanguageTool Premium users so that we can take advantage of other features and larger API queries?
In an XML document some elements may be considered inline (like bold, italic, underline). Ideally when checking a paragraph's text (paragraph containing inline elements) the server should receive the entire text from the paragraph as if those inline elements would not be present.
We could use this API method:
ro.sync.ecss.extensions.api.AuthorDocumentController.getFilteredContent(int, int, AuthorNodesFilter)
which should do this (it was developed for another external spell checker integration) instead of creating those ranges. But this needs to be tested though.
User report: the plugin installs but doesn't do anything when oXygen is started the usual way. When started from the command line with oxygenMac.sh
, it works. Using LT local server or internet server doesn't make a difference.
OS X Yosemite 10.10.2
Java 7, update 75
In the plugin's preferences page we should have a combo box in which users would select the language used for spell checking.
We could query the server using:
https://languagetool.org:8081/Languages
but also have a list of default values if the server cannot be contacted.
In LanguageTool Options, when 'Use above settings for server' is selected, the LanguageTool Check in oXygen does not use the settings that are specified for rules that are in an external file (http://wiki.languagetool.org/tips-and-tricks#toc10).
I noticed this problem using LT 3.5 and LT 36 snapshot, and oXygen 18.1 (I haven't used oXygen and LT for many months, so I don't know when the problem was introduced).
In the plugin preferences page we could also allow the user to configure the server URL to connect to, by default it would be: http://localhost:8081
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.