https://bugs.documentfoundation.org/show_bug.cgi?id=65535

--- Comment #35 from stragu <stephane.guil...@member.fsf.org> ---
Note that the end of a commented range also breaks the spellcheck.

I can think of two options to mostly fix this without breaking other things:

When the cursor is inside a word, or when a range is selected in which the end
of the range is inside a word:

Option 1: ...for no range selection, an inserted comment is moved automatically
to the closest word boundary. For a range selection, the end of the range is
moved to the end boundary of the last word. (A bit like what Luuk proposed in
Comment 3.)

Option 2: ...for no range selection, an inserted comment automatically applies
to the whole word's range instead. For a range selection, the end of the range
is moved to the end boundary of the last word.

Both these solutions would circumvent the issue of marking the word as
misspelled.

I am not sure how much these workarounds would be a problem for different
languages and scripts, but I think it would work acceptably well for languages
using the Latin script with short words.

I would prefer option 2, as I suspect many people who insert a comment inside a
word do so to refer to the whole word, and because it seems more consistent in
its behaviour.

Urmas (Comment 8) mentioned that it might be undesired behaviour to not be able
to comment in the middle of the word, but I find it hard to think of cases
where it would be that much of an issue (especially when compared to the
problem it would fix: broken spellcheck, and comment dataloss).

The issue with Justin's solution to "strip the comment character before
submitting to spellcheck" (Comment 34) is that the deleting of comments when
correcting misspelled words would remain, as far as I understand it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to