PDFreactor:
3.0.3311 (2008-07-07)
edit-on Pro:
5.2.221 (2008-06-23)
edit-on JavaBean SDK:
5.1.290 (2007-11-07)
TYPO3 Extension:
2.0.2 (2007-06-14)
1.13 I want to add any words to the spelling checker dictionary. How can I do this?
There are three possibilities how you can add words to the spelling checker dictionary.
1. You can edit an existing dictionary file of edit-on Pro
- or -
2. You can set the <addspellcheckwordurl> tag within the config.xml file for adding words to the "server side user dictionary", which will always be utilized together with the editor's standard spelling checker dictionary during the spell checking process
- or -
3. You can add words to the "local user dictionary" on the client machine
1. Edit a default dictionary file
In this case you have to "unjar" the corresponding JAR archive which you will find in the "./eopro/lex" folder (e.g. "americanenglish.jar"). After unpacking, you can open the directory "./sc/lex" (in this case: ./americanenglish/sc/lex" which contains the "userdic.tlx" file among others. In order to edit it, you have to open the file with any text file editor (e.g. Notepad). You can then add any words to the dictionary file separated by a hard line-break.
2. Use the <addspellcheckwordurl> property to add words to the "server-side user dictionary"
Another possibility is to set the <addspellcheckwordurl> tag within the config.xml file. By doing so, you can press the "Add word" button within the editor's spell checker dialog to add a word to the spelling checker's user dictionary using a server-side script (e.g. PHP/JSP/ASP,etc.) that writes the custom word to the user dictionary file.
In this case you have to use a "config.xml" file of the edit-on Pro samples package which you will find in the "./samples" folder (e.g. "./samples/general-api") of the unzipped edit-on Pro installation package. By opening the file with any text editor, you can set the <addspellcheckwordurl> XML node within the <spellingcheckers> element, e.g.:
...
<spellingcheckers>
...
<addspellcheckwordurl url="http://myserver.com/adword.php" />
...
</spellingcheckers>
...
You will find more information in the edit-on Pro Integration Manual, chapter 3.1. Configuration file.
3. Add words to the "local user dictionary" on the client machine
It's also possible to add words to the "local user dictionary". To do so, you can simply use the context menu of the editor. These words will then saved in a TLX file (depending on the language, e.g. "americanenglish.user.tlx") located in the ".realobjects" folder within the USER_HOME directory.
Please note: As the "local user dictionary" is located on the client machine, it is stored locally and NOT on the server. Thus this dictionary is available for the user on this machine only.