[LyX/master] Meet per-document spelling dictionaries (fixes #86 [sic!])
Jürgen Spitzmüller
spitz at lyx.org
Sun Mar 7 13:36:07 UTC 2021
Am Sonntag, dem 07.03.2021 um 14:04 +0100 schrieb Stephan Witt:
> > I can't follow you here. Sure it is.
>
> IMO it is a new feature.
Where did I claim it isn't?
If you want to enhance it: be invited.
> > > > Also, as you say it is marked correctly after context menu
> > > > action,
> > > > there is probably only some call missing here.
> > >
> > > Yes, probably.
> >
> > I have just looked again at AppleSpellChecker and really do not see
> > how
> > this is so special. Maybe you just need to debug a bit
> > Paragraph::spellCheck() (the routine which is in if (speller-
> > > canCheckParagraph())). Well likely just a simple oversight. Check
> > > for
> > the return values of speller->check() gathered here. It should be
> > LEARNED_WORD for the cases in question.
>
> The difference is made by the canCheckParagraph() method of spellers.
Yes, I know (see my comment above).
> Paragraph::spellCheck() has different code paths for it.
>
> With paragraph check enabled - see AppleSpellChecker.h - the speller
> sees the whole sentence as a word and marks one or more words as mis-
> spelled at once.
I see. Can you try (and maybe play with) the attached patch?
Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AppleSpell.diff
Type: text/x-patch
Size: 2981 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210307/b9d2455a/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210307/b9d2455a/attachment-0001.asc>
More information about the lyx-devel
mailing list