The Artima Developer Community
Sponsored Link

Java Answers Forum
Auto-correcting TextArea...

1 reply on 1 page. Most recent reply: Apr 1, 2004 3:59 PM by Thomas SMETS

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Auto-correcting TextArea... Posted: Mar 31, 2004 1:23 PM
Reply to this message Reply
Advertisement
Dear,

I am requested to devlopped functionnality that would :
*) Either indicated likely typo's in typed text
*) Proposed text as it is typed or as pop-up's...

The basic idea would be to keep the initial implementation as simple as possible.

I was considering to have the integration of some jython code so I could use the Dictionnaries & would match on the text 'case insensitive' (all uppercase /lowercase) to simplify the matching. One major detail I haven't considered is the words that are not easily put in a dictionnay (verbs for instance).

Any help / hint would be greatly appreciated.

\T,

p.s. : There was an article in Dr Dobb's Journal but I don't remember when it was published. Does someone knows ?


Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: Auto-correcting TextArea... Posted: Apr 1, 2004 3:59 PM
Reply to this message Reply
I have no answers yet but I know that I will need a Disctionnary of some kind & here is what IBM proposed :
<snip>
Overview

Dictionary and Thesaurus API for Java (JADT) is a class library for accessing linguistic features in your Java applications.

The JADT provides a programming access to wordbook data from the Java programming language.Various actors involved in a system is JADT drivers providers, JADT users and applications with tightly or loosely coupled dictionaries/word processor/thesaurus. Using the JADT, applications written in the Java programming language can have access to data like meaning, pronunciation, synonyms, acronyms etc. for a particular word.

The main objective of JADT is to provide Java application programmers a transparent Java-centric way to access lexicon as well as non-structured data about words and information about them. Another objective of JADT is to provide a standard technique to be followed by dictionary providers to support Java programming language.

It provides features like-
1. Interface for accessing dictionary, thesaurus and other services.
2. Interface for multilingual conversion.
3. Driver Based Access Protocol.
4. APIs for dictionary service provider or Driver Developer.
5. Backend dictionary or thesaurus can be anything, like a database, file system, or XML-based. (Provided its driver is implemented.)

The implementation of this API can be very useful for whole range of applications which use multilingual features, Localization, etc..For example :- An editor can use this technology for spell-check, or to get suggestions for more appropriate words, during editing. Another example could be to enable an application that requires translations to use a multilingual dictionary and thesaurus.

Dictionary and Thesaurus API for Java comes with a text-based and an XML-based dictionary in English, French and some other languages, in addition to an English thesaurus.
</snip>

http://www.alphaworks.ibm.com/tech/jadt?Open&ca=daw-flnt-032504


I hope it will help the people meeting similar issues :)

\T,

Flat View: This topic has 1 reply on 1 page
Topic: prptotyping Previous Topic   Next Topic Topic: using exec() in java.. PLEASE HELP ME!!!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use