unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* insert translation
@ 2008-11-03 19:58 Sven Utcke
  2008-11-04 11:16 ` Tassilo Horn
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Utcke @ 2008-11-03 19:58 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I would like to write a function that finds translations for the word
under the cursor and then replaces the word under the cursor by one of
the translations.  I have no problem getting a buffer containing all
translations, but don't know how to proceed from there.  I would like
to either click on one of the translations, or move the cursor to one
and press enter.  What is the easiest way to do this, where a
translation matches (roughly) the middle part of

|\([^ |][^|]*[^ |]\) *|

TIA

Sven
-- 
  ___ _  _____ ___   Dr.-Ing. Sven Utcke                    ___  ___ _____   __
 / __| |/ / __| __|  phone: +49 40 899-8-5317              |   \| __/ __\ \ / /
| (_ | ' <\__ \__ \  fax  : +49 40 899-4-5317              | |) | _|\__ \\ V / 
 \___|_|\_\___|___/  http://www.desy.de/~utcke    (to come)|___/|___|___/ |_|


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: insert translation
  2008-11-03 19:58 insert translation Sven Utcke
@ 2008-11-04 11:16 ` Tassilo Horn
  0 siblings, 0 replies; 2+ messages in thread
From: Tassilo Horn @ 2008-11-04 11:16 UTC (permalink / raw)
  To: Sven Utcke; +Cc: help-gnu-emacs

Sven Utcke <utcke+news@informatik.uni-hamburg.de> writes:

Hi Sven,

> I would like to write a function that finds translations for the word
> under the cursor and then replaces the word under the cursor by one of
> the translations.

May I advertise my simple translation utility rdictcc [1] here?  It has
an emacs interface that does exactly what you want, so either use it
directly or borrow some code from it.

Bye,
Tassilo
__________
[1] http://www.tsdh.de/cgi-bin/wiki.pl/RDictCc
-- 
Richard Stallman is the architect of the matrix.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-04 11:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 19:58 insert translation Sven Utcke
2008-11-04 11:16 ` Tassilo Horn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).