LTeX: Grammar/spell checker :mag::heavy_check_mark: for VS Code using LanguageTool with support for LaTeX :mortar_board:, Markdown :pencil:, and others
Describe the bug
Two sentences in two parameter fields get checked like they are next to each other, without whitespace, resulting in a false-positive SENTENCE_WHITESPACE.
Both parameters should be checked and at least \caption does not appear inline, so a custom ltex.latex.commands won't help.
\caption[This is a short caption.]{This is the long caption, that is shown below the figure and that can be quite long. It can also contain multiple sentences.}
% gets treated like:
This is a short caption.This is the long caption, that is shown below the figure and that can be quite long. It can also contain multiple sentences.
Expected behavior
Two parameters should be checked as if there were separated by a white space.
I can only think of synthetic situations where this would result in a false-negative, and even then I think treating two parameters as separated by white space is correct in more situations.
Sample document
\caption[This is a short caption.]{This is the long caption, that is shown below the figure and that can be quite long. It can also contain multiple sentences.}
LTeX configuration
nothing of relevance
"LTeX Language Server" log file
```
Juli 17, 2023 8:03:19 NACHM. org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FEIN: Checking the following text in language 'en-GB' via LanguageTool: "[This is a short caption.]This is the long caption, that is shown below the figure and that can be q"... (truncated to 100 characters)
Juli 17, 2023 8:03:19 NACHM. org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FEIN: Obtained 1 rule match
```
Version information
List here the version information of the relevant software.
Operating system: macOS 13.4.1 (c) (22F770820d)
VS Code: 1.80.1
vscode-ltex: 13.1.0
ltex-ls: 15.2.0 (only if not using ltex-ls automatically downloaded by LTeX)
Java: 11.0.2 (usually obtained with java -version, only if not using Java automatically downloaded by LTeX)
Describe the bug Two sentences in two parameter fields get checked like they are next to each other, without whitespace, resulting in a false-positive
SENTENCE_WHITESPACE
. Both parameters should be checked and at least\caption
does not appear inline, so a customltex.latex.commands
won't help.Expected behavior Two parameters should be checked as if there were separated by a white space. I can only think of synthetic situations where this would result in a false-negative, and even then I think treating two parameters as separated by white space is correct in more situations.
Sample document
LTeX configuration nothing of relevance
"LTeX Language Server" log file
Version information List here the version information of the relevant software.
java -version
, only if not using Java automatically downloaded by LTeX)