Page 1 of 1
Spell Checking
Posted: Fri Jun 08, 2012 2:37 pm
by neon096
Hi,
I'm creating an Applet based on your AuthorSampleComponent and I have a few questions.
1) I had difficulties with getting the Spell Checking (hunspell) to work. The solution was to put the jna JAR file above the oxygen JAR in hte classpath. The question I have is why are the JNA stuff packaged together even though they don't work correctly?
2) Can I use any Java Spell Checker other than the one you describe in your documentation?
3) What properties are available to set within the Applet?
Code: Select all
INFO : ro.sync.azcheck.ui.spellcontrol.hunspell.d - No system property showing where the application was installed. Using the working directory instead.
Thanks.
Re: Spell Checking
Posted: Fri Jun 08, 2012 4:44 pm
by Radu
Hello Neil,
1) I had difficulties with getting the Spell Checking (hunspell) to work. The solution was to put the jna JAR file above the oxygen JAR in hte classpath. The question I have is why are the JNA stuff packaged together even though they don't work correctly?
The spell checking should work out of the box if you use our build files to package the applet's content, sign it, and then open in a web browser one of our sample HTML files.
You probably tried running the "ro.sync.ecss.samples.AuthorComponentSample" class as a Java application instead. To make the spell checking using Hunspell work with this approach from what I've tested you could have added in the classpath the "lib" directory of the project.
2) Can I use any Java Spell Checker other than the one you describe in your documentation?
The applet only works with the Hunspell spell checker.
We have API which would allow you to add highlights in the applet but it would probably be a lot of work for you to mimic the functionality that we have right now for spell checking by calling your custom spell checker engine.
3) What properties are available to set within the Applet?
What exactly do you mean?
The logging information reported in Java the console
No system property showing.... can be safely ignored.
Regards,
Radu
Re: Spell Checking
Posted: Fri Jun 08, 2012 5:08 pm
by neon096
Thanks,
I've tested the out of the box solution and that doesn't work either.
As for the way I'm running the applet, I using two ways the 1st as a standalone within Eclipse using sun.applet.AppletViewer, as well as JNLP through a simplified version of the HTML. Both of these methods require the JNA JAR file to be above the Oxygen JAR.
If hunspell is the only spell checker that works with the applet then thats fine please ignore the other questions.
Re: Spell Checking
Posted: Mon Jun 11, 2012 11:30 am
by Radu
Hi Neil,
On what operating system are you running the applet?
I downloaded the sample project from here:
http://www.oxygenxml.com/demo/AuthorDem ... sample.zip
and created my own Eclipse project from it.
I edited the "default.properties" file to set up my own signature.
Then after running "ant" I opened in a web browser the file called
author-component-dita-local.html from the
dist folder.
And the spell checker dialog invoked from the toolbar worked as expected.
Using the spell checker with the classic applet (without JNLP)
author-component-dita-local-classic.html does not work in 13.2 but it will work in version 14.
Regards,
Radu
Re: Spell Checking
Posted: Mon Jun 11, 2012 1:05 pm
by neon096
Thanks I'm using 13.2 at the moment. I'll see if I can upgrade to 14.
Re: Spell Checking
Posted: Mon Jun 11, 2012 2:07 pm
by Radu
Hi,
Oxygen 14.0 has not yet been released, it will be released in a couple of weeks.
We can provide you a beta distribution of the Author Component sample project corresponding to Oxygen 14.0 if you write us using the
support@oxygenxml.com email address.
Regards,
Radu