Introduce new env var LTP_JAR_DIR_PATH
to let the user specify a custom installation path of LT
#86
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #84
Fixes #82
At the moment,
language_tool_python
will download a fixed version of LanguageTool (LT).There was also a inconsistency in the code when a more recent version of LT is installed in the download path:
Now the user can specify the
LTP_JAR_DIR_PATH
environment variable.If this variable is defined, the package will look for the LanguageTool jar files in this folder.
Otherwise it will download LanguageTool is the download folder.
The user can also change the LanguageTool version that is downloaded:
I also took the liberty to fix some formatting.
Note that in the tests
tests/test_local.bash
, the sentence 'These are "dumb" quotes.' is now accepted by the 6.4 version of the LanguageTool.Using the 6.4 version, I also got a different ordering of the suggestions, so I only check the set and I am flexible on the order.