how to ignore character while running spellcheck

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
shikhar_472
Posts: 99
Joined: Fri Jul 01, 2022 12:08 pm

how to ignore character while running spellcheck

Post by shikhar_472 »

Hi Team,

while running perform full spellcheck method how to ignore the characters,
in below image bracket is there in between the word so word is coming as mak while running spell check but it should take the whole word
Could you please help.
image.png
image.png (10.51 KiB) Viewed 922 times
Bogdan Dumitru
Site Admin
Posts: 142
Joined: Tue Mar 20, 2018 5:28 pm

Re: how to ignore character while running spellcheck

Post by Bogdan Dumitru »

Hello,

Could you please elaborate a little on this part: "word is coming as mak while running spell check but it should take the whole word"?
Bogdan Dumitru
http://www.oxygenxml.com
shikhar_472
Posts: 99
Joined: Fri Jul 01, 2022 12:08 pm

Re: how to ignore character while running spellcheck

Post by shikhar_472 »

Word is makers but taking only mak and not ignoring the brackets,
Please see the image for reference
image.png
image.png (63.96 KiB) Viewed 918 times
Bogdan Dumitru
Site Admin
Posts: 142
Joined: Tue Mar 20, 2018 5:28 pm

Re: how to ignore character while running spellcheck

Post by Bogdan Dumitru »

Hello,

What does "mark[ers]" mean? How do you expect/want the spellcheck to handle those words?
  • the "[]" marks an added text, somewhat like the Insert Change Tracking.
  • the spellcheck should report "mark[ers]" as misspelled and propose to replace it with "markers"?
  • the spellcheck should report "mark[ers]" as correctly spelled instead of reporting "mark" as misspelled?
Bogdan Dumitru
http://www.oxygenxml.com
shikhar_472
Posts: 99
Joined: Fri Jul 01, 2022 12:08 pm

Re: how to ignore character while running spellcheck

Post by shikhar_472 »

Hi Dumitru,

the spellcheck should report "mark[ers]" as misspelled and propose to replace it with "markers"?
i want to achieve this.

Thanks for the quick reply.
Bogdan Dumitru
Site Admin
Posts: 142
Joined: Tue Mar 20, 2018 5:28 pm

Re: how to ignore character while running spellcheck

Post by Bogdan Dumitru »

Hi,

Unfortunately, the built-in spellcheck support doesn't allow that but I guess that can be achieved by implementing a ro.sync.ecss.extensions.api.webapp.SpellcheckingEngine and setting via AuthorDocumentModel.getSpellchecker().setSpellcheckingEngine().
To intercept every AuthorDocumentModel opened you can use a WebappEditingSessionLifecycleListener.
Bogdan Dumitru
http://www.oxygenxml.com
shikhar_472
Posts: 99
Joined: Fri Jul 01, 2022 12:08 pm

Re: how to ignore character while running spellcheck

Post by shikhar_472 »

Could you please provide example for this how to do that
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: how to ignore character while running spellcheck

Post by cristi_talau »

Hello,

Unfortunately we do not have a public sample on how to use this API.
Also note that with this API you basically implement your own spell checker. So the effort may not be worth for fixing this particular case.
Best,
Cristian
Post Reply