-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong underlining of words starting with markup #69
Comments
There is a bug in the computation of the length of the underlining (which also determines the word |
Ok, it's good to know that the underlying spell checking is correct, but the user interface reporting |
Thanks for the report, this should be fixed. |
The new tests in 6317adc do not pass for me:
|
They pass in GitHub Actions (and for me), so it's definitely working. Best guess is that you forgot to update your local installation of ltexls-languagetool-patch (see second task in .vscode/tasks.json). |
I wasn't using the tasks in tasks.json, so indeed that was the problem. Thank you for helping me run the tests. I'm on Windows and the build task fails with an error similar to the one described here: https://stackoverflow.com/questions/6347985/cannot-run-maven-using-mvn-d-argument-within-microsoft-powershell-but-works. The issue is that powershell needs some quoting in the command string, namely |
Fix released in 12.1.0. |
Describe the bug
When spell checking a word with an accented character at the beginning, typed using a latex command, the initial accented letter is omitted in the rule reporting a misspelled word.
Steps to reproduce
Type the word \v{s}ekki (which is šekki) into a latex document, with spell checking for English enabled and observe that "ekki" gets underlined, but not the entire word.
Expected behavior
Since šekki is not an English word it should be underlined, including the first character
Sample document
If the bug occurs for a specific document (e.g. LaTeX), please paste it here. If your document is very long or confidential, please create and attach a smaller example for which the bug still occurs so that we can reproduce it.
LTeX configuration
Please paste all configuration settings starting with
ltex.
from yoursettings.json
. You can help us by temporarily removing some irrelevant settings from yoursettings.json
and see if the bug still occurs.N/A
LTeX LS log
Paste the log (output) of LTeX LS here:
Version information
List here the version information of the relevant software.
Additional context/information
The log appears to show the correct strings are being sent to the server: \u0160 is Š and \u0161 is š. So something is probably going wrong outside of the (new) latex accent command parsing.
The text was updated successfully, but these errors were encountered: