mellannie rachelle reyes wrote:

> Good day sir/mam
> 
> Im mellannie again and thank you for your past replies regarding my
> questions on Add-on. Currently we already had an add-on but there was a
> problem, well our program should be able to identify if there were errors in
> a particular grammar by clicking the add-on menu that we created, a dialog
> box will appear to search for errors from the text in the OOo writer
> document, in the dialog box when an error was detected it will then suggest
> a sentence that is better than the original, however we do not know how will
> we be able to also change the text written in the OOo writer when the change
> button of the dialog box was clicked.
> 
> If possible we would like to know if you have a simple begginer's code for
> changing the OOo text (when typed) to replce the original sentence into a
> new one.
> 
> Your answers will be greatly apprecatiated.

It sounds like you are interested in Grammar Checking. We have an
ongoing effort to design and implement an API tailored to the needs of
Grammar Checkers and the like. If you want you can join this effort and
help us by implementing a prototype of your Grammar Checker using our
new API. It uses a very simple access to the text as simple strings,
gives corrections back also as simple strings and lets OOo take the
burdon to merge the changed strings into its text.

Doing everything yourself (retrieving text and merging back the
corrected one in all possible situations) will become a very big task
and can't be easily explained with a few lines of code.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to