« Integrating Perforce with Flex Builder | Main | Who's Going to MAX? »

September 27, 2006

Getting Dictionary Definitions in ActionScript

There's a little known protocol out there called the "dict" protocol which enables clients to connect to a dictionary server and query it for definitions. Servers can (and usually do) host multiple dictionaries, many of which are specialized. For instance, a single server might host the "freedict" standard dictionary, some translation dictionaries, a thesaurus, and maybe a dictionary specific to computer jargon (FOLDOC: The Free Online Dictionary of Computing).

I wrote an Apollo application called "Lookup" which is a versatile dictionary client. It lets you choose a server, choose a dictionary on a particular server, and interactively query it. I'll release Lookup as soon as there is a public Apollo release, but in the meantime, I went ahead and checked the dict protocol library into the Adobe Labs source code repository. If you think you might have a need to look up words from ActionScript, check it out. It's not well documented, but if you start with the Dict class, it's pretty easy to figure out.

Posted by cantrell at September 27, 2006 9:00 AM

Comments

Hi Christian,
Can Apollo render natively mathml 2 ?
Or developer needs to implements own protocol to deal mathematica server, example (openMath) and Mathml render engine.

thx,

Posted by: RAKOTO Christian at October 11, 2006 12:46 AM

I have tried to set up to that dict protocol on my site, but I have been having problems with it of late. It has not been working correctly for me. I try to get it to connect to the online server and I get an error message saying that the site was down. But when I go into it and check it for myself, I find that it is up and working properly. So I have not understood why it is not working properly. Could anyone help me figure out what is wrong with this? Could I have something wrong with the basic protocol? Could my computer itself have something wrong with it that could be causing me to have these problems? Any and all help that anyone could give me would be greatly appreciated. I really do not know what to do know with it.

Posted by: toys at August 31, 2007 10:41 AM

Has anybody got the 'dict' protocol working on Windows using latest CVS-version of curl? This has been a major delay in my work. I hope you can help me on this.

Posted by: oil portraits at December 5, 2007 12:33 AM

Hi Christian,

I cant get into the Adobe Labs SVN.
Can you tell me where to download the Dict classes or SVN it? Maybee from another location?

I'd love to use them, could you otherwise mail em to me?

Kind regards,

Sidney de Koning

Posted by: Sidney de Koning at August 27, 2008 8:33 AM




Remember Me?

(you may use HTML tags for style)

Copyright © 2009 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).