README ====== This is a dict.leo.org mode for JED which allows you to query this English<->German dictionary from inside the editor. Prerequisites ============= * Günter Milde's JED modes bufutils, txtutils, and datutils. http://jedmodes.sourceforge.net. * Martin Bayer's html2text. http://userpage.fu-berlin.de/~mbayer/tools/ Install ======= * Copy the shell script "translate" into some path along your PATH. * Copy the JED script "translate.sl" into you JED search path. * In your .jedrc, bind the translate() function to some key; e.g. autoload("translate", "translate") setkey( "translate", "\el"); % Alt-L Usage ===== When called, translate() either queries dict.leo.org with the currently marked word(s) or, if no mark has been set, interactively asks for word(s) to translate. Then it issues a request to dict.leo.org, pretty-prints the reply using the "translate" shell script, and puts the result into a new buffer. In this buffer, the default key mappings are: Space Copy word under cursor into edit buffer; close translate buffer. Enter Lookup word under cursor. Backspace Return to previous query. q Close translate buffer. Left/Right Jump to previous/next word in buffer. Contact ======= Robin Sommer sommer@in.tum.de