NetOfficeFw / NetOffice

🌌 Create add-ins and automation code for Microsoft Office applications.
MIT License
697 stars 143 forks source link

Creating a custom spellchecker for MS Word #239

Closed mhmd-azeez closed 4 years ago

mhmd-azeez commented 5 years ago

Thank you for this useful project, I have been working on a custom spellchecking algorithm that plays well for languages that depend a lot on infixes. I have been trying to integrate it into Word via a Word Add-In. These are the things that I would like to be able to do:

  1. Mark undefined words with squiggly lines (or any other formatting that doesn't affect the actual formatting of the range).
  2. Add the suggestions to the context menu (I have actually been able to do that)

An even better thing is for me to be able to extend the built-in spellchecker, I have also seen people mention CSAPI but I couldn't find anything useful online, is it deprecated?

Is there a way to add ranges to Range.SpellingErrors or implement a custom Dictionary that uses a custom algorithm?

jozefizso commented 5 years ago

I don't know if Office spellchecker can be extended.

mhmd-azeez commented 5 years ago

@jozefizso unfortunately I have the same feeling :( https://github.com/GrammarSoft/proofing-gasmso/wiki/This-is-not-CSAPI