[Libreoffice-bugs] [Bug 65535] Adding a comment in the middle of a word makes it recognised as misspelt by spellchecker

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jul 15 19:28:14 UTC 2021


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

--- Comment #38 from Justin L <jluth at mail.com> ---
(In reply to Justin L from comment #37)
> Still needed is a patch for "correcting the broken word makes the comment
> disappear" in case the word truly needed correcting.

Right-clicking on the word-with-mid-comment already brings up a different
context menu without anything related to spell checking. So at the moment that
situation is safe.

Running the spell-check dialog is very unsafe however (especially since you
don't really see the context of the word and notice that it has a comment
attached). That is MUCH harder to deal with. What looked promising was
UPN_MAX_NUMBER_OF_SUGGESTIONS = 0, but that seems to be completely ignored (a
bug? Well actually it seems to be used in a different context only).
UPH_IS_USE_DICTIONARY_LIST = false doesn't give what is desired either.

The SpellChecker::GetProposals is what gives the choices to 
txtedt.cxx's  SwTextNode::Spell calls to 
pArgs->xSpeller->spell( rWord, static_cast<sal_uInt16>(eActLang), aPropVals );

Trying to trick it with LANGUAGE_NONE doesn't work because it just returns as
"not a spelling error".

I don't think I'll be able to solve this last part by tweaking any existing
stuff. A work-around hack will need to be created (and I don't like doing that,
especially not in areas I am unfamiliar with).
Probably need to make a special function so that you can create an empty
Proposal via SpellAlternatives::CreateSpellAlternatives( rWord,
LANGUAGE_DONTKNOW, SpellFailure::SPELLING_ERROR, Sequence< OUString >( 0 ) )

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210715/ae7ae49a/attachment.htm>


More information about the Libreoffice-bugs mailing list