OverviewThis is an implementation spell checking API used by the spell checker component, so you can use that component with Spellex instead of the Google spell checker.
UsageAssuming you have a web app deployed on http://localhost:8080/myapp: - Place the attached
spell-service.jsp inside your application, for instance at the root of the war file. - Add the following property to your
properties-local.xml to point to the JSP you deployed on the previous step:
<property as="xs:string" name="oxf.xforms.xbl.fr.spell-checker.service"
value="http://localhost:8080/myapp/spell-service.jsp"/>
If you will be using this service from XForms deployed in myapp (separate deployment), then the value should just be /spell-service.jsp as URL rewriting in Orbeon Forms automatically adds the current servlet context in front of URL that start with /.
- Place the
spellex.properties in your war's WEB-INF directory. - Place the Spellex
tlx and tlc files in your war's WEB-INF/spellex directory. - Place the Spellex
spellex.jar in your war's WEB-INF/lib directory.
Note you can change the location of the files mentioned in step 3 and 4 by updating accordingly the value of SPELLEX_PROPERTIES and SPELLEX_DIRECTORY in spell-service.jsp. |