Orbeon community‎ > ‎Contributions‎ > ‎

Spellex spell checking service


Overview

This 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.

Usage

Assuming you have a web app deployed on http://localhost:8080/myapp:
  1. Place the attached spell-service.jsp inside your application, for instance at the root of the war file.
  2. 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 /.

  3. Place the spellex.properties in your war's WEB-INF directory.
  4. Place the Spellex tlx and tlc files in your war's WEB-INF/spellex directory.
  5. 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.
ċ
spell-service.jsp
(3k)
Alessandro Vernet,
Apr 19, 2010, 11:25 AM
Comments