[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

url template for wordreference

I checked it in after updating it to use completing-read when
prompting for the dictonary to use, and camel-cased the template name.

>>>>> "Peter" == Peter Rayner <peter.rayner@cea.fr> writes:
    Peter> wordreference.com is a set of translation dictionaries
    Peter> I use quite a bit.  I've now made my first
    Peter> url-template for it.  The way url templates are
    Peter> handled in emacspeak is a beautiful piece of work by
    Peter> the way.  I've tested the following but not included
    Peter> it as a patch in url-templates ... I can do that if
    Peter> it's more convenient.
    Peter> (emacspeak-url-template-define "wordreference"
    Peter> "http://www.wordreference.com/es/translation.asp?tranword=%s&B10=Search&dict=%s";
    Peter> (list "word" "using dictionary") #'(lambda nil
    Peter> (beginning-of-buffer) (search-forward "principal"))
    Peter> "Translate a word using wordreference.com. Source and
    Peter> target languages are specified as two-letter language
    Peter> codes, e.g. fren translates from french to
    Peter> english. Available dictionaries are: enes, esen, enfr,
    Peter> fren, enit, iten, enen")
    Peter> -- Peter Rayner: LSCE/IPSL, Laboratoire CEA-CNRS-UVSQ
    Peter> address: Bat. 701 LSCE - CEA de Saclay Orme des
    Peter> Merisiers, 91191 Gif/Yvette work: +33 (1) 69 08 88 11;
    Peter> mobile: +33 (6) 75 46 56 52; fax: +33 (1) 69 08 77 16
    Peter> mail-to: peter.rayner@cea.fr
    Peter> -----------------------------------------------------------------------------
    Peter> To unsubscribe from the emacspeak list or change your
    Peter> address on the emacspeak list send mail to
    Peter> "emacspeak-request@cs.vassar.edu" with a subject of
    Peter> "unsubscribe" or "help"

Best Regards,

Email:  raman@users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help"

If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog