Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Dynamically generated Dictionary - RapidSpell Web Java - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
evaldas
#1 Posted : Thursday, March 24, 2016 10:19:28 AM
Rank: Newbie

Groups: Registered

Joined: 3/24/2016
Posts: 1
Location: Lithuania
I want to generate dictionary dynamically. For example, load from database (each time the application starts). Is it possible to do that?
Jim
#2 Posted : Thursday, March 24, 2016 4:52:46 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Yes it is. I don't know if you're asking about the user dictionary, or main dictionary. So here's both

USER DICTIONARY ('Add' button functionality):
This is just a text file, with one word per line, so you could just create that text file when the app starts.
Or, you can actually read/write to the DB during spell check operations https://keyoti.com/kb/De...questId=33&catId=45

MAIN DICTIONARY:
You can create .dict files using the DictManager.jar API. The DictManager.jar is in the product ZIP, under "DictManager"

Programmatic Use Of Dict Manager


To use Dict Manager programmatically:
Add DictManager.jar to your classpath, or lib.
Create an instance: model = new com.keyoti.rapidSpell.DictManagerModel();
Use any of the method calls on 'model':

Code:

createDict - Creates a new dict file
loadDict - Loads an existing dict file
addWord - Adds a word to current open dict file
mergeDictFile - Merges an existing dict file with the open dict file
mergeTextFile - Merges an existing text file with the open dict file
removeWord - Removes a word from the dict file
lookUp - Checks if a word is in the dict file
saveDict - Saves the currently open dict file


Typical usages should be in the following order;
create or load
modifying operations
save.

Then, use the .dict file for the dictionary (instead of the default JAR) https://keyoti.com/produ...rGuide/Dict%20Files.htm

Jim
-your feedback is helpful to other users, thank you!


Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.