From: Per Abrahamsen <abraham@dina.kvl.dk>
Subject: Re: babelgnus
Date: 28 May 1999 21:25:27 +0200 [thread overview]
Message-ID: <rjogj5xahk.fsf@my.dina.kvl.dk> (raw)
In-Reply-To: <wzizp2pjopr.fsf@mail.dotcom.fr>
Eric Marsden <emarsden@mail.dotcom.fr> writes:
> I just wrote it (I'm in work avoidance mode), so it's hardly been
> tested. Download at
>
> <URL:http://www.chez.com/emarsden/downloads/babel.el>
It's cool! Here is a Gnus interface to it.
I think it should be added to Gnus with a keybinding and a menu, but
that will have to wait until Lars reappears. For now, just add it to
your `.gnus', and Type `M-x article-babel RET' in the summary buffer
to translate the current message.
(defun article-babel-prompt ()
"Prompt for a babel translation."
(require 'babel)
(completing-read "Translate from: "
babel-translations nil t
(car (car babel-translations))
babel-history))
(defun article-babel (translation)
"Translate article according to TRANSLATION using babelfish."
(interactive (list (article-babel-prompt)))
(require 'babel)
(save-excursion
(set-buffer gnus-article-buffer)
(when (article-goto-body)
(let* ((buffer-read-only nil)
(start (point))
(end (point-max))
(msg (buffer-substring start end)))
(delete-region start end)
(babel-fetch msg (cdr (assoc translation babel-translations)))
(save-restriction
(narrow-to-region start (point-max))
(babel-wash))))))
next prev parent reply other threads:[~1999-05-28 19:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-28 7:45 babelgnus Steinar Bang
1999-05-28 8:10 ` babelgnus David Hedbor
1999-05-28 13:41 ` babelgnus Eric Marsden
1999-05-28 19:25 ` Per Abrahamsen [this message]
1999-05-28 20:29 ` babelgnus Stainless Steel Rat
1999-06-01 11:00 ` babelgnus Robert Bihlmeyer
1999-06-01 16:12 ` babelgnus Hans de Graaff
1999-06-02 11:26 ` babelgnus Robert Bihlmeyer
1999-06-02 16:19 ` babelgnus Jan Vroonhof
1999-06-13 0:45 ` babelgnus Lars Magne Ingebrigtsen
1999-06-13 16:57 ` babelgnus Eric Marsden
1999-06-14 0:59 ` babelgnus Lars Magne Ingebrigtsen
1999-06-14 2:50 ` babelgnus William M. Perry
1999-06-15 15:24 ` babelgnus Eric Marsden
1999-06-15 16:23 ` babelgnus Toni Drabik
1999-06-16 7:04 ` babelgnus Jaap-Henk Hoepman
[not found] ` <yaau2sc6asf.fsf@tyrfing.ifi.uio.no>
1999-06-13 7:03 ` babelgnus Lars Magne Ingebrigtsen
1999-06-13 13:28 ` babelgnus Karl Kleinpaste
1999-06-13 18:59 ` babelgnus Per Abrahamsen
1999-06-14 17:36 ` babelgnus Shaun Lipscombe
1999-06-14 0:57 ` babelgnus Lars Magne Ingebrigtsen
1999-06-13 4:49 ` babelgnus Lars Magne Ingebrigtsen
1999-06-13 17:38 ` babelgnus Eric Marsden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=rjogj5xahk.fsf@my.dina.kvl.dk \
--to=abraham@dina.kvl.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).