Hi Joshua,

if you want to use context information, which is the only possible I can imagine for not using hunspell, you can also try to adapt LanguageTool Java code for your purpose - you would only need to change the markup constant in one of the routines we have - createOOoError, line 418, change:

aError.nErrorType = com.sun.star.text.TextMarkupType.PROOFREADING;

to

aError.nErrorType = com.sun.star.text.TextMarkupType.SPELLCHECK;

You would also like to remove lots of processing that we already have. The code should be easy enough to prune. See:

http://languagetool.cvs.sourceforge.net/viewvc/languagetool/JLanguageTool/src/java/de/danielnaber/languagetool/openoffice/Main.java?revision=1.92&view=markup

We also have a very simple singleton factory already in place:

http://languagetool.cvs.sourceforge.net/viewvc/languagetool/JLanguageTool/src/java/de/danielnaber/languagetool/openoffice/SingletonFactory.java?revision=1.6&view=markup

Regards
Marcin

Thomas Lange - Sun Germany - ham02 - Hamburg pisze:
Hi Joshua,

joshua verano wrote:
Hi,

joshua verano wrote:

 Good Day!

I have a very rough day thinking on how will i integrate or add my java
program to OpenOffice Specifically writer. I have developed a spell
checker that checks the spelling of words in my own native
dictionary(It's not english). Please give me some advice.
Thank you very much. Your email add was forwarded to me by mathias.

That is a rather unspecific question and therefore I don't know where to
start.
Thus I'm throwing a bunch of links to you since I do not know where your
problems are. Here they are:

If you gonna write a Java component you will probably do so by using the
Java UDK.
http://udk.openoffice.org
http://udk.openoffice.org/java/man/index.html
http://udk.openoffice.org/java/man/java_component_howto.html

As for spell checker implementation:
http://sw.openoffice.org/drafts/linguistic_howto.html  (That is for C++
though)
http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/OfficeDev.xhtml#1_2_3_6_Implementing_a_Spell_Checker

If you download the complete Developers Guide I think somewhere within
should also be some very old Java example code. Use it with caution
since it was written without being much familiar with Java.

You should also search the api-dev ML for a thread about Implementing
one-instance components with Java. It was named "Implementing UNO
service as singleton".


Regards,
Thomas



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lingucomponent.openoffice.org
For additional commands, e-mail: dev-h...@lingucomponent.openoffice.org




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lingucomponent.openoffice.org
For additional commands, e-mail: dev-h...@lingucomponent.openoffice.org

Reply via email to