Joe Lippeatt wrote:
> Ooooh, I thought it would be added on the server when the user presses
> "finished" button on the JSP page.

This is not the case. The servlet (which is in fact a JSP of just one
hundred lines long) does not maintain a database of learned words on the
server side (there would be one row/personal dictionary per web user!).

> Then we may choose to create a simple interface that submits new words
> to be saved to a text file.  I see in your documentation that a simple
> text file can be used with your product.  Can a text file be used in
> combination with compiled dictionaries?  

Yes, that's right.

> Our development models
> currently use eng and eng-us, can/how can we add a "customWords.txt"
> file as well?

If "customWords.txt" is static (i.e. just updated by hand from time to
time), the basic idea is to replace the stock English dictionary by a
customized one.

The customized English dictionary would be a composite dictionary.

To create it, simply edit WEB-INF/classes/en/default using a plain text
editor:

---
@multilink: English
base.cdi
allvar.cdi
---

Add a line containing "customWords.txt" to this file:

---
@multilink: English
base.cdi
allvar.cdi
customWords.txt
---

(File customWords.txt must be present in directory WEB-INF/classes/en/)

Then, do the same for WEB-INF/classes/en-US/default.

The concept and all technical details about creating a composite
dictionary are found here:
http://www.xmlmind.com/spellchecker/_distrib/dictbuilder/ar01s02.html


Reply via email to