info-gnus-english
[Top][All Lists]
Advanced

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

Re: linking "article washing" script to menu and keyboard shortcut


From: Ted Zlatanov
Subject: Re: linking "article washing" script to menu and keyboard shortcut
Date: Thu, 28 Aug 2008 12:53:16 -0500
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

On Thu, 28 Aug 2008 16:04:14 +0200 Andrzej Adam Filip <address@hidden> wrote: 

AAF> Ted Zlatanov <address@hidden> wrote:
>> On Thu, 28 Aug 2008 13:57:52 +0200 Andrzej Adam Filip <address@hidden> 
>> wrote: 
>> 
AAF> Could you recommend short "HOW TO" about linking specific external
AAF> article washing script to emacs/gnus menus?
AAF> [the long way is to use: Article/Washing/Unix pipe ... ]
>> 
AAF> P.S.
AAF> I post in UTF-8 to news hierarchy where *some* [...] ignore encoding
AAF> properly declared in headers and assume ISO-8859-X.
>> 
>> Is the washing script to do the encoding conversion or for something
>> else?  You should be able to do encoding conversions in a recent Emacs
>> release without external tools.  

AAF> The problem is when *some* posters quote my posts in UTF-8 
AAF> a) declaring no encoding and keeping UTF-8 "as posted"
AAF>   ( ISO-8859-2 is "guessed as default" for pl.* hierarchy )
AAF> b) declare ISO-8859-2 encoding but fail to convert UTF-8 to it

AAF> The standard outcome is that *what they quote* contains "bushes".

I have a similar problem with people posting in Bulgarian mailing lists
and asked how to do this on the Emacs help (gnu.emacs.help) newsgroup.

The easy way is to define functions that call `recode-region' on the
article buffer.  This is quick and avoid external scripts.  Bind the
function to a key (you may want to add an extra (save-excursion) and
jump to the article buffer, so it will work from any Gnus buffer) and
that's all.

Ted


reply via email to

[Prev in Thread] Current Thread [Next in Thread]