unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs as frontend for translate?
@ 2005-03-19 20:28 Raimund Kohl-Fuechsle
  2005-03-19 20:50 ` Raimund Kohl-Fuechsle
  0 siblings, 1 reply; 3+ messages in thread
From: Raimund Kohl-Fuechsle @ 2005-03-19 20:28 UTC (permalink / raw)


Hia all,

I use "translate" a lot (Debian Sarge).  Is there a way to use emacs as
a frontend for translate?

ray

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

* Re: emacs as frontend for translate?
  2005-03-19 20:28 emacs as frontend for translate? Raimund Kohl-Fuechsle
@ 2005-03-19 20:50 ` Raimund Kohl-Fuechsle
  0 siblings, 0 replies; 3+ messages in thread
From: Raimund Kohl-Fuechsle @ 2005-03-19 20:50 UTC (permalink / raw)
  Cc: help-gnu-emacs

Raimund Kohl-Fuechsle <Raimund.Kohl@nabuli.de> wrote:

> Hia all,
> 
> I use "translate" a lot (Debian Sarge).  Is there a way to use emacs as
> a frontend for translate?

I'm a fool! ... sorry for asking!  C-u M-! does it all what I want
... have you words?!

ray

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

* Re: emacs as frontend for translate?
       [not found] <mailman.4428.1111265354.32256.help-gnu-emacs@gnu.org>
@ 2005-03-20  0:24 ` David Hansen
  0 siblings, 0 replies; 3+ messages in thread
From: David Hansen @ 2005-03-20  0:24 UTC (permalink / raw)


On Sat, 19 Mar 2005 21:28:29 +0100 Raimund Kohl-Fuechsle wrote:

> I use "translate" a lot (Debian Sarge).  Is there a way to use emacs as
> a frontend for translate?

>From my ~/.emacs:

;;;; ding
(defvar dh-ding-file-name "/usr/share/trans/de-en"
  "File name of the ding dictionary.")

(when (file-exists-p dh-ding-file-name)
  (defun dh-ding (&optional query)
    (interactive (list (read-string "Query: " (current-word))))
    (let ((coding-system-for-read 'latin-1)
          (coding-system-for-write 'latin-1))
      (grep (concat "egrep -nHih " query " " dh-ding-file-name))))

  (global-set-key "\C-cw" 'dh-ding))

AFAIK ding and translate are using the same dictionary.

David

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

end of thread, other threads:[~2005-03-20  0:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-19 20:28 emacs as frontend for translate? Raimund Kohl-Fuechsle
2005-03-19 20:50 ` Raimund Kohl-Fuechsle
     [not found] <mailman.4428.1111265354.32256.help-gnu-emacs@gnu.org>
2005-03-20  0:24 ` David Hansen

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).