Spell Checking
Oxygen general issues.
-
- Posts: 45
- Joined: Wed May 23, 2012 11:20 am
Spell Checking
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?
Thanks.
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.
-
- Posts: 9498
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Spell Checking
Hello Neil,
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.
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.
The logging information reported in Java the console No system property showing.... can be safely ignored.
Regards,
Radu
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.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?
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.
The applet only works with the Hunspell spell checker.2) Can I use any Java Spell Checker other than the one you describe in your documentation?
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.
What exactly do you mean?3) What properties are available to set within the Applet?
The logging information reported in Java the console No system property showing.... can be safely ignored.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 45
- Joined: Wed May 23, 2012 11:20 am
Re: Spell Checking
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.
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.
-
- Posts: 9498
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Spell Checking
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9498
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Spell Checking
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service