Closed snomos closed 8 months ago
Is this one fixed now, on the command line at least?
It is fixed on the command line. I will keep it open until it is confirmed working properly in LO as well.
right-clicking it:
after selecting the fix:
seems better?
seems better?
yes 👍
But why is there an empty suggestion below the proper suggestion? And what happens if you select that one?
Removes the words :O seems like a bug in libreoffice-divvun
Actually, that seems to be because of the VSTR thing I just fixed in grammarchecker-release.cg3, should be ok again in newest svn of giella-sme.
(Managed to reproduce on linux too with yesterday's giella-sme vs manually built one.)
seems like we fixed this one
[This bug could also be caused by the CG rules, but I am posting it here to begin with]
Given the command (there should be two spaces after the first word of the input sentence):
one gets the following output:
In LibreOffice it looks like the following:
When applying the suggested correction, the result is the following:
The relevant CG rule is this (in the file
tools/grammarcheckers/grammarchecker-release.cg3
):The main problem is that there is no way for the regex to differentiate between the word form of the input, and the word forms given as suggestions by the speller; it seems that it randomly selects the second speller suggestion to be included in the grammar error suggestion. There should probably be a way of saying that one wants the first matching word form (which would be the input word form).
Also, for whatever reason, the blue underlining does not cover the whole error, which leads to a circular correction pattern, as the error persists (the two spaces are not replaced, only the following word), each time with the second speller suggestion as the "added" word.