Posted: Thu Jul 03, 2014 9:55 am Post subject: Native OS X grammar checking
I have implemented grammar checking using OS X's native grammar checking service into NeoOffice 2014. With this new feature, any spellchecking operation automatically does grammar checking as well.
You can test our new grammar checking code by installing either of the following test patches. The screen snapshots in this post show how NeoOffice's underlying OpenOffice code displays grammar errors found by our code:
While testing the new grammar checking code, I started seeing a deadlock in NeoOffice's underlying OpenOffice code. I found that the OpenOffice code
uses a separate thread to invoke our grammar checker and, as a result of their code's need to coordinate multiple locks in a separate thread, deadlocking can occur when the menubar is clicked or when a new window appears.
I have fixed this deadlocking bug by changing the OpenOffice grammar checker management code. In the following test patches, the grammar checker management code no longer runs on a separate thread. Instead, it now operates like spellchecking: each sentence is queued and processed a few sentences at a time in the OpenOffice event dispatching thread:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum